rohitgandikota / sliders

Concept Sliders for Precise Control of Diffusion Models
https://sliders.baulab.info
MIT License
947 stars 73 forks source link

Missing key(s) in state_dict: "text_model.embeddings.position_ids" #72

Closed ChieVFX closed 7 months ago

ChieVFX commented 7 months ago

Didn't work for me out of the box. :( Outside of a few other issues (probably due to my existing python installation), one error I've spent some time on was: "RuntimeError: Error(s) in loading state_dict for CLIPTextModel: Missing key(s) in state_dict: "text_model.embeddings.position_ids".

Fixed it by "pip install accelerate".

Maybe it should be added to the requirements.txt? If not, you can just close this issue.

Thank you for your hard work.

rohitgandikota commented 7 months ago

Huh, interesting! accelerate should not be a dependency that would fix issues with model parameters. But yes, I can definitely add accelerate to the requirements. Thanks for catching this issue and spending a lot of time on it!

rohitgandikota commented 7 months ago

done!