Skip to content
Python

fixed hunyuan 1.5 lora folder

DeepBeepMeep5c26fed6f6f6
diff --git a/defaults/hunyuan_1_5_480_i2v_step_distilled.json b/defaults/hunyuan_1_5_480_i2v_step_distilled.json
index 177f283..7a94db4 100644
--- a/defaults/hunyuan_1_5_480_i2v_step_distilled.json
+++ b/defaults/hunyuan_1_5_480_i2v_step_distilled.json
@@ -3,6 +3,7 @@
"name": "Hunyuan Video 1.5 Image2video 480p Step Distilled 8B",
"architecture": "hunyuan_1_5_i2v",
"description": "HunyuanVideo-1.5 is a video generation model that delivers top-tier quality with only 8.3B parameters, significantly lowering the barrier to usage. This is the official Step Distilled 480p versionby the Hunyuan Team.",
+ "profiles_dir": [""],
"URLs": [
"https://huggingface.co/DeepBeepMeep/HunyuanVideo1.5/resolve/main/hunyuan_video_1.5_i2v_480_step_distilled_quanto_bf16_int8.safetensors",
"https://huggingface.co/DeepBeepMeep/HunyuanVideo1.5/resolve/main/hunyuan_video_1.5_i2v_480_step_distilled_bf16.safetensors"
diff --git a/docs/CLI.md b/docs/CLI.md
index d7065b1..5bd8b33 100644
--- a/docs/CLI.md
+++ b/docs/CLI.md
@@ -119,6 +119,7 @@ python wgp.py --process queue.zip --output-dir ./out --attention sage2
--lora-dir-i2v PATH # Path to Wan i2v loras directory
--lora-dir-hunyuan PATH # Path to Hunyuan t2v loras directory
--lora-dir-hunyuan-i2v PATH # Path to Hunyuan i2v loras directory
+--lora-dir-hunyuan-1-5 PATH # Path to Hunyuan 1.5 loras directory
--lora-dir-ltxv PATH # Path to LTX Video loras directory
--lora-preset PRESET # Load lora preset file (.lset) on startup
--check-loras # Filter incompatible loras (slower startup)
diff --git a/models/hyvideo/hunyuan_handler.py b/models/hyvideo/hunyuan_handler.py
index 6c06a3f..b2c9872 100644
--- a/models/hyvideo/hunyuan_handler.py
+++ b/models/hyvideo/hunyuan_handler.py
@@ -174,18 +174,22 @@ class family_handler():
default=os.path.join("loras", "hunyuan_i2v"),
help="Path to a directory that contains Hunyuan Video i2v Loras"
)
+ parser.add_argument(
+ "--lora-dir-hunyuan-1-5",
+ type=str,
+ default=os.path.join("loras", "hunyuan_1_5"),
+ help="Path to a directory that contains Hunyuan Video 1.5 Loras"
+ )
@staticmethod
def get_lora_dir(base_model_type, args):
- i2v = "i2v" in base_model_type
- if i2v:
+ if test_hunyuan_1_5(base_model_type):
+ return args.lora_dir_hunyuan_1_5
+
+ elif "i2v" in base_model_type:
return args.lora_dir_hunyuan_i2v
root_lora_dir = args.lora_dir_hunyuan
- if "1_5" in base_model_type:
- lora_dir_1_5 = os.path.join(root_lora_dir, "1.5")
- if os.path.isdir(lora_dir_1_5):
- return lora_dir_1_5
return root_lora_dir
@staticmethod