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

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +9 -0
api/ltx_server.py CHANGED
@@ -225,6 +225,15 @@ from ltx_video.models.autoencoders.vae_encode import un_normalize_latents, norma
225
  from ltx_video.pipelines.pipeline_ltx_video import adain_filter_latent
226
 
227
 
 
 
 
 
 
 
 
 
 
228
  # --- 4. FUNÇÕES HELPER DE LOG ---
229
  def log_tensor_info(tensor, name="Tensor"):
230
  if not isinstance(tensor, torch.Tensor):
 
225
  from ltx_video.pipelines.pipeline_ltx_video import adain_filter_latent
226
 
227
 
228
+ from api.ltx.inference import (
229
+ load_image_to_tensor_with_resize_and_crop,
230
+ seed_everething,
231
+ calculate_padding,
232
+ load_media_file,
233
+ )
234
+
235
+
236
+
237
  # --- 4. FUNÇÕES HELPER DE LOG ---
238
  def log_tensor_info(tensor, name="Tensor"):
239
  if not isinstance(tensor, torch.Tensor):