Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -513,12 +513,6 @@ class VideoService:
|
|
| 513 |
conditioning_items = []
|
| 514 |
for filepath in image_filepaths:
|
| 515 |
cond_tensor = self._prepare_conditioning_tensor(filepath, downscaled_height, downscaled_width, padding_values)
|
| 516 |
-
media_item_latents = vae_encode(
|
| 517 |
-
media_item.to(dtype=self.vae.dtype, device=self.vae.device),
|
| 518 |
-
self.vae,
|
| 519 |
-
vae_per_channel_normalize=vae_per_channel_normalize,
|
| 520 |
-
).to(dtype=init_latents.dtype)
|
| 521 |
-
|
| 522 |
conditioning_items.append(ConditioningItem(cond_tensor, 0, 1.0))
|
| 523 |
|
| 524 |
|
|
|
|
| 513 |
conditioning_items = []
|
| 514 |
for filepath in image_filepaths:
|
| 515 |
cond_tensor = self._prepare_conditioning_tensor(filepath, downscaled_height, downscaled_width, padding_values)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 516 |
conditioning_items.append(ConditioningItem(cond_tensor, 0, 1.0))
|
| 517 |
|
| 518 |
|