Spaces:
Paused
Paused
Update app_g.py
Browse files
app_g.py
CHANGED
|
@@ -20,9 +20,10 @@ from huggingface_hub import snapshot_download
|
|
| 20 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 21 |
PUSA_ROOT = os.path.join(BASE_DIR, "PusaV1")
|
| 22 |
MODEL_ZOO_DIR = os.path.join(PUSA_ROOT, "model_zoo")
|
|
|
|
| 23 |
WAN_SUBFOLDER = "Wan2.1-T2V-14B"
|
| 24 |
-
WAN_MODEL_PATH = os.path.join(
|
| 25 |
-
LORA_PATH = os.path.join(
|
| 26 |
|
| 27 |
# Add PUSA_ROOT to sys.path so Python can import diffsynth
|
| 28 |
if PUSA_ROOT not in sys.path:
|
|
@@ -73,10 +74,10 @@ def ensure_model_downloaded():
|
|
| 73 |
print("β
LoRA weights (pusa_v1.pt) found.")
|
| 74 |
|
| 75 |
# === List contents of model_zoo for verification
|
| 76 |
-
print(f"\nπ Verifying files under: {
|
| 77 |
-
for root, dirs, files in os.walk(
|
| 78 |
for file in files:
|
| 79 |
-
full_path = os.path.relpath(os.path.join(root, file), start=
|
| 80 |
print(" -", full_path)
|
| 81 |
|
| 82 |
|
|
|
|
| 20 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 21 |
PUSA_ROOT = os.path.join(BASE_DIR, "PusaV1")
|
| 22 |
MODEL_ZOO_DIR = os.path.join(PUSA_ROOT, "model_zoo")
|
| 23 |
+
MODEL_ZOO_SUB_DIR = os.path.join(MODEL_ZOO_DIR , "PusaV1")
|
| 24 |
WAN_SUBFOLDER = "Wan2.1-T2V-14B"
|
| 25 |
+
WAN_MODEL_PATH = os.path.join(MODEL_ZOO_SUB_DIR, WAN_SUBFOLDER)
|
| 26 |
+
LORA_PATH = os.path.join(MODEL_ZOO_SUB_DIR, "pusa_v1.pt")
|
| 27 |
|
| 28 |
# Add PUSA_ROOT to sys.path so Python can import diffsynth
|
| 29 |
if PUSA_ROOT not in sys.path:
|
|
|
|
| 74 |
print("β
LoRA weights (pusa_v1.pt) found.")
|
| 75 |
|
| 76 |
# === List contents of model_zoo for verification
|
| 77 |
+
print(f"\nπ Verifying files under: {MODEL_ZOO_SUB_DIR}\n")
|
| 78 |
+
for root, dirs, files in os.walk(MODEL_ZOO_SUB_DIR):
|
| 79 |
for file in files:
|
| 80 |
+
full_path = os.path.relpath(os.path.join(root, file), start=MODEL_ZOO_SUB_DIR)
|
| 81 |
print(" -", full_path)
|
| 82 |
|
| 83 |
|