Eueuiaa commited on
Commit
d6976ef
·
verified ·
1 Parent(s): c521703

Update api/ltx_server_refactored.py

Browse files
Files changed (1) hide show
  1. api/ltx_server_refactored.py +5 -5
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 generate_low(self, prompt, negative_prompt, height, width, duration, guidance_scale, seed, conditioning_items=None):
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 +269,7 @@ class VideoService:
269
  # ==============================================================================
270
  def _generate_single_chunk_low(
271
  self, prompt, negative_prompt,
272
- height, width, num_frames, guidance_scale,
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):
@@ -362,7 +362,7 @@ class VideoService:
362
  # ==============================================================================
363
  def generate_narrative_low(
364
  self, prompt: str, negative_prompt,
365
- height, width, duration, guidance_scale,
366
  seed, initial_image_conditions=None, overlap_frames: int = 8,
367
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
368
  ltx_configs_override: dict = None):
@@ -468,7 +468,7 @@ class VideoService:
468
  # ==============================================================================
469
  def generate_single_low(
470
  self, prompt: str, negative_prompt,
471
- height, width, duration, guidance_scale,
472
  seed, initial_image_conditions=None,
473
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
474
  ltx_configs_override: dict = None):
@@ -770,7 +770,7 @@ class VideoService:
770
  # ==============================================================================
771
  def generate_upscale_denoise(
772
  self, latents_path, prompt, negative_prompt,
773
- guidance_scale, seed,
774
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0
775
  ):
776
  used_seed = random.randint(0, 2**32 - 1) if seed is None else int(seed)
 
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, guidance_scale:str="4", seed, conditioning_items=None):
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
  # ==============================================================================
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):
 
362
  # ==============================================================================
363
  def generate_narrative_low(
364
  self, prompt: str, negative_prompt,
365
+ height, width, duration, guidance_scale:str="4",
366
  seed, initial_image_conditions=None, overlap_frames: int = 8,
367
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
368
  ltx_configs_override: dict = None):
 
468
  # ==============================================================================
469
  def generate_single_low(
470
  self, prompt: str, negative_prompt,
471
+ height, width, duration, guidance_scale:str="4",
472
  seed, initial_image_conditions=None,
473
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0,
474
  ltx_configs_override: dict = None):
 
770
  # ==============================================================================
771
  def generate_upscale_denoise(
772
  self, latents_path, prompt, negative_prompt,
773
+ guidance_scale:str="4", seed,
774
  fp_num_inference_steps:int=30, ship_initial_inference_steps:int=0, ship_final_inference_steps:int=0
775
  ):
776
  used_seed = random.randint(0, 2**32 - 1) if seed is None else int(seed)