Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -355,7 +355,7 @@ class VideoService:
|
|
| 355 |
|
| 356 |
def _prepare_conditioning_tensor(self, filepath, height, width, padding_values):
|
| 357 |
print(f"[DEBUG] Carregando condicionamento: {filepath}")
|
| 358 |
-
tensor =
|
| 359 |
tensor = torch.nn.functional.pad(tensor, padding_values)
|
| 360 |
out = tensor.to(self.device, dtype=self.runtime_autocast_dtype) if self.device == "cuda" else tensor.to(self.device)
|
| 361 |
print(f"[DEBUG] Cond shape={tuple(out.shape)} dtype={out.dtype} device={out.device}")
|
|
|
|
| 355 |
|
| 356 |
def _prepare_conditioning_tensor(self, filepath, height, width, padding_values):
|
| 357 |
print(f"[DEBUG] Carregando condicionamento: {filepath}")
|
| 358 |
+
tensor = self._load_image_to_tensor_with_resize_and_crop(filepath, height, width)
|
| 359 |
tensor = torch.nn.functional.pad(tensor, padding_values)
|
| 360 |
out = tensor.to(self.device, dtype=self.runtime_autocast_dtype) if self.device == "cuda" else tensor.to(self.device)
|
| 361 |
print(f"[DEBUG] Cond shape={tuple(out.shape)} dtype={out.dtype} device={out.device}")
|