Fix LPIPS data range (#1425)

This commit is contained in:
NCJ authored and GitHub committed 2023-02-14 10:18:33 -08:00
1 parent 71fd9f7245
commit 2878aff1c5
8 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ class SemanticNerfWModel(Model):
# metrics
self.psnr = PeakSignalNoiseRatio(data_range=1.0)
self.ssim = structural_similarity_index_measure
self.lpips = LearnedPerceptualImagePatchSimilarity()
self.lpips = LearnedPerceptualImagePatchSimilarity(normalize=True)
def get_param_groups(self) -> Dict[str, List[Parameter]]:
param_groups = {}