Skip to content
Snippets Groups Projects
Commit 48242dcb authored by Schneider Leo's avatar Schneider Leo
Browse files

model cuda loading

parent 5d2ff25e
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class Threshold_noise:
self.threshold = threshold
def __call__(self, x):
return torch.clamp(x, min=self.threshold)
return torch.where((x <= self.threshold), torch.tensor(0.))
class Log_normalisation:
"""Log normalisation of intensities"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment