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

How to load lora weights using StableVideoDiffusionPipeline? #210

Open
OliverLeeXZ opened this issue Jul 26, 2024 · 1 comment
Open

How to load lora weights using StableVideoDiffusionPipeline? #210

OliverLeeXZ opened this issue Jul 26, 2024 · 1 comment

Comments

@OliverLeeXZ
Copy link

How to load lora weights using StableVideoDiffusionPipeline? I using lora_pipeline = StableVideoDiffusionPipeline.from_pretrained(
"/home/data/MODEL/stable-diffusion/stable-video-diffusion-img2vid-xt-1-1",
torch_dtype=torch.float16,
) lora_pipeline.load_lora_weights("/home/code/Motion-LoRA/LoRA_forward_onepoint/pytorch_lora_weights.safetensors"), and it turns out "AttributeError: 'StableVideoDiffusionPipeline' object has no attribute 'load_lora_weights'"?
Could you tell me how to solve it?

@nateraw
Copy link
Owner

nateraw commented Jul 26, 2024

hmm not sure if loading as adapter is supported or not in this codebase. I haven't investigated, but off top of my head what you could do is probably merge the weights and load from that.

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

2 participants