Spaces:
Paused
Paused
Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -225,7 +225,8 @@ class VideoService:
|
|
| 225 |
conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
|
| 226 |
return conditioning_items
|
| 227 |
|
| 228 |
-
def generate_low(self, prompt, negative_prompt, height, width, duration,
|
|
|
|
| 229 |
used_seed = random.randint(0, 2**32 - 1) if seed is None else int(seed)
|
| 230 |
seed_everething(used_seed)
|
| 231 |
FPS = 24.0
|
|
@@ -269,7 +270,7 @@ class VideoService:
|
|
| 269 |
# ==============================================================================
|
| 270 |
def _generate_single_chunk_low(
|
| 271 |
self, prompt, negative_prompt,
|
| 272 |
-
height, width, num_frames, guidance_scale:str="4"
|
| 273 |
seed, initial_latent_condition=None, image_conditions=None,
|
| 274 |
fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
|
| 275 |
ltx_configs_override=None):
|
|
|
|
| 225 |
conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
|
| 226 |
return conditioning_items
|
| 227 |
|
| 228 |
+
def generate_low(self, prompt, negative_prompt, height, width, duration, seed, conditioning_items=None):
|
| 229 |
+
guidance_scale="4"
|
| 230 |
used_seed = random.randint(0, 2**32 - 1) if seed is None else int(seed)
|
| 231 |
seed_everething(used_seed)
|
| 232 |
FPS = 24.0
|
|
|
|
| 270 |
# ==============================================================================
|
| 271 |
def _generate_single_chunk_low(
|
| 272 |
self, prompt, negative_prompt,
|
| 273 |
+
height, width, num_frames, guidance_scale:str="4",
|
| 274 |
seed, initial_latent_condition=None, image_conditions=None,
|
| 275 |
fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
|
| 276 |
ltx_configs_override=None):
|