-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controling the number of inversion steps #9
Comments
Hi @ArielReplicate, the Note that for real images, the timesteps at which features are saved are determined by the |
Thanks for the elaboration! It seem though that ddim_steps is not related to inversion only to sampling after the inversion plug-and-play/run_features_extraction.py Line 229 in ce9e4e2
Is it using the fact that model.num_timesteps is set to 1000? When I try to change the ddim_inversion_steps to 50 I got this error:
I'm trying to speed things up (each of the inversion/sampling take ~1.5 minutes on a A100 instance) to speed up the |
you are correct, plug-and-play/ldm/models/diffusion/ddim.py Line 111 in ce9e4e2
The error you pointed out seems to be due to an incorrect calculation of inversion sampling steps in plug-and-play/ldm/models/diffusion/ddim.py Line 278 in c5da4c1
We will work on fixing this issue, thanks for reporting it ! |
Hi it seems the number of DDim steps for inversion is fixed :
plug-and-play/run_features_extraction.py
Line 224 in ce9e4e2
Is there a specific reason why you only exposed the number of parameters for sampling the features (ddim_steps: 999 in feature extraction .yaml config files)
How related are the two parameters (i.e ddim_inversion_steps and exp_config.config.ddim_steps ) does a change in one requires changing the other?
I think the inversion could be good enough with 50 ddim_steps ?
The text was updated successfully, but these errors were encountered: