윤영준 윤영준 2023-06-29
something is weird about this gamma correction
@6d3bc384c91701c7b1448a43c6ca1b9b73bfb23e
model/Generator.py
--- model/Generator.py
+++ model/Generator.py
@@ -35,8 +35,8 @@
         return ret
 
     def binary_diff_mask(self, clean, dirty, thresold=0.1):
-        clean = torch.pow(clean, 1/2.2)
-        dirty = torch.pow(dirty, 1/2.2)
+        clean = torch.pow(clean, 2.2)
+        dirty = torch.pow(dirty, 2.2)
         diff = torch.abs(clean - dirty)
         diff = torch.sum(diff, dim=1)
         # this line is certainly cause problem for quantization
Add a comment
List