Upload FlowFacade.py
Browse files- FlowFacade.py +3 -3
FlowFacade.py
CHANGED
|
@@ -41,13 +41,13 @@ class FlowFacade:
|
|
| 41 |
|
| 42 |
# Add overhead for first-time model loading (FP8 quantization + AOTI)
|
| 43 |
if not self.video_engine.is_loaded:
|
| 44 |
-
total_duration +=
|
| 45 |
|
| 46 |
if enable_prompt_expansion:
|
| 47 |
total_duration += 40
|
| 48 |
|
| 49 |
-
#
|
| 50 |
-
return max(int(total_duration),
|
| 51 |
|
| 52 |
@spaces.GPU(duration=_calculate_gpu_duration)
|
| 53 |
def generate_video_from_image(self, image: Image.Image, user_instruction: str,
|
|
|
|
| 41 |
|
| 42 |
# Add overhead for first-time model loading (FP8 quantization + AOTI)
|
| 43 |
if not self.video_engine.is_loaded:
|
| 44 |
+
total_duration += 120 # ~120s for FP8 quantization, AOTI loading, and LoRA fusion
|
| 45 |
|
| 46 |
if enable_prompt_expansion:
|
| 47 |
total_duration += 40
|
| 48 |
|
| 49 |
+
# Conservative minimum: 180 seconds for first run, subsequent runs will be faster
|
| 50 |
+
return max(int(total_duration), 180)
|
| 51 |
|
| 52 |
@spaces.GPU(duration=_calculate_gpu_duration)
|
| 53 |
def generate_video_from_image(self, image: Image.Image, user_instruction: str,
|