another approach for final decoder
This commit is contained in:
@@ -4,9 +4,11 @@ from torchmetrics.image import (
|
||||
StructuralSimilarityIndexMeasure,
|
||||
)
|
||||
|
||||
psnr = PeakSignalNoiseRatio(255.0, reduction="none")
|
||||
ssim = StructuralSimilarityIndexMeasure(reduction="none")
|
||||
lpips = LearnedPerceptualImagePatchSimilarity(net_type="alex", reduction="none")
|
||||
psnr = PeakSignalNoiseRatio(1.0, reduction="none")
|
||||
ssim = StructuralSimilarityIndexMeasure(data_range=1.0, reduction="none")
|
||||
lpips = LearnedPerceptualImagePatchSimilarity(
|
||||
net_type="alex", reduction="none", normalize=True
|
||||
)
|
||||
|
||||
|
||||
def benchmark(image1, image2):
|
||||
|
||||
Reference in New Issue
Block a user