Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,23 @@ hf_hub_download_local(repo_id="Kijai/WanVideo_comfy", filename="Wan22-Lightning/
|
|
| 35 |
hf_hub_download_local(repo_id="Kijai/WanVideo_comfy", filename="Wan22-Lightning/Wan2.2-Lightning_I2V-A14B-4steps-lora_LOW_fp16.safetensors", local_dir="models/loras")
|
| 36 |
print("Downloads complete.")
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# --- Image Processing Functions ---
|
| 39 |
def calculate_video_dimensions(width, height, max_size=832, min_size=480):
|
| 40 |
"""
|
|
|
|
| 35 |
hf_hub_download_local(repo_id="Kijai/WanVideo_comfy", filename="Wan22-Lightning/Wan2.2-Lightning_I2V-A14B-4steps-lora_LOW_fp16.safetensors", local_dir="models/loras")
|
| 36 |
print("Downloads complete.")
|
| 37 |
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
LANDSCAPE_WIDTH = 832
|
| 42 |
+
LANDSCAPE_HEIGHT = 480
|
| 43 |
+
MAX_SEED = np.iinfo(np.int32).max
|
| 44 |
+
|
| 45 |
+
FIXED_FPS = 16
|
| 46 |
+
MIN_FRAMES_MODEL = 8
|
| 47 |
+
MAX_FRAMES_MODEL = 81
|
| 48 |
+
|
| 49 |
+
MIN_DURATION = round(MIN_FRAMES_MODEL/FIXED_FPS,1)
|
| 50 |
+
MAX_DURATION = round(MAX_FRAMES_MODEL/FIXED_FPS,1)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
# --- Image Processing Functions ---
|
| 56 |
def calculate_video_dimensions(width, height, max_size=832, min_size=480):
|
| 57 |
"""
|