We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0550ce8 commit 00a2dbaCopy full SHA for 00a2dba
monai/networks/schedulers/ddpm.py
@@ -238,7 +238,7 @@ def step(
238
pred_prev_sample = pred_original_sample_coeff * pred_original_sample + current_sample_coeff * sample
239
240
# 6. Add noise
241
- variance = 0
+ variance: int | torch.Tensor = 0
242
if timestep > 0:
243
noise = torch.randn(
244
model_output.size(),
0 commit comments