Replies: 1 comment 5 replies
-
and can you confirm if you use linear_beta you don't get nans? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MONAI version: 1.3.0
I want to use the cosine schedule for the DDPM scheduler
I am trying
scheduler = DDPMScheduler(num_train_timesteps=total_timesteps,schedule="cosine")
But once I switch to the cosine scheduler, during inference using the following line of code:
image = inferer.sample(input_noise=noise, diffusion_model=model, scheduler=scheduler)
The image contains the nan values for all pixels.
Can you please tell me what is the problem here?
Below are the details of the model and training loop:
Model Definition:
Training loop:
Beta Was this translation helpful? Give feedback.
All reactions