mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-04-04 10:22:45 +08:00
commit
5ab1e2449f
@ -129,7 +129,7 @@ def generate_video(
|
||||
pipe.load_lora_weights(
|
||||
lora_path, weight_name="pytorch_lora_weights.safetensors", adapter_name="test_1"
|
||||
)
|
||||
pipe.fuse_lora(components=["transformer"], lora_scale=1 / lora_rank)
|
||||
pipe.fuse_lora(components=["transformer"], lora_scale=1.0)
|
||||
|
||||
# 2. Set Scheduler.
|
||||
# Can be changed to `CogVideoXDPMScheduler` or `CogVideoXDDIMScheduler`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user