Spaces:
Runtime error
Runtime error
wangmengchao
commited on
Commit
·
13128c2
1
Parent(s):
282b272
fix
Browse files
infer.py
CHANGED
|
@@ -123,6 +123,13 @@ def parse_args():
|
|
| 123 |
def load_models(args):
|
| 124 |
# Load Wan I2V models
|
| 125 |
model_manager = ModelManager(device="cpu")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
model_manager.load_models(
|
| 127 |
[
|
| 128 |
[
|
|
|
|
| 123 |
def load_models(args):
|
| 124 |
# Load Wan I2V models
|
| 125 |
model_manager = ModelManager(device="cpu")
|
| 126 |
+
ckpt_path = hf_hub_download(configs[name].repo_id, configs[name].repo_flow.replace("sft", "safetensors"))
|
| 127 |
+
|
| 128 |
+
if hf_download:
|
| 129 |
+
# lora_ckpt_path = hf_hub_download("bytedance-research/UNO", "dit_lora.safetensors")
|
| 130 |
+
try:
|
| 131 |
+
lora_ckpt_path = hf_hub_download("bytedance-research/UNO", "dit_lora.safetensors")
|
| 132 |
+
|
| 133 |
model_manager.load_models(
|
| 134 |
[
|
| 135 |
[
|