Skip to content

Commit b70d651

Browse files
committed
normalize
1 parent a7bc80a commit b70d651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepinv/models/ram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def forward(self, y, physics=None, sigma=None, gain=None):
217217
)
218218

219219
if physics is None:
220-
gain = 1e-3 if gain is None else gain
220+
gain = 1e-3 * y.abs().max() if gain is None else gain
221221
sigma = self.sigma_threshold if sigma is None else sigma
222222

223223
physics = dinv.physics.Denoising(

0 commit comments

Comments
 (0)