-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
UnetMotionModel ignores important parameters #6125
Comments
Hi @jon-chuang I don't think the original implementation used |
Sure, this is used for example in some non-standard models like DreamshaperV7 |
Hmm actually. Would you be able to provide a snippet to reproduce? I think the UNet is being initialised with the right weights, but the warning is being raised because of how the config is loaded. |
Well, long story short, it throws an error, saying the parameter in question is unexpected. That's because the By contrast, the Dreamshaper unet timeembedding has a cond.proj field. |
Repro: import torch
from diffusers import MotionAdapter, AnimateDiffPipeline
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2").to('cuda', dtype=torch.float16)
pipe = AnimateDiffPipeline.from_pretrained(
"SimianLuo/LCM_Dreamshaper_v7", use_safetensors=True, motion_adapter=adapter
).to('cuda', dtype=torch.float16) |
Ah yes. You're right. Would you mind opening a PR with a fix? |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
@DN6 feel free to tackle it if the author of the issue doesn't answer |
I worked on an issue with the UNetMotionModel yesterday, I'd be happy to go for this one as well! |
Feel free to submit your PR :) |
@Stepheni12 You can add both changes to your PR: #7035 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
I guess we can close this now. |
Describe the bug
In particular, it does not initialize
time_embedding
with'cond_proj_dim': 256
Reproduction
DreamshaperV7 + MotionAdapter in AnimateDiff pipeline
Logs
No response
System Info
diffusers
version: 0.24.0Who can help?
@DN6 @sayakpaul @patrickvonplaten
The text was updated successfully, but these errors were encountered: