From 84766d02e8c2a1d7fc9b7e7ed596e1c2f05092f2 Mon Sep 17 00:00:00 2001 From: holma91 Date: Mon, 24 Feb 2025 20:08:27 +0100 Subject: [PATCH 1/2] fix scale bug --- inference/cli_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference/cli_demo.py b/inference/cli_demo.py index 37dfcfc..752008e 100644 --- a/inference/cli_demo.py +++ b/inference/cli_demo.py @@ -125,7 +125,7 @@ def generate_video( # If you're using with lora, add this code if lora_path: 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`. From a01ffd9aba2956d22890aa84e8e38fcbacdeb998 Mon Sep 17 00:00:00 2001 From: OleehyO Date: Tue, 25 Mar 2025 18:59:11 +0800 Subject: [PATCH 2/2] Update cli_demo.py --- inference/cli_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference/cli_demo.py b/inference/cli_demo.py index fd21fe3..2e28165 100644 --- a/inference/cli_demo.py +++ b/inference/cli_demo.py @@ -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。0) + pipe.fuse_lora(components=["transformer"], lora_scale=1.0) # 2. Set Scheduler. # Can be changed to `CogVideoXDPMScheduler` or `CogVideoXDDIMScheduler`.