Skip to content

Commit

Permalink
corrected noise prior
Browse files Browse the repository at this point in the history
  • Loading branch information
Dingel321 committed Jul 3, 2023
1 parent 65eb909 commit 4ccbe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryo_sbi/wpa_simulator/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_snr(images, snr):
)
signal_power = images[:, mask].pow(2).mean().sqrt() # torch.std(image[mask])

noise_power = signal_power / torch.sqrt(snr.to(images.device))
noise_power = signal_power / torch.sqrt(torch.pow(10, snr))

return noise_power

Expand Down

0 comments on commit 4ccbe60

Please sign in to comment.