-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Description
There is certain values for the ddim_steps parameter, for which the model crashes with the stack trace appended at the end.
- 3 => crashes
- 9 => crashes
- 27 => crashes
- 81 => gets changed into 84 by the model
Example that leads to the crash:
python scripts/txt2img.py --prompt "tree" --ddim_steps 9 --n_samples 1
Stacktrace:
Traceback (most recent call last):
File "scripts/txt2img.py", line 344, in <module>
main()
File "scripts/txt2img.py", line 295, in main
samples_ddim, _ = sampler.sample(S=opt.ddim_steps,
File "..\envs\ldm\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "..\ldm\models\diffusion\ddim.py", line 90, in sample
self.make_schedule(ddim_num_steps=S, ddim_eta=eta, verbose=verbose)
File "..\ldm\models\diffusion\ddim.py", line 44, in make_schedule
ddim_sigmas, ddim_alphas, ddim_alphas_prev = make_ddim_sampling_parameters(alphacums=alphas_cumprod.cpu(),
File "..\ldm\modules\diffusionmodules\util.py", line 65, in make_ddim_sampling_parameters
alphas = alphacums[ddim_timesteps]
IndexError: index 1000 is out of bounds for dimension 0 with size 1000
Metadata
Metadata
Assignees
Labels
No labels