Spaces:
Paused
Paused
Rename api/seedvr_server.py to api/seedvr_aduc_pipeline.py
Browse files
api/{seedvr_server.py → seedvr_aduc_pipeline.py}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# FILE: api/
|
| 2 |
# DESCRIPTION: Backend service for SeedVR video upscaling.
|
| 3 |
# Features multi-GPU processing, memory swapping with other services,
|
| 4 |
# and detailed debug logging.
|
|
@@ -119,7 +119,7 @@ def _worker_process(proc_idx, device_id, frames_np, shared_args, return_queue, p
|
|
| 119 |
# --- CLASSE DO SERVIDOR PRINCIPAL ---
|
| 120 |
# ==============================================================================
|
| 121 |
|
| 122 |
-
class
|
| 123 |
@log_function_io
|
| 124 |
def __init__(self, **kwargs):
|
| 125 |
"""Inicializa o servidor, define os caminhos e prepara o ambiente."""
|
|
@@ -221,7 +221,7 @@ class SeedVRServer:
|
|
| 221 |
# A instância é criada na primeira importação.
|
| 222 |
try:
|
| 223 |
# A classe é instanciada globalmente para ser usada pela UI
|
| 224 |
-
|
| 225 |
except Exception as e:
|
| 226 |
logging.critical("Failed to initialize SeedVRServer singleton.", exc_info=True)
|
| 227 |
seedvr_server_singleton = None
|
|
|
|
| 1 |
+
# FILE: api/seedvr/seedvr_aduc_pipeline.py
|
| 2 |
# DESCRIPTION: Backend service for SeedVR video upscaling.
|
| 3 |
# Features multi-GPU processing, memory swapping with other services,
|
| 4 |
# and detailed debug logging.
|
|
|
|
| 119 |
# --- CLASSE DO SERVIDOR PRINCIPAL ---
|
| 120 |
# ==============================================================================
|
| 121 |
|
| 122 |
+
class SeedAducPipeline:
|
| 123 |
@log_function_io
|
| 124 |
def __init__(self, **kwargs):
|
| 125 |
"""Inicializa o servidor, define os caminhos e prepara o ambiente."""
|
|
|
|
| 221 |
# A instância é criada na primeira importação.
|
| 222 |
try:
|
| 223 |
# A classe é instanciada globalmente para ser usada pela UI
|
| 224 |
+
seed_aduc_pipeline = SeedAducPipeline()
|
| 225 |
except Exception as e:
|
| 226 |
logging.critical("Failed to initialize SeedVRServer singleton.", exc_info=True)
|
| 227 |
seedvr_server_singleton = None
|