Skip to content
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

AttributeError: type object 'StableVideoDiffusionPipeline' has no attribute 'save_lora_weights' #63

Open
leilai125 opened this issue Sep 7, 2024 · 5 comments

Comments

@leilai125
Copy link

Thanks for your work! I am trying to run train_svd_lora.py but returned this error. It seems we can't fine-tune the SVD using Lora. Should I add the 'save_lora_weights' function to StableVideoDiffusionPipeline?

@YunkangTao
Copy link

same question

@YunkangTao
Copy link

these codes can solve the problem:
from diffusers.loaders import StableDiffusionLoraLoaderMixin
StableDiffusionLoraLoaderMixin.save_lora_weights()

@ronigoldnexar
Copy link

I add the fix in PR:
#64

@trqminh
Copy link

trqminh commented Oct 4, 2024

Hi @YunkangTao , are you able to load a lora weight for inference ? I've tried to load lora weight but the results look like the result of the original pretrained model

@YunkangTao
Copy link

Hi @YunkangTao , are you able to load a lora weight for inference ? I've tried to load lora weight but the results look like the result of the original pretrained model

You can try the codes:
from diffusers.loaders import StableDiffusionLoraLoaderMixin
StableDiffusionLoraLoaderMixin.load_lora_into_unet()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants