EuuIia commited on
Commit
e10defb
·
verified ·
1 Parent(s): 1906ef7

Update api/seedvr_server.py

Browse files
Files changed (1) hide show
  1. api/seedvr_server.py +16 -13
api/seedvr_server.py CHANGED
@@ -28,23 +28,26 @@ except ImportError as e:
28
  print(f"Verifique se o repositório em '{SEEDVR_REPO_PATH}' está correto e completo.")
29
  raise e
30
 
31
- SEEDVR_ROOT = SEEDVR_REPO_PATH
32
- CKPTS_ROOT = Path("/data/seedvr_models_fp16")
33
- OUTPUT_ROOT = Path(os.getenv("OUTPUT_ROOT", "/app/outputs"))
34
- INPUT_ROOT = Path(os.getenv("INPUT_ROOT", "/app/inputs"))
35
- HF_HOME_CACHE = Path(os.getenv("HF_HOME", "/data/.cache/huggingface"))
36
- REPO_URL = os.getenv("SEEDVR_GIT_URL", "https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler")
37
- NUM_GPUS_TOTAL = 4#int(os.getenv("NUM_GPUS", "8"))
38
 
39
- print("🚀 SeedVRServer (Modo de Chamada Direta) inicializando...")
40
- for p in [CKPTS_ROOT, OUTPUT_ROOT, INPUT_ROOT, HF_HOME_CACHE]:
41
- p.mkdir(parents=True, exist_ok=True)
 
 
 
 
 
 
 
 
 
 
42
 
43
- setup_dependencies()
44
- print("✅ SeedVRServer (Modo de Chamada Direta) pronto.")
 
45
 
46
 
47
- class SeedVRServer:
48
  def __init__(self, **kwargs):
49
  """
50
  Inicializa o servidor, define os caminhos e prepara o ambiente.
 
28
  print(f"Verifique se o repositório em '{SEEDVR_REPO_PATH}' está correto e completo.")
29
  raise e
30
 
 
 
 
 
 
 
 
31
 
32
+ class SeedVRServer:
33
+
34
+ SEEDVR_ROOT = SEEDVR_REPO_PATH
35
+ CKPTS_ROOT = Path("/data/seedvr_models_fp16")
36
+ OUTPUT_ROOT = Path(os.getenv("OUTPUT_ROOT", "/app/outputs"))
37
+ INPUT_ROOT = Path(os.getenv("INPUT_ROOT", "/app/inputs"))
38
+ HF_HOME_CACHE = Path(os.getenv("HF_HOME", "/data/.cache/huggingface"))
39
+ REPO_URL = os.getenv("SEEDVR_GIT_URL", "https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler")
40
+ NUM_GPUS_TOTAL = 4#int(os.getenv("NUM_GPUS", "8"))
41
+
42
+ print("🚀 SeedVRServer (Modo de Chamada Direta) inicializando...")
43
+ for p in [CKPTS_ROOT, OUTPUT_ROOT, INPUT_ROOT, HF_HOME_CACHE]:
44
+ p.mkdir(parents=True, exist_ok=True)
45
 
46
+ setup_dependencies()
47
+ print("✅ SeedVRServer (Modo de Chamada Direta) pronto.")
48
+
49
 
50
 
 
51
  def __init__(self, **kwargs):
52
  """
53
  Inicializa o servidor, define os caminhos e prepara o ambiente.