Unverified Commit f3c84838 authored by Ben Evans's avatar Ben Evans Committed by GitHub
Browse files

Run same number of DDPM steps in inference as training (#2263)

Resolves ValueError: `num_inference_steps`: 1000 cannot be larger than `self.config.train_timesteps`: 50 as the unet model trained with this scheduler can only handle maximal 50 timesteps.
parent fd5c3c09
......@@ -552,6 +552,7 @@ def main(args):
generator=generator,
batch_size=args.eval_batch_size,
output_type="numpy",
num_inference_steps=args.ddpm_num_steps,
).images
# denormalize the images and save to tensorboard
......
......@@ -599,6 +599,7 @@ def main(args):
batch_size=args.eval_batch_size,
num_inference_steps=args.ddpm_num_inference_steps,
output_type="numpy",
num_inference_steps=args.ddpm_num_steps,
).images
# denormalize the images and save to tensorboard
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment