Spaces:
Paused
Paused
Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -225,7 +225,7 @@ class VideoService:
|
|
| 225 |
conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
|
| 226 |
return conditioning_items
|
| 227 |
|
| 228 |
-
def
|
| 229 |
self, prompt, negative_prompt,
|
| 230 |
height, width, duration, seed,
|
| 231 |
conditions_itens, ltx_configs_override,
|
|
@@ -316,10 +316,11 @@ class VideoService:
|
|
| 316 |
#if eco_latents_condition_overlap: eco_current_conditions_list.append(eco_latents_condition_overlap)
|
| 317 |
#ltx_configs_override["conditioning_items"] = current_conditions
|
| 318 |
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
|
|
|
| 323 |
)
|
| 324 |
|
| 325 |
#log_tensor_info(latentes_chunk, f"latentes_chunk")
|
|
|
|
| 225 |
conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
|
| 226 |
return conditioning_items
|
| 227 |
|
| 228 |
+
def _generate_low(
|
| 229 |
self, prompt, negative_prompt,
|
| 230 |
height, width, duration, seed,
|
| 231 |
conditions_itens, ltx_configs_override,
|
|
|
|
| 316 |
#if eco_latents_condition_overlap: eco_current_conditions_list.append(eco_latents_condition_overlap)
|
| 317 |
#ltx_configs_override["conditioning_items"] = current_conditions
|
| 318 |
|
| 319 |
+
|
| 320 |
+
video_path, tensor_path, final_seed = self._generate_low(
|
| 321 |
+
prompt, negative_prompt, height,
|
| 322 |
+
width, duration, seed,
|
| 323 |
+
conditions_itens, ltx_configs_override,
|
| 324 |
)
|
| 325 |
|
| 326 |
#log_tensor_info(latentes_chunk, f"latentes_chunk")
|