Eueuiaa commited on
Commit
425fcc1
·
verified ·
1 Parent(s): 77efcfe

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
@@ -354,7 +354,7 @@ class VideoService:
354
 
355
 
356
  latentes_chunk_video = []
357
- condition_item_latent_overlap = None
358
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
359
 
360
  for i, prompt in enumerate(prompt_list):
@@ -380,13 +380,13 @@ class VideoService:
380
 
381
  latentes_chunk = self.generate_low(
382
  prompt, negative_prompt, height, width,
383
- duration, seed, conditioning_items=eco_latents_condition_overlap
384
  )
385
 
386
  if i < num_chunks - 1 and poda_latents_num > 0:
387
- overlap_latents = latentes_chunk[:, :, -poda_latents_num:, :, :].clone()
388
- condition_item_latent_overlap = ConditioningItem(
389
- media_item=overlap_latents, media_frame_number=0, conditioning_strength=1.0
390
  )
391
 
392
  if i > 0:
 
354
 
355
 
356
  latentes_chunk_video = []
357
+ eco_latents_condition_overlap = None
358
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
359
 
360
  for i, prompt in enumerate(prompt_list):
 
380
 
381
  latentes_chunk = self.generate_low(
382
  prompt, negative_prompt, height, width,
383
+ duration, seed, conditioning_items=eco_current_conditions_list
384
  )
385
 
386
  if i < num_chunks - 1 and poda_latents_num > 0:
387
+ eco_latents_overlap = latentes_chunk[:, :, -poda_latents_num:, :, :].clone()
388
+ eco_latents_condition_overlap = ConditioningItem(
389
+ media_item=eco_latents_overlap, media_frame_number=0, conditioning_strength=1.0
390
  )
391
 
392
  if i > 0: