This repository was archived by the owner on Feb 7, 2025. It is now read-only.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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