Eueuiaa commited on
Commit
5967c90
·
verified ·
1 Parent(s): d94efa4

Update api/ltx_server_refactored.py

Browse files
Files changed (1) hide show
  1. api/ltx_server_refactored.py +2 -2
api/ltx_server_refactored.py CHANGED
@@ -235,7 +235,7 @@ class VideoService:
235
  conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
236
  return conditioning_items
237
 
238
- def prepare_condition_items_latent(self, items_list: List, height: int, width: int, num_frames: int):
239
  if not items_list: return []
240
  conditioning_items = []
241
  for tensor_patch, frame, weight in items_list:
@@ -459,7 +459,7 @@ class VideoService:
459
 
460
  if overlap_latents!=None:
461
  items_list = [[overlap_latents, 0, 1.0]]
462
- overlap_condition = prepare_condition_items_latent(items_list)
463
 
464
  itens_conditions_itens = initial_conditions + overlap_condition
465
 
 
235
  conditioning_items.append(ConditioningItem(tensor, safe_frame, float(weight)))
236
  return conditioning_items
237
 
238
+ def _prepare_condition_items_latent(self, items_list: List, height: int, width: int, num_frames: int):
239
  if not items_list: return []
240
  conditioning_items = []
241
  for tensor_patch, frame, weight in items_list:
 
459
 
460
  if overlap_latents!=None:
461
  items_list = [[overlap_latents, 0, 1.0]]
462
+ overlap_condition = self._prepare_condition_items_latent(items_list)
463
 
464
  itens_conditions_itens = initial_conditions + overlap_condition
465