eeuuia commited on
Commit
2193363
·
verified ·
1 Parent(s): eefd283

Update api/ltx/ltx_aduc_pipeline.py

Browse files
Files changed (1) hide show
  1. api/ltx/ltx_aduc_pipeline.py +10 -5
api/ltx/ltx_aduc_pipeline.py CHANGED
@@ -5,7 +5,6 @@
5
 
6
  import gc
7
  import json
8
- import logging
9
  import os
10
  import shutil
11
  import sys
@@ -26,16 +25,22 @@ from api.ltx.vae_aduc_pipeline import vae_aduc_pipeline
26
  from tools.video_encode_tool import video_encode_tool_singleton
27
 
28
 
 
29
  # ==============================================================================
30
  # --- SETUP E IMPORTAÇÕES DO PROJETO ---
31
  # ==============================================================================
32
 
33
  # Configuração de logging e supressão de warnings
34
  import warnings
35
- warnings.filterwarnings("ignore")
36
- logging.getLogger("huggingface_hub").setLevel(logging.ERROR)
37
- log_level = logging.DEBUG
38
- logging.basicConfig(level=log_level, format='[%(levelname)s] [%(name)s] %(message)s')
 
 
 
 
 
39
 
40
  # --- Constantes de Configuração ---
41
  DEPS_DIR = Path("/data")
 
5
 
6
  import gc
7
  import json
 
8
  import os
9
  import shutil
10
  import sys
 
25
  from tools.video_encode_tool import video_encode_tool_singleton
26
 
27
 
28
+
29
  # ==============================================================================
30
  # --- SETUP E IMPORTAÇÕES DO PROJETO ---
31
  # ==============================================================================
32
 
33
  # Configuração de logging e supressão de warnings
34
  import warnings
35
+ warnings.filterwarnings("ignore", category=UserWarning)
36
+ warnings.filterwarnings("ignore", category=FutureWarning)
37
+ warnings.filterwarnings("ignore", message=".*")
38
+ from huggingface_hub import logging
39
+ logging.set_verbosity_error()
40
+ logging.set_verbosity_warning()
41
+ logging.set_verbosity_info()
42
+ logging.set_verbosity_debug()
43
+
44
 
45
  # --- Constantes de Configuração ---
46
  DEPS_DIR = Path("/data")