caarleexx commited on
Commit
c4c6f39
·
verified ·
1 Parent(s): dc6a473

Update api/ltx_server_refactored.py

Browse files
Files changed (1) hide show
  1. api/ltx_server_refactored.py +1 -1
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 = 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}")
 
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}")