Spaces:
Paused
Paused
Update api/ltx_server_refactored.py
Browse files
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
|
| 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 =
|
| 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 |
|