diff --git a/.env b/.env new file mode 100644 index 0000000..e0cda37 --- /dev/null +++ b/.env @@ -0,0 +1,80 @@ +# 인페인팅 서버 환경 설정 예시 +# 실제 사용 시 .env 파일로 복사하여 사용하세요 + +# ===== 하드웨어/플랫폼 자동 감지 ===== +# 아래 값은 자동 감지로 채워지며, 수동 강제하려면 true/false 지정 +IS_JETSON=auto # auto | true | false +IS_X86=auto # auto | true | false +GPU_DEVICE=0 # 사용할 GPU 인덱스 + +# ===== 프레임워크 정책 (충돌 방지 핵심) ===== +# TORCH_GPU_ONLY: Torch만 GPU 사용, TF/ONNX는 CPU +# ORT_GPU: ONNXRuntime GPU 사용(필요 시, TF는 CPU) +# TF_GPU_ONLY: TensorFlow만 GPU (권장하지 않음: 토치와 섞이면 충돌↑) +FRAMEWORK_POLICY=TORCH_GPU_ONLY # TORCH_GPU_ONLY | ORT_GPU | TF_GPU_ONLY + +# 개별 토글(정책과 충돌 나면 부트에서 자동 보정) +TF_ENABLED=false +ORT_ENABLED=true +FP16_ENABLED=true + +# 서버 설정 +HOST=0.0.0.0 +PORT=8008 +WORKERS=1 # GPU 서버는 프로세스 1개 권장, 내부 비동기로 동시처리 + +# GPU 설정 +CUDA_DEVICE=0 +FP16_ENABLED=true + +# Jetson 전용 설정 +JETSON_MODE=false # 자동 감지됨 +JETSON_POWER_MODE=MAXN # MAXN, 5W, 10W, 15W +JETSON_FAN_CONTROL=true +JETSON_TEMP_THRESHOLD=75 # Celsius +JETSON_GPU_FREQ=1200 # MHz +JETSON_CPU_FREQ=1900 # MHz +JETSON_MEMORY_FREQ=1600 # MHz + +# 세션 풀 설정 (시스템별 자동 조정) +SIMPLE_LAMA_SESSIONS=4 +MIGAN_SESSIONS=4 +REMBG_SESSIONS=1 + +# 워커 설정 (Jetson은 더 적은 워커 사용) +MAX_WORKERS=8 # Jetson: 4, x86: 8 +MIN_WORKERS=2 # Jetson: 1, x86: 2 +WORKER_TIMEOUT=300 + +# VRAM 관리 (Jetson은 더 보수적인 설정) +VRAM_THRESHOLD_HIGH=0.8 # Jetson: 70%, x86: 80% +VRAM_THRESHOLD_LOW=0.3 # Jetson: 30%, x86: 40% +VRAM_CHECK_INTERVAL=30 # Jetson: 20초, x86: 30초 + +# 모델 경로 +SIMPLE_LAMA_MODEL_PATH=app/models/onnx/lama_fp32.onnx +MIGAN_MODEL_PATH=app/models/onnx/migan_pipeline_v2.onnx +REMBG_MODEL_PATH=app/models/onnx/BriaRMBG1.4_model_fp16.onnx + +# 업로드 설정 (Jetson은 더 작은 파일 크기) +MAX_FILE_SIZE=26214400 # Jetson: 25MB, x86: 50MB +ALLOWED_EXTENSIONS=.jpg,.jpeg,.png,.bmp,.tiff,.webp +# ALLOWED_EXTENSIONS=[".jpg",".jpeg",".png",".bmp",".tiff",".webp"] + +# 모니터링 +ENABLE_MONITORING=true +MONITORING_PORT=8080 + +# Jetson 최적화 설정 +JETSON_OPTIMIZE_ON_STARTUP=true +JETSON_AUTO_FAN_CONTROL=true +JETSON_POWER_SAVING=false + +# ===== TensorRT/ONNX EP ===== +TENSORRT_ENABLED=false # 실제 TensorRT 엔진/EP를 쓸 때만 true +ORT_PROVIDERS=CUDAExecutionProvider,CPUExecutionProvider +# Jetson에서 onnxruntime-gpu 특수 빌드 사용 시: TensorrtExecutionProvider,CUDAExecutionProvider,CPUExecutionProvider + +# ===== 로깅 ===== +LOG_LEVEL=INFO +LOG_DIR=logs diff --git a/.env.example b/.env.example index 91fc7ce..930b8ed 100644 --- a/.env.example +++ b/.env.example @@ -1,13 +1,27 @@ # 인페인팅 서버 환경 설정 예시 # 실제 사용 시 .env 파일로 복사하여 사용하세요 -# 시스템 감지 (자동 설정) -# IS_JETSON=true # Jetson Xavier 감지 시 자동 설정 -# IS_X86=true # x86 시스템 감지 시 자동 설정 +# ===== 하드웨어/플랫폼 자동 감지 ===== +# 아래 값은 자동 감지로 채워지며, 수동 강제하려면 true/false 지정 +IS_JETSON=auto # auto | true | false +IS_X86=auto # auto | true | false +GPU_DEVICE=0 # 사용할 GPU 인덱스 + +# ===== 프레임워크 정책 (충돌 방지 핵심) ===== +# TORCH_GPU_ONLY: Torch만 GPU 사용, TF/ONNX는 CPU +# ORT_GPU: ONNXRuntime GPU 사용(필요 시, TF는 CPU) +# TF_GPU_ONLY: TensorFlow만 GPU (권장하지 않음: 토치와 섞이면 충돌↑) +FRAMEWORK_POLICY=TORCH_GPU_ONLY # TORCH_GPU_ONLY | ORT_GPU | TF_GPU_ONLY + +# 개별 토글(정책과 충돌 나면 부트에서 자동 보정) +TF_ENABLED=false +ORT_ENABLED=true +FP16_ENABLED=true + # 서버 설정 HOST=0.0.0.0 -PORT=8000 +PORT=8008 WORKERS=1 # GPU 설정 @@ -39,19 +53,29 @@ VRAM_THRESHOLD_LOW=0.3 # Jetson: 30%, x86: 40% VRAM_CHECK_INTERVAL=20 # Jetson: 20초, x86: 30초 # 모델 경로 -SIMPLE_LAMA_MODEL_PATH=models/simple-lama -MIGAN_MODEL_PATH=models/migan -REMBG_MODEL_PATH=models/rembg +SIMPLE_LAMA_MODEL_PATH=app/models/onnx/lama_fp32.onnx +MIGAN_MODEL_PATH=app/models/onnx/migan_pipeline_v2.onnx +REMBG_MODEL_PATH=app/models/onnx/BriaRMBG1.4_model_fp16.onnx # 업로드 설정 (Jetson은 더 작은 파일 크기) MAX_FILE_SIZE=26214400 # Jetson: 25MB, x86: 50MB -ALLOWED_EXTENSIONS=.jpg,.jpeg,.png,.bmp,.tiff +# ALLOWED_EXTENSIONS=.jpg,.jpeg,.png,.bmp,.tiff,.webp +ALLOWED_EXTENSIONS=[".jpg",".jpeg",".png",".bmp",".tiff",".webp"] # 모니터링 ENABLE_MONITORING=true -MONITORING_PORT=8001 +MONITORING_PORT=8080 # Jetson 최적화 설정 JETSON_OPTIMIZE_ON_STARTUP=true JETSON_AUTO_FAN_CONTROL=true JETSON_POWER_SAVING=false + +# ===== TensorRT/ONNX EP ===== +TENSORRT_ENABLED=false # 실제 TensorRT 엔진/EP를 쓸 때만 true +ORT_PROVIDERS=CUDAExecutionProvider,CPUExecutionProvider +# Jetson에서 onnxruntime-gpu 특수 빌드 사용 시: TensorrtExecutionProvider,CUDAExecutionProvider,CPUExecutionProvider + +# ===== 로깅 ===== +LOG_LEVEL=INFO +LOG_DIR=logs diff --git a/=0.0.9 b/=0.0.9 deleted file mode 100644 index 01f49e3..0000000 --- a/=0.0.9 +++ /dev/null @@ -1,2 +0,0 @@ -Defaulting to user installation because normal site-packages is not writeable -Requirement already satisfied: python-multipart in /home/ckh08045/.local/lib/python3.8/site-packages (0.0.6) diff --git a/app/core/config.py b/app/core/config.py index bfff876..18b759b 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,131 +1,302 @@ +# app/core/config.py +# -*- coding: utf-8 -*- """ Configuration settings for the inpainting server +- Jetson/x86 자동 감지 +- 프레임워크 충돌 방지 정책 (기본: TORCH_GPU_ONLY) +- VRAM/플랫폼 기반 자동 튜닝 및 유효성 검사 +- 환경변수 가드/스모크 테스트 훅 제공 """ import os +import json import platform -from typing import Dict, Any, Optional, ClassVar -from pydantic_settings import BaseSettings -from pathlib import Path import logging +from pathlib import Path +from typing import Optional, ClassVar + +from pydantic_settings import BaseSettings, SettingsConfigDict +from pydantic import Field, AliasChoices logger = logging.getLogger(__name__) class Settings(BaseSettings): - # System detection - IS_JETSON: ClassVar[bool] = "aarch64" in platform.machine().lower() and "tegra" in platform.release().lower() - PROJECT_ROOT: ClassVar[str] = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + # pydantic v2 설정: .env 읽기 + 여분 키 무시 + model_config = SettingsConfigDict( + env_file=".env", + env_file_encoding="utf-8", + extra="ignore", # .env에 있는 미정의 키는 무시 + case_sensitive=True, + ) - # --- 동적 세션 풀 및 메모리 관리 설정 --- - # 각 모델별 최소/최대 세션 수. 서버 시작 시 min 만큼 생성되고, VRAM 여유 시 max까지 확장됨. - SIMPLE_LAMA_MIN_SESSIONS: int = 2 if IS_JETSON else 2 - SIMPLE_LAMA_MAX_SESSIONS: int = 4 if IS_JETSON else 4 - - MIGAN_MIN_SESSIONS: int = 2 if IS_JETSON else 1 # x86에서는 Migan을 기본으로 로드하지 않음 - MIGAN_MAX_SESSIONS: int = 4 if IS_JETSON else 4 - - REMBG_MIN_SESSIONS: int = 2 if IS_JETSON else 1 - REMBG_MAX_SESSIONS: int = 4 if IS_JETSON else 3 + # ========================= + # 플랫폼/프로젝트 경로 + # ========================= + IS_JETSON: ClassVar[bool] = ( + "aarch64" in platform.machine().lower() + and "tegra" in platform.release().lower() + ) + PROJECT_ROOT: ClassVar[str] = os.path.dirname( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + ) - # 세션 추가 생성 VRAM 임계값 (%). 남은 VRAM이 이 값보다 커야 새 세션 생성. - # 예: 12GB VRAM에 0.3이면, 3.6GB 이상 여유가 있어야 함. - SESSION_VRAM_THRESHOLD: float = 0.3 if IS_JETSON else 0.3 # Jetson에서는 통합 메모리이므로 좀 더 여유롭게 설정 - - # 유휴 세션 자동 제거 시간 (초). 0이면 비활성화. - SESSION_IDLE_TIMEOUT: int = 1800 # 30분 - - # --- 마이크로 배치 설정 --- - USE_MICRO_BATCHING: bool = True # SimpleLama에 대한 배치 처리 활성화 - MICRO_BATCH_SIZE: int = 4 # 최대 배치 크기 - MICRO_BATCH_TIMEOUT_MS: int = 100 # 배치 생성을 위한 최대 대기 시간 (밀리초) - - # --- 서버 환경 설정 (클래스 내부로 이동) --- + # ========================= + # 앱 기본 + # ========================= APP_VERSION: str = "3.0.0-dynamic-pool" APP_NAME: str = "Inpaint & RemoveBG Server" API_PREFIX: str = "/api/v1" HOST: str = "0.0.0.0" PORT: int = 8008 - WORKERS: int = 1 # 개발 모드에서는 1로 고정, 프로덕션에서는 gunicorn으로 관리 + WORKERS: int = 1 # GPU 서버는 프로세스 1 권장(내부 동시성/세션풀 활용) - # GPU settings (Jetson Xavier 최적화) - CUDA_DEVICE: int = 0 - USE_CUDA: bool = True # CUDA 사용 여부 (Jetson에서 항상 True) - USE_FP16: bool = True # FP16 사용 여부 (Jetson 최적화) - FP16_ENABLED: bool = True # 기존 호환성 - - # ONNX Runtime 최적화 설정 - USE_TENSORRT: bool = True # TensorRT 사용 여부 (최고 성능) - TENSORRT_FP16: bool = True # TensorRT FP16 사용 + # ========================= + # GPU/프레임워크 정책 + # ========================= + # NOTE: .env의 GPU_DEVICE도 받아들이도록 별칭 설정 + CUDA_DEVICE: int = Field(0, validation_alias=AliasChoices("CUDA_DEVICE", "GPU_DEVICE")) + USE_CUDA: bool = True + USE_FP16: bool = True + FP16_ENABLED: bool = True # 이전 호환 + + # 프레임워크 사용 정책: + # - TORCH_GPU_ONLY: Torch만 GPU, TF/ONNX는 CPU + # - ORT_GPU: ONNXRuntime GPU, TF는 CPU + # - TF_GPU_ONLY: TF만 GPU(권장 X; Torch와 혼용 시 충돌↑) + FRAMEWORK_POLICY: str = "TORCH_GPU_ONLY" + + # ONNX Runtime / TensorRT / TensorFlow + ORT_ENABLED: bool = True + ORT_PROVIDERS: str = "CPUExecutionProvider" # 기본은 CPU EP (정책에 따라 변경) + USE_TENSORRT: bool = False # 내부 사용 플래그 + TENSORRT_FP16: bool = True TENSORRT_WORKSPACE_SIZE: int = 2 * 1024 * 1024 * 1024 # 2GB - - # Jetson specific settings + TENSORRT_ENABLED: Optional[bool] = None # .env 호환용 (명시되면 USE_TENSORRT와 동기화) + TF_ENABLED: bool = False # 정책에서 최종 보정 + + # ========================= + # Jetson 설정 + # ========================= JETSON_MODE: bool = IS_JETSON JETSON_POWER_MODE: str = "MAXN" # MAXN, 5W, 10W, 15W JETSON_FAN_CONTROL: bool = True JETSON_TEMP_THRESHOLD: int = 75 # Celsius - - # Session pool settings (Jetson Xavier는 32GB 통합 메모리로 더 많은 세션 가능) - SIMPLE_LAMA_SESSIONS: int = 4 if IS_JETSON else 4 # Jetson: 통합 32GB vs 데스크톱: VRAM 제한 - MIGAN_SESSIONS: int = 4 if IS_JETSON else 4 # Jetson이 더 많은 세션 운영 가능 - REMBG_SESSIONS: int = 3 if IS_JETSON else 2 # 메모리 공유 방식의 이점 활용 - - # Worker settings (Jetson은 통합 메모리로 더 효율적) - MAX_WORKERS: int = 10 if IS_JETSON else 8 - MIN_WORKERS: int = 10 if IS_JETSON else 4 - WORKER_TIMEOUT: int = 120 # 2 minutes - - # 사용할 REMBG 모델 설정: "briaai/RMBG-1.4" 또는 onnx 파일 경로 - REMBG_MODEL: str = "briaaiRMBG-1.4" + JETSON_GPU_FREQ: int = 1200 # MHz + JETSON_CPU_FREQ: int = 1900 # MHz + JETSON_MEMORY_FREQ: int = 1600 # MHz - # 메모리 관리 (Jetson은 32GB 통합 메모리로 여유로움) - VRAM_THRESHOLD_HIGH: float = 0.85 if IS_JETSON else 0.80 # 워커 추가 생성 중단 - VRAM_THRESHOLD_LOW: float = 0.4 if IS_JETSON else 0.40 # 워커 제거 시작 - VRAM_CHECK_INTERVAL: int = 30 if IS_JETSON else 15 # Jetson은 덜 자주 체크 - - # Model paths + # ========================= + # 동적 세션 풀/메모리 + # ========================= + SIMPLE_LAMA_MIN_SESSIONS: int = 2 + SIMPLE_LAMA_MAX_SESSIONS: int = 4 + + # x86에서는 MIGAN 미로딩(지연 로딩) 기본 → MIN=0 + MIGAN_MIN_SESSIONS: int = 2 if IS_JETSON else 1 + MIGAN_MAX_SESSIONS: int = 4 + + REMBG_MIN_SESSIONS: int = 2 if IS_JETSON else 1 + REMBG_MAX_SESSIONS: int = 4 if IS_JETSON else 3 + + # 여유 VRAM 비율(남은 VRAM이 이 값보다 커야 세션 추가) + SESSION_VRAM_THRESHOLD: float = 0.30 + SESSION_IDLE_TIMEOUT: int = 1800 # 초 (0이면 비활성) + + # 마이크로 배치(SimpleLAMA) + USE_MICRO_BATCHING: bool = True + MICRO_BATCH_SIZE: int = 4 + MICRO_BATCH_TIMEOUT_MS: int = 100 + + # 사전 확정 세션(플랫폼 감안 기본치) + SIMPLE_LAMA_SESSIONS: int = 4 + MIGAN_SESSIONS: int = 4 + REMBG_SESSIONS: int = 3 if IS_JETSON else 2 + + # 워커(내부 큐/스레드 워커, 프로세스는 WORKERS) + MAX_WORKERS: int = 4 if IS_JETSON else 8 + MIN_WORKERS: int = 1 if IS_JETSON else 4 + WORKER_TIMEOUT: int = 120 + + # ========================= + # 메모리/VRAM 관리 + # ========================= + VRAM_THRESHOLD_HIGH: float = 0.70 if IS_JETSON else 0.80 + VRAM_THRESHOLD_LOW: float = 0.30 if IS_JETSON else 0.40 + VRAM_CHECK_INTERVAL: int = 20 if IS_JETSON else 15 # 초 + + # ========================= + # 모델/경로 + # ========================= SIMPLE_LAMA_MODEL_PATH: str = "app/models/pt/big-lama.pt" MIGAN_MODEL_PATH: str = "app/models/onnx/migan_pipeline_v2.onnx" REMBG_MODEL_PATH: str = "app/models/onnx/BriaRMBG1.4_model_fp16.onnx" - - - # MIGAN ONNX settings - MIGAN_ONNX_PATH: Optional[str] = "app/models/onnx/migan_pipeline_v2.onnx" # 커스텀 ONNX 파일 경로 + + # MIGAN ONNX + MIGAN_ONNX_PATH: Optional[str] = "app/models/onnx/migan_pipeline_v2.onnx" MIGAN_INTRA_THREADS: int = 0 MIGAN_INTER_THREADS: int = 0 - - # REMBG settings (자동 다운로드 방식) - REMBG_MODEL_NAME: str = "briaai/RMBG-1.4" # BriaAI RMBG 1.4 모델 - LOCAL_REMBG_MODEL_PATH: Optional[str] = None # 로컬 파일 사용 안함 - - # Upload settings (Jetson Xavier는 32GB 메모리로 대용량 처리 가능) - MAX_FILE_SIZE: int = 100 * 1024 * 1024 if IS_JETSON else 50 * 1024 * 1024 # Jetson: 100MB, 데스크톱: 50MB - MAX_IMAGE_SIZE: int = 4096 if IS_JETSON else 3072 # Jetson: 4K, 데스크톱: 3K (VRAM 고려) - ALLOWED_EXTENSIONS: set = {".jpg", ".jpeg", ".png", ".bmp", ".tiff"} - - # Monitoring + + # REMBG (자동 다운로드) + REMBG_MODEL_NAME: str = "briaai/RMBG-1.4" + LOCAL_REMBG_MODEL_PATH: Optional[str] = None + + # ========================= + # 업로드/이미지 제한 + # ========================= + MAX_FILE_SIZE: int = (100 * 1024 * 1024) if IS_JETSON else (50 * 1024 * 1024) + MAX_IMAGE_SIZE: int = 4096 if IS_JETSON else 3072 + # ALLOWED_EXTENSIONS는 env에서 문자열로 받고 내부 파싱 + ALLOWED_EXTENSIONS_RAW: str = Field( + ".jpg,.jpeg,.png,.bmp,.tiff,.webp", + validation_alias=AliasChoices("ALLOWED_EXTENSIONS", "ALLOWED_EXTENSIONS_RAW"), + ) + + @property + def ALLOWED_EXTENSIONS(self) -> set[str]: + """ + .env에서 다음 형식을 모두 허용: + 1) JSON 리스트: [".png",".jpg"] + 2) 콤마 문자열: .png,.jpg,.webp + 공백/중복은 자동 정리 + """ + s = (self.ALLOWED_EXTENSIONS_RAW or "").strip() + if not s: + return {".jpg", ".jpeg", ".png", ".bmp", ".tiff"} + # JSON 리스트 우선 + try: + data = json.loads(s) + if isinstance(data, (list, tuple, set)): + return {str(x).strip() for x in data if str(x).strip()} + except Exception: + pass + # 콤마 문자열 + return {p.strip() for p in s.split(",") if p.strip()} + + # ========================= + # Jetson 부가 토글 (.env 호환) + # ========================= + JETSON_OPTIMIZE_ON_STARTUP: bool = False + JETSON_AUTO_FAN_CONTROL: bool = False + JETSON_POWER_SAVING: bool = False + + # ========================= + # 모니터링/알림/로깅 + # ========================= ENABLE_MONITORING: bool = True MONITORING_PORT: int = 8888 - - # Discord 웹훅 알림 설정 DISCORD_WEBHOOK_URL: Optional[str] = None + LOG_LEVEL: str = "INFO" + LOG_DIR: str = "logs" - # Jetson performance settings - JETSON_GPU_FREQ: int = 1200 # MHz - JETSON_CPU_FREQ: int = 1900 # MHz - JETSON_MEMORY_FREQ: int = 1600 # MHz - - class Config: - env_file = ".env" - env_file_encoding = 'utf-8' - protected_namespaces = () + # ------------------------- + # 런타임 보정/검증 + # ------------------------- + def finalize(self) -> "Settings": + """ + - 정책 기반 프레임워크 토글/EP 보정 + - 세션 min/max/고정값 일관성 보정 + - x86/Jetson별 기본값 자동 조정 + - 경계/오타/모순값 사전 차단 + """ + # 0) policy 정상화 + TF 기본값 + policy = (self.FRAMEWORK_POLICY or "TORCH_GPU_ONLY").upper() + if policy not in {"TORCH_GPU_ONLY", "ORT_GPU", "TF_GPU_ONLY"}: + logger.warning(f"알 수 없는 FRAMEWORK_POLICY='{self.FRAMEWORK_POLICY}', TORCH_GPU_ONLY로 강제") + policy = "TORCH_GPU_ONLY" + self.FRAMEWORK_POLICY = policy + self.TF_ENABLED = (policy == "TF_GPU_ONLY") -settings = Settings() + # 1) .env의 TENSORRT_ENABLED가 명시되면 내부 USE_TENSORRT와 동기화 + if self.TENSORRT_ENABLED is not None: + self.USE_TENSORRT = bool(self.TENSORRT_ENABLED) -# 파일에서 웹훅 URL 로드 (환경 변수보다 우선순위 낮음) + # 2) 정책별 기본 EP/TF/ORT/TPU 정리 + if policy == "TORCH_GPU_ONLY": + self.ORT_ENABLED = True + self.ORT_PROVIDERS = "CPUExecutionProvider" + self.USE_TENSORRT = False + elif policy == "ORT_GPU": + self.ORT_ENABLED = True + if self.ORT_PROVIDERS.strip() in {"", "CPUExecutionProvider"}: + # x86 기본 CUDA EP, Jetson 특수 빌드면 TensorrtExecutionProvider를 직접 넣어도 됨 + self.ORT_PROVIDERS = "CUDAExecutionProvider,CPUExecutionProvider" + elif policy == "TF_GPU_ONLY": + self.ORT_ENABLED = False + # TF-TRT 경로를 따로 준비하지 않았다면 False 유지 + self.USE_TENSORRT = False + + # 3) 세션 min/max 일관성 보정 + def fix_min_max(name_min, name_max): + mn = getattr(self, name_min) + mx = getattr(self, name_max) + if mn < 0: + logger.warning(f"{name_min} < 0 → 0으로 보정") + mn = 0 + if mx < mn: + logger.warning(f"{name_max} < {name_min} → {name_min}로 보정") + mx = mn + setattr(self, name_min, mn) + setattr(self, name_max, mx) + + fix_min_max("SIMPLE_LAMA_MIN_SESSIONS", "SIMPLE_LAMA_MAX_SESSIONS") + fix_min_max("MIGAN_MIN_SESSIONS", "MIGAN_MAX_SESSIONS") + fix_min_max("REMBG_MIN_SESSIONS", "REMBG_MAX_SESSIONS") + + # x86에서 MIGAN 지연 로딩 기본화 + if not self.IS_JETSON and self.MIGAN_MIN_SESSIONS == 0 and self.MIGAN_SESSIONS > 0: + logger.info("x86에서 MIGAN_MIN_SESSIONS=0 → MIGAN_SESSIONS=0(지연 로딩)") + self.MIGAN_SESSIONS = 0 + + # 4) VRAM 임계/체크 주기 보정 + if not (0.0 < self.VRAM_THRESHOLD_LOW < self.VRAM_THRESHOLD_HIGH < 0.99): + logger.warning( + f"VRAM 임계값 비정상(HIGH={self.VRAM_THRESHOLD_HIGH}, LOW={self.VRAM_THRESHOLD_LOW}) → 플랫폼 기본으로 보정" + ) + if self.IS_JETSON: + self.VRAM_THRESHOLD_HIGH, self.VRAM_THRESHOLD_LOW = 0.70, 0.30 + self.VRAM_CHECK_INTERVAL = 20 + else: + self.VRAM_THRESHOLD_HIGH, self.VRAM_THRESHOLD_LOW = 0.80, 0.40 + self.VRAM_CHECK_INTERVAL = 15 + + # 5) 파일/이미지 제한 sanity check + if self.MAX_FILE_SIZE <= 0: + self.MAX_FILE_SIZE = (100 * 1024 * 1024) if self.IS_JETSON else (50 * 1024 * 1024) + if self.MAX_IMAGE_SIZE <= 0: + self.MAX_IMAGE_SIZE = 4096 if self.IS_JETSON else 3072 + + # 6) REMBG 모델 문자열 교정 + if self.REMBG_MODEL_NAME.replace(" ", "") in {"briaaiRMBG-1.4", "briaai\\RMBG-1.4"}: + self.REMBG_MODEL_NAME = "briaai/RMBG-1.4" + + # 7) 로그 안내 + logger.info( + f"플랫폼: {'Jetson' if self.IS_JETSON else 'x86_64'}, 정책: {self.FRAMEWORK_POLICY}, " + f"ORT_PROVIDERS: {self.ORT_PROVIDERS}, TF_ENABLED: {self.TF_ENABLED}" + ) + logger.info( + f"세션(MIN~MAX/boot): " + f"LAMA {self.SIMPLE_LAMA_MIN_SESSIONS}~{self.SIMPLE_LAMA_MAX_SESSIONS}/{self.SIMPLE_LAMA_SESSIONS}, " + f"MIGAN {self.MIGAN_MIN_SESSIONS}~{self.MIGAN_MAX_SESSIONS}/{self.MIGAN_SESSIONS}, " + f"REMBG {self.REMBG_MIN_SESSIONS}~{self.REMBG_MAX_SESSIONS}/{self.REMBG_SESSIONS}" + ) + logger.info( + f"VRAM 임계: HIGH={self.VRAM_THRESHOLD_HIGH:.2f}, LOW={self.VRAM_THRESHOLD_LOW:.2f}, " + f"CHECK_INTERVAL={self.VRAM_CHECK_INTERVAL}s" + ) + return self + + +# ------------------------- +# 전역 설정 인스턴스 +# ------------------------- +settings = Settings().finalize() + +# 파일에서 웹훅 URL 로드(환경 변수보다 우선순위 낮음) if not settings.DISCORD_WEBHOOK_URL: try: - webhook_file = Path(settings.PROJECT_ROOT) / "webhook_url.txt" + webhook_file = Path(Settings.PROJECT_ROOT) / "webhook_url.txt" if webhook_file.exists(): url = webhook_file.read_text().strip() if url: @@ -133,3 +304,65 @@ if not settings.DISCORD_WEBHOOK_URL: logger.info(f"파일에서 Discord 웹훅 URL을 로드했습니다: {url[:30]}...") except Exception as e: logger.warning(f"webhook_url.txt 파일 로드 실패: {e}") + + +# ------------------------- +# 런타임 가드/스모크 테스트 헬퍼 +# ------------------------- +def apply_env_guards() -> None: + """ + 프레임워크 충돌을 줄이기 위한 환경변수 가드. + - TORCH_GPU_ONLY: Torch만 GPU, TF/ORT는 CPU + - ORT_GPU: ORT GPU, TF는 CPU + - TF_GPU_ONLY: TF만 GPU + """ + os.environ.setdefault("CUDA_VISIBLE_DEVICES", str(settings.CUDA_DEVICE)) + os.environ.setdefault("TF_CPP_MIN_LOG_LEVEL", "2") + os.environ.setdefault("TF_FORCE_GPU_ALLOW_GROWTH", "true") + + if settings.FRAMEWORK_POLICY == "TORCH_GPU_ONLY": + os.environ["TF_VISIBLE_DEVICES"] = "" # TF는 GPU 비노출 + elif settings.FRAMEWORK_POLICY == "ORT_GPU": + os.environ["TF_VISIBLE_DEVICES"] = "" # TF는 CPU 고정 + elif settings.FRAMEWORK_POLICY == "TF_GPU_ONLY": + # Torch 비활성은 코드단에서 선택적으로 처리 + pass + + logger.info( + f"[ENV GUARD] policy={settings.FRAMEWORK_POLICY}, " + f"TF_ENABLED={settings.TF_ENABLED}, ORT_ENABLED={settings.ORT_ENABLED}, " + f"ORT_PROVIDERS={settings.ORT_PROVIDERS}" + ) + + +def framework_smoketest() -> None: + """ + 선택적 스모크 테스트: 배포 환경 검증용 + """ + try: + import torch # noqa + import torch.cuda # noqa + logger.info(f"Torch CUDA 사용 가능: {torch.cuda.is_available()}") + if torch.cuda.is_available(): + logger.info(f"GPU[{settings.CUDA_DEVICE}]: {torch.cuda.get_device_name(settings.CUDA_DEVICE)}") + except Exception as e: + logger.error(f"Torch 점검 실패: {e}") + + if settings.TF_ENABLED: + try: + import tensorflow as tf # noqa + try: + if settings.FRAMEWORK_POLICY != "TF_GPU_ONLY": + tf.config.set_visible_devices([], "GPU") + except Exception: + pass + logger.info(f"TF {tf.__version__}, GPUs: {tf.config.list_physical_devices('GPU')}") + except Exception as e: + logger.error(f"TF 점검 실패: {e}") + + if settings.ORT_ENABLED: + try: + import onnxruntime as ort # noqa + logger.info(f"ONNXRuntime {ort.__version__}, Providers: {ort.get_available_providers()}") + except Exception as e: + logger.error(f"ONNXRuntime 점검 실패: {e}") diff --git a/logs/main.log b/logs/main.log index 55d61b4..9809b66 100644 --- a/logs/main.log +++ b/logs/main.log @@ -1,10496 +1,933 @@ -2025-08-29 09:38:57,147 - uvicorn.error - INFO - Started server process [1402064] -2025-08-29 09:38:57,148 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 09:38:57,149 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 09:38:57,150 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 09:38:57,150 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 09:38:57,150 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 09:38:57,150 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 09:38:57,151 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 09:38:57,151 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 09:38:57,253 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 09:38:57,355 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 09:38:57,356 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 09:38:57,457 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 09:38:57,559 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 09:38:57,560 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 09:38:57,662 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 09:38:57,663 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 09:38:57,663 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 09:38:57,664 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 09:38:57,665 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 09:38:57,665 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 09:38:57,666 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 09:38:57,666 - uvicorn.error - INFO - Application startup complete. -2025-08-29 09:38:57,669 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 12:12:45,451 - uvicorn.error - INFO - Shutting down -2025-08-29 12:12:45,555 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 12:12:45,558 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 12:12:45,559 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 12:12:45,560 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 12:12:45,561 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 12:12:45,562 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 12:12:45,563 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 12:12:45,565 - uvicorn.error - INFO - Finished server process [1402064] -2025-08-29 12:13:40,136 - uvicorn.error - INFO - Started server process [1420462] -2025-08-29 12:13:40,137 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 12:13:40,138 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 12:13:40,138 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 12:13:40,138 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 12:13:40,139 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 12:13:40,139 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 12:13:40,139 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 12:13:40,140 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 12:13:40,241 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 12:13:40,343 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 12:13:40,344 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 12:13:40,446 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 12:13:40,548 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 12:13:40,548 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 12:13:40,650 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 12:13:40,651 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 12:13:40,651 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 12:13:40,652 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 12:13:40,653 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 12:13:40,653 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 12:13:40,654 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 12:13:40,654 - uvicorn.error - INFO - Application startup complete. -2025-08-29 12:13:40,657 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 12:13:52,513 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 12:13:57,504 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 12:13:57,505 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 12:13:57,525 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 12:14:36,173 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - | response = await handler(conn, exc) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - | content={"detail": jsonable_encoder(exc.errors())}, - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - | jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - | encoded_value = jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - | return ENCODERS_BY_TYPE[type(obj)](obj) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - | bytes: lambda o: o.decode(), - | UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - response = await handler(conn, exc) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - content={"detail": jsonable_encoder(exc.errors())}, - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - encoded_value = jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - return ENCODERS_BY_TYPE[type(obj)](obj) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - bytes: lambda o: o.decode(), -UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte -2025-08-29 12:14:52,780 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - | response = await handler(conn, exc) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - | content={"detail": jsonable_encoder(exc.errors())}, - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - | jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - | encoded_value = jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - | return ENCODERS_BY_TYPE[type(obj)](obj) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - | bytes: lambda o: o.decode(), - | UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - response = await handler(conn, exc) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - content={"detail": jsonable_encoder(exc.errors())}, - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - encoded_value = jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - return ENCODERS_BY_TYPE[type(obj)](obj) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - bytes: lambda o: o.decode(), -UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte -2025-08-29 12:29:57,920 - uvicorn.error - INFO - Shutting down -2025-08-29 12:29:58,024 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 12:29:58,026 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 12:29:58,027 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 12:29:58,029 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 12:29:58,030 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 12:29:58,030 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 12:29:58,032 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 12:29:58,033 - uvicorn.error - INFO - Finished server process [1420462] -2025-08-29 12:33:17,521 - uvicorn.error - INFO - Started server process [1425185] -2025-08-29 12:33:17,522 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 12:33:17,523 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 12:33:17,524 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 12:33:17,524 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 12:33:17,524 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 12:33:17,525 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 12:33:17,525 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 12:33:20,795 - app.core.session_pool - ERROR - Failed to create session for simple_lama: cannot import name 'Config' from 'app.core.config' (/home/ckh08045/work/inpaintServer/./app/core/config.py) -2025-08-29 12:33:20,797 - app.core.session_pool - ERROR - Failed to create session for simple_lama: cannot import name 'Config' from 'app.core.config' (/home/ckh08045/work/inpaintServer/./app/core/config.py) -2025-08-29 12:33:20,797 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 12:33:20,881 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'Config' from 'app.core.config' (/home/ckh08045/work/inpaintServer/./app/core/config.py) -2025-08-29 12:33:20,882 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'Config' from 'app.core.config' (/home/ckh08045/work/inpaintServer/./app/core/config.py) -2025-08-29 12:33:20,883 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 12:33:20,894 - app.core.session_pool - ERROR - Failed to create session for rembg: cannot import name 'Config' from 'app.core.config' (/home/ckh08045/work/inpaintServer/./app/core/config.py) -2025-08-29 12:33:20,894 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 12:33:20,896 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 12:33:20,897 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 12:33:20,898 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 12:33:20,898 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 12:33:20,899 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 12:33:20,900 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 12:33:20,902 - uvicorn.error - INFO - Application startup complete. -2025-08-29 12:33:20,904 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 12:39:42,916 - uvicorn.error - INFO - Shutting down -2025-08-29 12:39:43,021 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 12:39:43,023 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 12:39:43,024 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 12:39:43,025 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 12:39:43,026 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 12:39:43,027 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 12:39:43,028 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 12:39:43,029 - uvicorn.error - INFO - Finished server process [1425185] -2025-08-29 12:40:16,930 - uvicorn.error - INFO - Started server process [1426832] -2025-08-29 12:40:16,930 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 12:40:16,931 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 12:40:16,932 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 12:40:16,932 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 12:40:16,932 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 12:40:16,933 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 12:40:16,933 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 12:40:20,173 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,174 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,176 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,176 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,177 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 12:40:20,247 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:40:20,248 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,250 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,251 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:40:20,251 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,252 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,253 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 12:40:20,255 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,256 - app.core.session_pool - ERROR - Failed to create session for rembg: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:40:20,257 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 12:40:20,257 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 12:40:20,258 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 12:40:20,259 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 12:40:20,260 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 12:40:20,261 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 12:40:20,261 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 12:40:20,264 - uvicorn.error - INFO - Application startup complete. -2025-08-29 12:40:20,266 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 12:42:32,772 - uvicorn.error - INFO - Shutting down -2025-08-29 12:42:32,876 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 12:42:32,878 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 12:42:32,878 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 12:42:32,879 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 12:42:32,880 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 12:42:32,880 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 12:42:32,881 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 12:42:32,881 - uvicorn.error - INFO - Finished server process [1426832] -2025-08-29 12:42:51,818 - uvicorn.error - INFO - Started server process [1427517] -2025-08-29 12:42:51,819 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 12:42:51,820 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 12:42:51,821 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 12:42:51,821 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 12:42:51,821 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 12:42:51,822 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 12:42:51,822 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 12:42:55,074 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,075 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,076 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,077 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,078 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 12:42:55,153 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:42:55,155 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,156 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,156 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:42:55,158 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,159 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,159 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 12:42:55,162 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,162 - app.core.session_pool - ERROR - Failed to create session for rembg: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:42:55,163 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 12:42:55,164 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 12:42:55,165 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 12:42:55,166 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 12:42:55,166 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 12:42:55,167 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 12:42:55,168 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 12:42:55,171 - uvicorn.error - INFO - Application startup complete. -2025-08-29 12:42:55,173 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 12:58:17,779 - uvicorn.error - INFO - Shutting down -2025-08-29 12:58:17,882 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 12:58:17,883 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 12:58:17,883 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 12:58:17,884 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 12:58:17,885 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 12:58:17,885 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 12:58:17,886 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 12:58:17,886 - uvicorn.error - INFO - Finished server process [1427517] -2025-08-29 12:58:36,744 - uvicorn.error - INFO - Started server process [1430774] -2025-08-29 12:58:36,745 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 12:58:36,746 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 12:58:36,746 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 12:58:36,746 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 12:58:36,747 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 12:58:36,747 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 12:58:36,747 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 12:58:39,958 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:39,959 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:39,960 - app.core.session_pool - ERROR - Simple LAMA 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:39,961 - app.core.session_pool - ERROR - Failed to create session for simple_lama: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:39,962 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 12:58:40,037 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:58:40,038 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,039 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,040 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 12:58:40,041 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,041 - app.core.session_pool - ERROR - Failed to create session for migan: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,042 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 12:58:40,044 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,045 - app.core.session_pool - ERROR - Failed to create session for rembg: 'Settings' object has no attribute 'USE_CUDA' -2025-08-29 12:58:40,046 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 12:58:40,047 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 12:58:40,047 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 12:58:40,049 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 12:58:40,050 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 12:58:40,050 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 12:58:40,051 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 12:58:40,054 - uvicorn.error - INFO - Application startup complete. -2025-08-29 12:58:40,056 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:01:06,848 - uvicorn.error - INFO - Shutting down -2025-08-29 13:01:06,951 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:01:06,952 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:01:06,953 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:01:06,953 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:01:06,954 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:01:06,954 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:01:06,955 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:01:06,956 - uvicorn.error - INFO - Finished server process [1430774] -2025-08-29 13:01:25,695 - uvicorn.error - INFO - Started server process [1431654] -2025-08-29 13:01:25,696 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:01:25,697 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:01:25,697 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:01:25,697 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:01:25,698 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:01:25,698 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:01:25,698 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:01:28,908 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:01:34,054 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:01:34,056 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:01:34,057 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:01:34,057 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:01:34,058 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:01:36,196 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:01:36,197 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:01:36,197 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:01:36,198 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:01:36,198 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:01:36,261 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:01:36,261 - app.models.migan - ERROR - MIGAN ONNX 파일을 찾을 수 없습니다: models/migan -2025-08-29 13:01:36,262 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:01:36,262 - app.core.session_pool - ERROR - Failed to create session for migan: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:01:36,262 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:01:36,263 - app.models.migan - ERROR - MIGAN ONNX 파일을 찾을 수 없습니다: models/migan -2025-08-29 13:01:36,263 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:01:36,263 - app.core.session_pool - ERROR - Failed to create session for migan: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:01:36,264 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:01:36,265 - app.models.rembg_model - INFO - Loading REMBG model (u2net)... -2025-08-29 13:02:53,693 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:03:07,587 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:03:07,588 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:03:07,640 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: u2net_cuda_None_local_False -2025-08-29 13:03:07,642 - app.models.rembg_model - ERROR - rembg 세션 생성 실패 ('u2net'): cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 120, in get_session - from rembg.sessions import sessions -ImportError: cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -2025-08-29 13:03:07,644 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 세션 생성 실패: u2net -2025-08-29 13:03:07,644 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 세션 생성 실패: u2net -2025-08-29 13:03:07,644 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 세션 생성 실패: u2net -2025-08-29 13:03:07,644 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:03:07,645 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:03:07,645 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:03:07,646 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:03:07,646 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:03:07,646 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:03:07,647 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:03:10,742 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:03:10,751 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:09:02,112 - uvicorn.error - INFO - Shutting down -2025-08-29 13:09:02,214 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:09:02,216 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:09:02,216 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:09:02,217 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:09:02,217 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:09:02,218 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:09:02,218 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:09:02,219 - uvicorn.error - INFO - Finished server process [1431654] -2025-08-29 13:09:13,567 - uvicorn.error - INFO - Started server process [1433630] -2025-08-29 13:09:13,568 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:09:13,569 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:09:13,570 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:09:13,570 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:09:13,570 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:09:13,571 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:09:13,571 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:09:17,251 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:09:22,093 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:09:22,095 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:09:22,096 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:09:22,097 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:09:22,097 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:09:23,887 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:09:23,887 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:09:23,888 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:09:23,888 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:09:23,888 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:09:23,952 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:09:23,953 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:09:23,953 - app.models.migan - INFO - MIGAN Provider 우선순위: ['CPUExecutionProvider'] -2025-08-29 13:09:24,259 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:09:24,260 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:09:24,260 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:09:24,261 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:09:24,261 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:09:24,262 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:09:24,262 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:09:24,262 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:09:24,262 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:09:24,271 - app.models.rembg_model - INFO - Loading REMBG model (u2net)... -2025-08-29 13:09:26,223 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:09:27,497 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:09:27,498 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:09:27,551 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: u2net_cuda_None_local_False -2025-08-29 13:09:27,552 - app.models.rembg_model - ERROR - rembg 세션 생성 실패 ('u2net'): cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 120, in get_session - from rembg.sessions import sessions -ImportError: cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -2025-08-29 13:09:27,554 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:27,554 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:27,555 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:27,555 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:09:27,555 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:09:27,556 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:09:27,556 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:09:27,556 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:09:27,557 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:09:27,557 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:09:27,559 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:09:27,560 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:09:37,922 - uvicorn.error - INFO - Started server process [1433883] -2025-08-29 13:09:37,923 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:09:37,924 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:09:37,924 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:09:37,925 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:09:37,925 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:09:37,925 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:09:37,926 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:09:42,497 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:09:47,507 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:09:47,508 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:09:47,508 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:09:47,509 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:09:47,509 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:09:49,487 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:09:49,488 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:09:49,488 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:09:49,488 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:09:49,489 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:09:49,544 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:09:49,544 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:09:49,545 - app.models.migan - INFO - MIGAN Provider 우선순위: ['CPUExecutionProvider'] -2025-08-29 13:09:49,859 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:09:49,860 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:09:49,860 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:09:49,861 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:09:49,861 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:09:49,861 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:09:49,862 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:09:49,862 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:09:49,862 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:09:49,864 - app.models.rembg_model - INFO - Loading REMBG model (u2net)... -2025-08-29 13:09:51,785 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:09:53,182 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:09:53,183 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:09:53,217 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: u2net_cuda_None_local_False -2025-08-29 13:09:53,218 - app.models.rembg_model - ERROR - rembg 세션 생성 실패 ('u2net'): cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 120, in get_session - from rembg.sessions import sessions -ImportError: cannot import name 'sessions' from 'rembg.sessions' (/home/ckh08045/.local/lib/python3.8/site-packages/rembg/sessions/__init__.py) -2025-08-29 13:09:53,220 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:53,220 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:53,220 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 세션 생성 실패: u2net -2025-08-29 13:09:53,221 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:09:53,221 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:09:53,221 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:09:53,222 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:09:53,222 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:09:53,222 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:09:53,223 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:09:53,225 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:09:53,226 - uvicorn.error - ERROR - [Errno 98] error while attempting to bind on address ('0.0.0.0', 8008): address already in use -2025-08-29 13:09:53,226 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:09:53,227 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:09:53,227 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:09:53,228 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:09:53,228 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:09:53,228 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:09:53,228 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:11:35,249 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - | response = await handler(conn, exc) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - | content={"detail": jsonable_encoder(exc.errors())}, - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - | jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - | encoded_value = jsonable_encoder( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - | return ENCODERS_BY_TYPE[type(obj)](obj) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - | bytes: lambda o: o.decode(), - | UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 272, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app - response = await handler(conn, exc) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/exception_handlers.py", line 25, in request_validation_exception_handler - content={"detail": jsonable_encoder(exc.errors())}, - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 301, in jsonable_encoder - jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 287, in jsonable_encoder - encoded_value = jsonable_encoder( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 316, in jsonable_encoder - return ENCODERS_BY_TYPE[type(obj)](obj) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/encoders.py", line 59, in - bytes: lambda o: o.decode(), -UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 148: invalid start byte -2025-08-29 13:12:14,306 - uvicorn.error - INFO - Shutting down -2025-08-29 13:12:14,411 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:12:14,413 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:12:14,414 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:12:14,416 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:12:14,417 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:12:14,417 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:12:14,418 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:12:14,419 - uvicorn.error - INFO - Finished server process [1433630] -2025-08-29 13:12:53,665 - uvicorn.error - INFO - Started server process [1435157] -2025-08-29 13:12:53,666 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:12:53,667 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:12:53,667 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:12:53,667 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:12:53,668 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:12:53,668 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:12:53,668 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:12:56,921 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:13:01,260 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:13:01,261 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:13:01,262 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:13:01,262 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:13:01,263 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:13:03,129 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:13:03,129 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:13:03,129 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:13:03,130 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:13:03,130 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:13:03,186 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:13:03,187 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:13:03,187 - app.models.migan - INFO - MIGAN Provider 우선순위: ['CPUExecutionProvider'] -2025-08-29 13:13:03,457 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:13:03,457 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:13:03,458 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:13:03,458 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:13:03,459 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:13:03,459 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:13:03,459 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:13:03,460 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:13:03,460 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:13:03,468 - app.models.rembg_model - INFO - Loading REMBG model (u2net)... -2025-08-29 13:13:05,325 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:13:06,308 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:13:06,309 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:13:06,316 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: u2net_cuda_None_local_False -2025-08-29 13:13:06,318 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 13:13:06,318 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): u2net -2025-08-29 13:13:06,319 - app.models.rembg_model - INFO - 기본 방식으로 세션 생성: u2net -2025-08-29 13:13:07,154 - app.models.rembg_model - INFO - ✅ rembg 'u2net' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 13:13:07,155 - app.models.rembg_model - INFO - REMBG model (u2net) loaded successfully -2025-08-29 13:13:07,155 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 13:13:07,156 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 13:13:07,156 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:13:07,156 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:13:07,157 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:13:07,157 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:13:07,158 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:13:07,158 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:13:07,158 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:13:07,160 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:13:07,161 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:15:04,560 - uvicorn.error - INFO - Shutting down -2025-08-29 13:15:04,662 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:15:04,664 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:15:04,664 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:15:04,665 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:15:04,666 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:15:04,666 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:15:04,667 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:15:04,667 - uvicorn.error - INFO - Finished server process [1435157] -2025-08-29 13:15:23,810 - uvicorn.error - INFO - Started server process [1435825] -2025-08-29 13:15:23,811 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:15:23,813 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:15:23,813 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:15:23,813 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:15:23,814 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:15:23,814 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:15:23,815 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:15:27,989 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:15:32,408 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:15:32,409 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:15:32,410 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:15:32,411 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:15:32,412 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:15:34,234 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:15:34,234 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:15:34,235 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:15:34,235 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:15:34,235 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:15:34,289 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:15:34,290 - app.models.migan - ERROR - MIGAN ONNX 파일을 찾을 수 없습니다: models/migan -2025-08-29 13:15:34,291 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:15:34,291 - app.core.session_pool - ERROR - Failed to create session for migan: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:15:34,291 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:15:34,292 - app.models.migan - ERROR - MIGAN ONNX 파일을 찾을 수 없습니다: models/migan -2025-08-29 13:15:34,292 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:15:34,292 - app.core.session_pool - ERROR - Failed to create session for migan: MIGAN ONNX 파일이 없습니다: models/migan -2025-08-29 13:15:34,292 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:15:34,300 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 13:15:36,333 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:15:37,297 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:15:37,297 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:15:37,305 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 13:15:37,306 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 13:15:37,307 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 13:15:37,307 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 13:16:00,231 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 13:16:00,232 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 13:16:00,232 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 13:16:00,233 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 13:16:00,233 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:16:00,233 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:16:00,234 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:16:00,234 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:16:00,235 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:16:00,235 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:16:00,235 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:16:00,237 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:16:00,238 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:16:28,288 - uvicorn.error - INFO - Shutting down -2025-08-29 13:16:28,391 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:16:28,393 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:16:28,394 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:16:28,395 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:16:28,396 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:16:28,397 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:16:28,398 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:16:28,399 - uvicorn.error - INFO - Finished server process [1435825] -2025-08-29 13:17:03,462 - uvicorn.error - INFO - Started server process [1436545] -2025-08-29 13:17:03,463 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:17:03,464 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:17:03,464 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:17:03,465 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:17:03,465 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:17:03,465 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:17:03,466 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:17:07,204 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:17:12,497 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:17:12,498 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:17:12,498 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:17:12,499 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:17:12,499 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:17:14,244 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:17:14,244 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:17:14,245 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:17:14,245 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:17:14,245 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:17:14,302 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:17:14,302 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:17:14,303 - app.models.migan - INFO - MIGAN Provider 우선순위: ['CPUExecutionProvider'] -2025-08-29 13:17:14,554 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:17:14,555 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:17:14,555 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:17:14,556 - app.core.session_pool - WARNING - MIGAN ONNX 경로가 설정되지 않음, 기본 모델 사용 -2025-08-29 13:17:14,556 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:17:14,557 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:17:14,557 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:17:14,557 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:17:14,557 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:17:14,566 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 13:17:16,433 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:17:17,386 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:17:17,387 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:17:17,409 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 13:17:17,410 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 13:17:17,410 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 13:17:17,411 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 13:17:23,328 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 13:17:23,329 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 13:17:23,329 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 13:17:23,330 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 13:17:23,330 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:17:23,330 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:17:23,331 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:17:23,331 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:17:23,332 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:17:23,332 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:17:23,333 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:17:23,335 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:17:23,336 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:17:41,419 - uvicorn.error - INFO - Shutting down -2025-08-29 13:17:41,520 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:17:41,521 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:17:41,522 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:17:41,522 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:17:41,523 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:17:41,523 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:17:41,524 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:17:41,524 - uvicorn.error - INFO - Finished server process [1436545] -2025-08-29 13:18:15,544 - uvicorn.error - INFO - Started server process [1437240] -2025-08-29 13:18:15,545 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:18:15,545 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:18:15,546 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:18:15,546 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:18:15,546 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:18:15,547 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:18:15,547 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:18:18,770 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:18:23,342 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:18:23,344 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:18:23,345 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:18:23,346 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:18:23,347 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:18:25,183 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:18:25,184 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:18:25,184 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:18:25,184 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:18:25,185 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:18:25,238 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:18:25,238 - app.models.migan - INFO - MIGAN Provider 우선순위: ['TensorRTExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 13:18:25,524 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:18:25,525 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:18:25,525 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:18:25,526 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:18:25,526 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:18:25,526 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:18:25,527 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:18:25,527 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:18:25,529 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 13:18:27,397 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:18:28,316 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:18:28,317 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:18:28,337 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 13:18:28,338 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 13:18:28,339 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 13:18:28,339 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 13:18:34,185 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 13:18:34,186 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 13:18:34,186 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 13:18:34,187 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 13:18:34,187 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:18:34,187 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:18:34,188 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:18:34,188 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:18:34,189 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:18:34,189 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:18:34,189 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:18:34,191 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:18:34,193 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:49:32,624 - uvicorn.error - INFO - Shutting down -2025-08-29 13:49:32,730 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:49:32,732 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:49:32,733 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:49:32,735 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:49:32,736 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:49:32,736 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:49:32,738 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:49:32,739 - uvicorn.error - INFO - Finished server process [1437240] -2025-08-29 13:51:19,238 - uvicorn.error - INFO - Started server process [1450421] -2025-08-29 13:51:19,239 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:51:19,240 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:51:19,240 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:51:19,241 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:51:19,241 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:51:19,241 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:51:19,242 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:51:22,447 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:51:26,829 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:51:26,830 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:51:26,831 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:51:26,832 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:51:26,832 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:51:28,552 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:51:28,553 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:51:28,553 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:51:28,553 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:51:28,554 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:51:28,617 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:51:28,618 - app.models.migan - INFO - MIGAN Provider 우선순위: ['TensorRTExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 13:51:32,095 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:51:32,096 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:51:32,096 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:51:32,097 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:51:32,097 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:51:32,098 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:51:32,098 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:51:32,098 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:51:32,106 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 13:51:33,948 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 13:51:35,279 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 13:51:35,279 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 13:51:35,303 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 13:51:35,305 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 13:51:35,305 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 13:51:35,305 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 13:51:48,892 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 13:51:48,893 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 13:51:48,894 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 13:51:48,894 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 13:51:48,894 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 13:51:48,895 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 13:51:48,895 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 13:51:48,896 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 13:51:48,896 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 13:51:48,896 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 13:51:48,897 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 13:51:48,899 - uvicorn.error - INFO - Application startup complete. -2025-08-29 13:51:48,900 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 13:59:08,848 - uvicorn.error - INFO - Shutting down -2025-08-29 13:59:08,953 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 13:59:08,956 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 13:59:08,957 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 13:59:08,958 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 13:59:08,959 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 13:59:08,960 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 13:59:08,962 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 13:59:08,963 - uvicorn.error - INFO - Finished server process [1450421] -2025-08-29 13:59:44,777 - uvicorn.error - INFO - Started server process [1452376] -2025-08-29 13:59:44,778 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 13:59:44,779 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 13:59:44,780 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 13:59:44,780 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 13:59:44,780 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 13:59:44,781 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 13:59:44,781 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 13:59:48,079 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:59:53,418 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:59:53,420 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:59:53,421 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:59:53,421 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 13:59:53,422 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 13:59:55,286 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 13:59:55,287 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 13:59:55,287 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 13:59:55,287 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 13:59:55,288 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 13:59:55,352 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:59:55,353 - app.models.migan - INFO - MIGAN Provider 우선순위: ['TensorRTExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 13:59:58,380 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:59:58,381 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:59:58,381 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 13:59:58,382 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 13:59:58,382 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 13:59:58,383 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 13:59:58,383 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 13:59:58,384 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 13:59:58,392 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:00:00,273 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:00:01,534 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:00:01,535 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:00:01,557 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:00:01,559 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:00:01,559 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:00:01,560 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:00:15,061 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:00:15,062 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:00:15,062 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:00:15,063 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:00:15,063 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:00:15,064 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:00:15,064 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:00:15,065 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:00:15,065 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:00:15,065 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:00:15,066 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:00:15,068 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:00:15,069 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:00:20,294 - uvicorn.error - INFO - Shutting down -2025-08-29 14:00:20,396 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:00:20,398 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:00:20,398 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:00:20,400 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:00:20,400 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:00:20,401 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:00:20,402 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:00:20,403 - uvicorn.error - INFO - Finished server process [1452376] -2025-08-29 14:01:53,230 - uvicorn.error - INFO - Started server process [1453327] -2025-08-29 14:01:53,231 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:01:53,232 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:01:53,232 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:01:53,233 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:01:53,233 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:01:53,233 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:01:53,234 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:01:56,516 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:02:00,889 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:02:00,890 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:02:00,891 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:02:00,892 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:02:00,893 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:02:02,699 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:02:02,699 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:02:02,700 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:02:02,700 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:02:02,700 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:02:02,761 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:02:02,762 - app.models.migan - INFO - MIGAN Provider 우선순위: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 14:02:06,221 - app.models.migan - WARNING - MIGAN CUDA EP 초기화 실패, CPU로 폴백: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: /home/yifanl/onnxruntime/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc:2188 SubGraphCollection_t onnxruntime::TensorrtExecutionProvider::GetSupportedList(SubGraphCollection_t, int, int, const onnxruntime::GraphViewer&, bool*) const [ONNXRuntimeError] : 1 : FAIL : TensorRT input: /Pad_output_0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs - -2025-08-29 14:02:07,113 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:02:07,115 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:02:07,116 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 14:02:07,116 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:02:07,116 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:02:07,117 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:02:07,117 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 14:02:07,117 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:02:07,125 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:02:09,036 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:02:10,260 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:02:10,261 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:02:10,272 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:02:10,273 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:02:10,273 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:02:10,274 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:02:55,898 - uvicorn.error - INFO - Started server process [1454285] -2025-08-29 14:02:55,899 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:02:55,900 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:02:55,901 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:02:55,901 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:02:55,901 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:02:55,902 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:02:55,902 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:02:59,102 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:03:03,621 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:03:03,622 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:03:03,623 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:03:03,624 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:03:03,625 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:03:05,352 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:03:05,353 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:03:05,353 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:03:05,354 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:03:05,354 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:03:05,416 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:03:05,417 - app.models.migan - INFO - MIGAN Provider 우선순위: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 14:03:08,588 - app.models.migan - WARNING - MIGAN CUDA EP 초기화 실패, CPU로 폴백: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: /home/yifanl/onnxruntime/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc:2188 SubGraphCollection_t onnxruntime::TensorrtExecutionProvider::GetSupportedList(SubGraphCollection_t, int, int, const onnxruntime::GraphViewer&, bool*) const [ONNXRuntimeError] : 1 : FAIL : TensorRT input: /Pad_output_0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs - -2025-08-29 14:03:09,458 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:03:09,460 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:03:09,460 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 14:03:09,461 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:03:09,461 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:03:09,461 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:03:09,462 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 14:03:09,462 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:03:09,470 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:03:11,342 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:03:12,526 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:03:12,527 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:03:12,542 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:03:12,546 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:03:12,546 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:03:12,547 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:03:26,251 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:03:26,252 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:03:26,252 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:03:26,253 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:03:26,253 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:03:26,253 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:03:26,254 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:03:26,254 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:03:26,255 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:03:26,255 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:03:26,255 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:03:26,257 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:03:26,258 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:07:25,766 - uvicorn.error - INFO - Shutting down -2025-08-29 14:07:25,871 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:07:25,875 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:07:25,877 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:07:25,878 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:07:25,879 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:07:25,880 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:07:25,882 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:07:25,883 - uvicorn.error - INFO - Finished server process [1454285] -2025-08-29 14:08:05,067 - uvicorn.error - INFO - Started server process [1455980] -2025-08-29 14:08:05,068 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:08:05,069 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:08:05,069 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:08:05,070 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:08:05,070 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:08:05,070 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:08:05,071 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:08:08,384 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:08:12,983 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:08:12,984 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:08:12,985 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:08:12,986 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:08:12,987 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:08:14,899 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:08:14,900 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:08:14,900 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:08:14,901 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:08:14,901 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:08:14,965 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:08:14,965 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 14:08:17,658 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:08:17,659 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:08:17,659 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 14:08:17,660 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:08:17,660 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:08:17,661 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:08:17,661 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 14:08:17,661 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:08:17,663 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:08:19,592 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:08:21,059 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:08:21,060 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:08:21,068 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:08:21,072 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:08:21,073 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:08:21,074 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:08:26,300 - uvicorn.error - INFO - Started server process [1456407] -2025-08-29 14:08:26,301 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:08:26,302 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:08:26,302 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:08:26,303 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:08:26,303 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:08:26,304 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:08:26,304 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:08:30,318 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:08:36,063 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:08:36,064 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:08:36,065 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:08:36,065 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:08:36,066 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:08:36,750 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:08:36,751 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:08:36,751 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:08:36,751 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:08:36,752 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:08:36,752 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:08:36,753 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:08:36,753 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:08:36,754 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:08:36,754 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:08:36,754 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:08:36,757 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:08:36,758 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:08:37,855 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:08:37,856 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:08:37,856 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:08:37,856 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:08:37,857 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:08:37,916 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:08:37,917 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 14:08:40,888 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:08:40,889 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:08:40,889 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 14:08:40,890 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:08:40,890 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:08:40,891 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:08:40,891 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 14:08:40,891 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:08:40,893 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:08:42,864 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:08:44,532 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:08:44,533 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:08:44,571 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:08:44,573 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:08:44,573 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:08:44,574 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:08:58,516 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:08:58,517 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:08:58,517 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:08:58,518 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:08:58,518 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:08:58,519 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:08:58,519 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:08:58,520 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:08:58,520 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:08:58,520 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:08:58,521 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:08:58,523 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:08:58,524 - uvicorn.error - ERROR - [Errno 98] error while attempting to bind on address ('0.0.0.0', 8008): address already in use -2025-08-29 14:08:58,525 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:08:58,525 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:08:58,526 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:08:58,526 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:08:58,527 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:08:58,527 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:08:58,528 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:28:33,272 - uvicorn.error - INFO - Shutting down -2025-08-29 14:28:33,376 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:28:33,379 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:28:33,380 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:28:33,382 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:28:33,382 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:28:33,384 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:28:33,385 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:28:33,386 - uvicorn.error - INFO - Finished server process [1455980] -2025-08-29 14:35:05,504 - uvicorn.error - INFO - Started server process [1464294] -2025-08-29 14:35:05,505 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:35:05,506 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:35:05,507 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:35:05,507 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:35:05,507 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:35:05,508 - main - INFO - 🚀 GPU 관리자 초기화 중... -2025-08-29 14:35:05,517 - main - ERROR - ❌ 서버 시작 실패: log() got multiple values for argument 'level' -2025-08-29 14:35:05,521 - uvicorn.error - ERROR - Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 50, in _auto_setup_cudnn_path - self.logger.log("Jetson Xavier 감지됨: 시스템 cuDNN 사용", level=logging.INFO) -TypeError: log() got multiple values for argument 'level' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 705, in lifespan - async with self.lifespan_context(app) as maybe_state: - File "/usr/lib/python3.8/contextlib.py", line 171, in __aenter__ - return await self.gen.__anext__() - File "/home/ckh08045/work/inpaintServer/./main.py", line 228, in lifespan - gpu_manager.initialize_gpu_state(toggle_states) - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 108, in initialize_gpu_state - self._auto_setup_cudnn_path() - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 93, in _auto_setup_cudnn_path - self.logger.log(f"cuDNN PATH 자동 설정 중 오류: {e}", level=logging.WARNING) -TypeError: log() got multiple values for argument 'level' - -2025-08-29 14:35:05,522 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:35:05,524 - uvicorn.error - ERROR - Application startup failed. Exiting. -2025-08-29 14:35:41,301 - uvicorn.error - INFO - Started server process [1464668] -2025-08-29 14:35:41,302 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:35:41,303 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:35:41,303 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:35:41,304 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:35:41,304 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:35:41,304 - main - INFO - 🚀 GPU 관리자 초기화 중... -2025-08-29 14:35:41,314 - main - ERROR - ❌ 서버 시작 실패: log() got multiple values for argument 'level' -2025-08-29 14:35:41,317 - uvicorn.error - ERROR - Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 50, in _auto_setup_cudnn_path - self.logger.log("Jetson Xavier 감지됨: 시스템 cuDNN 사용", level=logging.INFO) -TypeError: log() got multiple values for argument 'level' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 705, in lifespan - async with self.lifespan_context(app) as maybe_state: - File "/usr/lib/python3.8/contextlib.py", line 171, in __aenter__ - return await self.gen.__anext__() - File "/home/ckh08045/work/inpaintServer/./main.py", line 228, in lifespan - gpu_manager.initialize_gpu_state(toggle_states) - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 108, in initialize_gpu_state - self._auto_setup_cudnn_path() - File "/home/ckh08045/work/inpaintServer/./app/core/gpu_utils.py", line 93, in _auto_setup_cudnn_path - self.logger.log(f"cuDNN PATH 자동 설정 중 오류: {e}", level=logging.WARNING) -TypeError: log() got multiple values for argument 'level' - -2025-08-29 14:35:41,318 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:35:41,320 - uvicorn.error - ERROR - Application startup failed. Exiting. -2025-08-29 14:38:30,800 - uvicorn.error - INFO - Started server process [1465833] -2025-08-29 14:38:30,800 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:38:30,801 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:38:30,802 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:38:30,802 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:38:30,802 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:38:30,803 - main - INFO - 🚀 GPU 관리자 초기화 중... -2025-08-29 14:38:30,804 - main - INFO - 🚀 GPU 상태 초기화 시작 -2025-08-29 14:38:30,804 - main - INFO - 사용자 CUDA 사용 요청: True -2025-08-29 14:38:30,805 - main - INFO - Jetson Xavier (ARM64) 환경 확인됨 -2025-08-29 14:38:30,823 - main - INFO - CUDA 컴파일러 감지됨 -2025-08-29 14:38:30,896 - main - INFO - ONNX Runtime 사용 가능한 providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 14:38:30,896 - main - INFO - 🚀 TensorRT ExecutionProvider 지원 확인됨 -2025-08-29 14:38:30,897 - main - INFO - ⚡ CUDA ExecutionProvider 지원 확인됨 -2025-08-29 14:38:30,897 - main - INFO - ✅ CUDA 사용 가능 - GPU 가속 모드로 동작 -2025-08-29 14:38:30,897 - main - INFO - GPU 정보: {'gpu_0': {'name': 'Jetson Xavier GPU', 'memory_mb': '8192', 'driver_version': 'JetPack'}} -2025-08-29 14:38:30,898 - main - INFO - ✅ GPU 관리자 초기화 완료 -2025-08-29 14:38:30,898 - main - INFO - ✅ GPU 관리자를 세션 풀에 설정 완료 -2025-08-29 14:38:30,899 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:38:30,899 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:38:34,129 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:38:38,558 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:38:38,560 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:38:38,560 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:38:38,561 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:38:38,562 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:38:40,319 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:38:40,320 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:38:40,320 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:38:40,321 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:38:40,321 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:38:40,329 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:38:40,330 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:38:40,330 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:38:40,336 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:38:42,159 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 14:38:44,934 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 14:38:44,935 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 14:38:44,949 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 14:38:44,954 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:38:44,955 - app.models.rembg_model - INFO - rembg 세션 생성 (GPU): birefnet-general-lite with TensorRT→CUDA→CPU -2025-08-29 14:38:44,955 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:38:58,477 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:38:58,478 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:38:58,478 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:38:58,479 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:38:58,479 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:38:58,479 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:38:58,480 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:38:58,481 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:38:58,481 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:38:58,481 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:38:58,482 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:38:58,484 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:38:58,485 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:39:19,010 - uvicorn.error - INFO - Shutting down -2025-08-29 14:39:19,112 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:39:19,114 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:39:19,115 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:39:19,116 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:39:19,117 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:39:19,118 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:39:19,118 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:39:19,120 - uvicorn.error - INFO - Finished server process [1465833] -2025-08-29 14:39:22,910 - uvicorn.error - INFO - Started server process [1466401] -2025-08-29 14:39:22,910 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:39:22,911 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:39:22,912 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:39:22,912 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:39:22,913 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:39:22,913 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 14:39:22,913 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 14:39:22,914 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:39:22,914 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:39:26,177 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:39:30,343 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:39:30,345 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:39:30,346 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:39:30,347 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:39:30,349 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:39:32,130 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:39:32,131 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:39:32,131 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:39:32,132 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:39:32,132 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:39:32,188 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:39:32,189 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:39:32,189 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:39:32,190 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:39:34,078 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:39:35,327 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:39:35,327 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:39:35,334 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:39:35,336 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:39:35,337 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:39:35,337 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:39:48,631 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:39:48,632 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:39:48,632 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:39:48,633 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:39:48,633 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:39:48,634 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:39:48,634 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:39:48,635 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:39:48,635 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:39:48,635 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:39:48,636 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:39:48,638 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:39:48,639 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:42:43,860 - uvicorn.error - INFO - Started server process [1467573] -2025-08-29 14:42:43,860 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:42:43,861 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:42:43,862 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:42:43,862 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:42:43,863 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:42:43,863 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 14:42:43,863 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 14:42:43,864 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:42:43,864 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:42:47,235 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:42:51,565 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:42:51,567 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:42:51,567 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:42:51,568 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:42:51,569 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:42:53,159 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:42:53,160 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:42:53,160 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:42:53,161 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:42:53,161 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:42:53,222 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:42:53,223 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:42:53,224 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:42:53,231 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:42:55,078 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:42:56,370 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:42:56,370 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:42:56,377 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:42:56,379 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:42:56,380 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:42:56,380 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:44:33,078 - uvicorn.error - INFO - Started server process [1468784] -2025-08-29 14:44:33,079 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:44:33,080 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:44:33,080 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:44:33,081 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:44:33,081 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:44:33,081 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 14:44:33,082 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 14:44:33,082 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:44:33,082 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:44:36,264 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:44:40,429 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:44:40,430 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:44:40,431 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:44:40,432 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:44:40,433 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:44:42,103 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:44:42,104 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:44:42,104 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:44:42,104 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:44:42,105 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:44:42,156 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:44:42,157 - app.core.session_pool - ERROR - Failed to create session for migan: cannot import name 'build_migan_from_toggle' from 'app.models.migan' (/home/ckh08045/work/inpaintServer/./app/models/migan.py) -2025-08-29 14:44:42,157 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:44:42,159 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:44:43,987 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:44:45,234 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:44:45,235 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:44:45,242 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_None -2025-08-29 14:44:45,244 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:44:45,244 - app.models.rembg_model - INFO - rembg 세션 생성 (CPU): birefnet-general-lite -2025-08-29 14:44:45,244 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:44:58,878 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:44:58,879 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:44:58,879 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:44:58,879 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:44:58,880 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:44:58,880 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:44:58,881 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:44:58,881 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:44:58,881 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:44:58,882 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:44:58,882 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:44:58,884 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:44:58,885 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:55:20,023 - uvicorn.error - INFO - Shutting down -2025-08-29 14:55:20,128 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:55:20,131 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:55:20,132 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:55:20,134 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:55:20,135 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:55:20,135 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:55:20,137 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:55:20,138 - uvicorn.error - INFO - Finished server process [1468784] -2025-08-29 14:55:23,706 - uvicorn.error - INFO - Started server process [1472065] -2025-08-29 14:55:23,707 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:55:23,708 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:55:23,708 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:55:23,708 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:55:23,709 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:55:23,709 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 14:55:23,709 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 14:55:23,710 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:55:23,710 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:55:26,889 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:55:31,195 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:55:31,196 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:55:31,197 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:55:31,198 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:55:31,199 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:55:32,902 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:55:32,903 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:55:32,903 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:55:32,903 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:55:32,904 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:55:32,957 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: __init__() got an unexpected keyword argument 'gpu_manager' -2025-08-29 14:55:32,957 - app.core.session_pool - ERROR - Failed to create session for migan: __init__() got an unexpected keyword argument 'gpu_manager' -2025-08-29 14:55:32,958 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: __init__() got an unexpected keyword argument 'gpu_manager' -2025-08-29 14:55:32,958 - app.core.session_pool - ERROR - Failed to create session for migan: __init__() got an unexpected keyword argument 'gpu_manager' -2025-08-29 14:55:32,958 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:55:32,966 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:55:34,813 - app.models.rembg_model - INFO - rembg CPU-only 모드로 테스트 -2025-08-29 14:55:36,089 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CPUExecutionProvider'] -2025-08-29 14:55:36,089 - app.models.rembg_model - INFO - rembg CPU 모드로 동작 -2025-08-29 14:55:36,110 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 14:55:36,113 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:55:36,114 - app.models.rembg_model - INFO - rembg 세션 생성 (GPU): birefnet-general-lite with TensorRT→CUDA→CPU -2025-08-29 14:55:36,114 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:55:49,919 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:55:49,920 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:55:49,921 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:55:49,921 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:55:49,921 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:55:49,922 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:55:49,922 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:55:49,923 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:55:49,923 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:55:49,923 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:55:49,924 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:55:49,926 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:55:49,927 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 14:58:52,816 - uvicorn.error - INFO - Shutting down -2025-08-29 14:58:52,922 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 14:58:52,924 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 14:58:52,926 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 14:58:52,927 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 14:58:52,928 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 14:58:52,929 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 14:58:52,931 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 14:58:52,932 - uvicorn.error - INFO - Finished server process [1472065] -2025-08-29 14:58:57,683 - uvicorn.error - INFO - Started server process [1473514] -2025-08-29 14:58:57,683 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 14:58:57,685 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 14:58:57,685 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 14:58:57,685 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 14:58:57,686 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 14:58:57,686 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 14:58:57,686 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 14:58:57,687 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 14:58:57,687 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 14:59:00,994 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:59:05,279 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:59:05,280 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:59:05,281 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:59:05,282 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 14:59:05,282 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 14:59:06,878 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 14:59:06,879 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 14:59:06,879 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 14:59:06,880 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 14:59:06,880 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 14:59:06,933 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:59:06,933 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 14:59:09,983 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:59:09,984 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:59:09,985 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 14:59:09,985 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 14:59:09,986 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 14:59:09,986 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 14:59:09,986 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 14:59:09,987 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 14:59:09,995 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 14:59:11,810 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 14:59:13,177 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 14:59:13,178 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 14:59:13,193 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 14:59:13,195 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 14:59:13,196 - app.models.rembg_model - INFO - rembg 세션 생성 (GPU): birefnet-general-lite with TensorRT→CUDA -2025-08-29 14:59:13,196 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 14:59:26,429 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 14:59:26,430 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 14:59:26,430 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 14:59:26,430 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 14:59:26,431 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 14:59:26,431 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 14:59:26,432 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 14:59:26,432 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 14:59:26,433 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 14:59:26,433 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 14:59:26,433 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 14:59:26,435 - uvicorn.error - INFO - Application startup complete. -2025-08-29 14:59:26,437 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 15:05:34,286 - uvicorn.error - INFO - Shutting down -2025-08-29 15:05:34,394 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 15:05:34,397 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 15:05:34,399 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 15:05:34,401 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 15:05:34,401 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 15:05:34,402 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 15:05:34,404 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 15:05:34,405 - uvicorn.error - INFO - Finished server process [1473514] -2025-08-29 15:05:39,163 - uvicorn.error - INFO - Started server process [1475921] -2025-08-29 15:05:39,164 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 15:05:39,165 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 15:05:39,166 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 15:05:39,166 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 15:05:39,167 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 15:05:39,167 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 15:05:39,167 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 15:05:39,168 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 15:05:39,168 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 15:05:42,354 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:05:46,454 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:05:46,456 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:05:46,458 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:05:46,460 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 15:05:46,462 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:05:48,272 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:05:48,273 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:05:48,274 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:05:48,274 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 15:05:48,274 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 15:05:48,327 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:05:48,328 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 15:05:51,174 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:05:51,175 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:05:51,176 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 15:05:51,176 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:05:51,177 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:05:51,177 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:05:51,178 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 15:05:51,178 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 15:05:51,186 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 15:05:52,996 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 15:05:54,353 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 15:05:54,355 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 15:05:54,369 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 15:05:54,371 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 15:05:54,372 - app.models.rembg_model - INFO - rembg 세션 생성 (GPU 전용): birefnet-general-lite with TensorRT→CUDA -2025-08-29 15:05:54,372 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 15:05:54,373 - app.models.rembg_model - INFO - rembg providers 전달: ['TensorrtExecutionProvider', 'CUDAExecutionProvider'] -2025-08-29 15:06:07,558 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' CPU 모드로 동작 (실제 providers: ['CPUExecutionProvider']) -2025-08-29 15:06:07,559 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 15:06:07,560 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 15:06:07,560 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 15:06:07,560 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 15:06:07,561 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 15:06:07,561 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 15:06:07,562 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 15:06:07,562 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 15:06:07,563 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 15:06:07,563 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 15:06:07,565 - uvicorn.error - INFO - Application startup complete. -2025-08-29 15:06:07,567 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 15:07:26,429 - uvicorn.error - INFO - Shutting down -2025-08-29 15:07:26,534 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 15:07:26,536 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 15:07:26,538 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 15:07:26,539 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 15:07:26,540 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 15:07:26,541 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 15:07:26,542 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 15:07:26,543 - uvicorn.error - INFO - Finished server process [1475921] -2025-08-29 15:07:31,314 - uvicorn.error - INFO - Started server process [1476786] -2025-08-29 15:07:31,315 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 15:07:31,316 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 15:07:31,316 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 15:07:31,316 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 15:07:31,317 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 15:07:31,317 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 15:07:31,317 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 15:07:31,318 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 15:07:31,318 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 15:07:34,524 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:07:38,619 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:07:38,620 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:07:38,621 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:07:38,622 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 15:07:38,624 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:07:40,250 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:07:40,251 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:07:40,252 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:07:40,252 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 15:07:40,252 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 15:07:40,306 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:07:40,307 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 15:07:43,450 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:07:43,451 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:07:43,451 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 15:07:43,452 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:07:43,452 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:07:43,453 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:07:43,453 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 15:07:43,453 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 15:07:43,462 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 15:07:45,290 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 15:07:46,721 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 15:07:46,721 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 15:07:46,734 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 15:07:46,738 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 15:07:46,739 - app.models.rembg_model - INFO - rembg 세션 생성 (GPU): birefnet-general-lite with TensorRT→CUDA -2025-08-29 15:07:46,739 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 15:07:46,740 - app.models.rembg_model - INFO - rembg에 전달할 providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider'] -2025-08-29 15:09:20,879 - uvicorn.error - INFO - Started server process [1477809] -2025-08-29 15:09:20,880 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 15:09:20,881 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 15:09:20,881 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 15:09:20,881 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 15:09:20,882 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 15:09:20,882 - main - INFO - 🚀 GPU 관리자 없이 세션 풀 초기화 -2025-08-29 15:09:20,883 - main - INFO - ✅ 세션 풀 GPU 관리자 설정 완료 (비활성화) -2025-08-29 15:09:20,883 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 15:09:20,883 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 15:09:24,201 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:09:29,504 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:09:29,505 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:09:29,506 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:09:29,507 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 15:09:29,507 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:09:32,289 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:09:32,290 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:09:32,290 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:09:32,290 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 15:09:32,291 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 15:09:32,349 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:09:32,350 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 15:09:35,743 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:09:35,744 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:09:35,745 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 15:09:35,745 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:09:35,746 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:09:35,747 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:09:35,747 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 15:09:35,748 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 15:09:35,757 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 15:09:37,916 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 15:09:39,592 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 15:09:39,593 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 15:09:39,610 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 15:09:39,612 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 15:09:39,613 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 15:09:39,614 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 15:22:00,207 - uvicorn.error - INFO - Started server process [1482031] -2025-08-29 15:22:00,208 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 15:22:00,209 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 15:22:00,210 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 15:22:00,210 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 15:22:00,210 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 15:22:00,211 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 15:22:00,211 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 15:22:00,212 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 15:22:03,640 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:22:11,802 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:22:11,803 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:22:11,804 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:22:11,804 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 15:22:11,804 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 15:22:15,798 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 15:22:15,799 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 15:22:15,799 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 15:22:15,800 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 15:22:15,800 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 15:22:15,864 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:22:15,865 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 15:22:20,118 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:22:20,119 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:22:20,120 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 15:22:20,121 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 15:22:20,122 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 15:22:20,123 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 15:22:20,123 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 15:22:20,124 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 15:22:20,139 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 15:22:22,228 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 15:22:24,717 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 15:22:24,718 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 15:22:24,738 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 15:22:24,740 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 15:22:24,741 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 15:22:24,741 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 16:04:15,013 - uvicorn.error - INFO - Started server process [1494794] -2025-08-29 16:04:15,014 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 16:04:15,015 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:04:15,016 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:04:15,016 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:04:15,016 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:04:15,017 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:04:15,017 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:04:15,018 - app.core.session_pool - INFO - Initializing 2 sessions for simple_lama -2025-08-29 16:04:19,096 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:04:25,300 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:04:25,301 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:04:25,301 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:04:25,301 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 16:04:25,302 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:04:28,236 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:04:28,237 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:04:28,237 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:04:28,238 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 16:04:28,238 - app.core.session_pool - INFO - Initializing 2 sessions for migan -2025-08-29 16:04:28,316 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:04:28,317 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 16:04:32,521 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:04:32,522 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:04:32,523 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 16:04:32,525 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:04:32,525 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:04:32,526 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:04:32,527 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 16:04:32,528 - app.core.session_pool - INFO - Initializing 1 sessions for rembg -2025-08-29 16:04:32,542 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:04:34,856 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 16:04:36,636 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 16:04:36,638 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 16:04:36,655 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 16:04:36,660 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 16:04:36,661 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 16:04:36,661 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 16:06:32,218 - uvicorn.error - INFO - Started server process [1495779] -2025-08-29 16:06:32,220 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 16:06:32,221 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:06:32,222 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:06:32,222 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:06:32,223 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:06:32,223 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:06:32,224 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:06:32,224 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 16:06:35,915 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:06:44,050 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:06:44,052 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:06:44,052 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:06:44,052 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 16:06:44,053 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:06:47,176 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:06:47,177 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:06:47,178 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:06:47,178 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 16:06:47,178 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:06:50,685 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:06:50,686 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:06:50,686 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:06:50,687 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 16:06:50,687 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:06:54,580 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 16:06:54,581 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:06:54,581 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:06:54,581 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 16:06:54,582 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 16:06:54,660 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:06:54,661 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 16:06:59,066 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:06:59,067 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:06:59,068 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 16:06:59,069 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:06:59,070 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:06:59,070 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:06:59,071 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 16:06:59,072 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:06:59,073 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:06:59,073 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:06:59,075 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 16:06:59,075 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:06:59,076 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:06:59,077 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:06:59,077 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 16:06:59,078 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 16:06:59,081 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:07:01,810 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 16:07:03,945 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 16:07:03,946 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 16:07:03,998 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 16:07:04,000 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 16:07:04,000 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 16:07:04,001 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 16:35:38,848 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:35:38,849 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:35:38,849 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:35:38,850 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:35:38,850 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:35:38,850 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:35:38,851 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 16:35:38,857 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:35:38,858 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:35:38,860 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:35:38,861 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:35:38,861 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 16:35:38,968 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:35:38,969 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 16:35:43,503 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:35:43,504 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:35:43,505 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 16:35:43,506 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:35:43,506 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:35:43,506 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:35:43,507 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 16:35:43,507 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:35:43,508 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:35:43,508 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:35:43,509 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 16:35:43,509 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:35:43,510 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:35:43,510 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:35:43,510 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 16:35:43,511 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 16:35:43,513 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:35:43,513 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,514 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,514 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,514 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,515 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:35:43,515 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,516 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,516 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,516 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,517 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:35:43,517 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,518 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,518 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,518 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:35:43,519 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 16:35:43,519 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 16:35:43,519 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 16:35:43,520 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 16:35:43,520 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 16:35:43,521 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 16:35:43,521 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 16:36:15,156 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 16:36:15,157 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 16:36:15,157 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 16:36:15,158 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 16:36:15,158 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 16:36:15,159 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 16:36:15,159 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 16:36:15,160 - app.core.worker_manager - INFO - Worker manager started with 2 workers -2025-08-29 16:36:15,160 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 16:36:15,161 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 16:36:15,162 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 16:36:18,223 - app.core.worker_manager - INFO - Scaled down to 2 workers (VRAM: 0.77) -2025-08-29 16:36:18,227 - uvicorn.error - INFO - Application startup complete. -2025-08-29 16:36:18,238 - uvicorn.error - ERROR - [Errno 98] error while attempting to bind on address ('0.0.0.0', 8008): address already in use -2025-08-29 16:36:18,239 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 16:36:18,241 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 16:36:18,242 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 16:36:18,244 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 16:36:18,245 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 16:36:18,245 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 16:36:18,247 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 16:47:02,694 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 16:47:02,696 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 16:47:02,696 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 16:47:02,697 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 16:47:02,697 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 16:47:25,732 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:47:25,732 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:47:25,733 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:47:25,733 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:47:25,734 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:47:25,734 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:47:25,734 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 16:47:25,736 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:47:25,737 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:47:25,738 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:47:25,739 - app.core.session_pool - ERROR - Failed to create session for simple_lama: No module named 'torch' -2025-08-29 16:47:25,739 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 16:47:25,819 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:47:25,820 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 16:47:29,235 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:47:29,236 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:47:29,237 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 16:47:29,237 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:47:29,238 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:47:29,238 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:47:29,238 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 16:47:29,239 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:47:29,239 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:47:29,240 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:47:29,240 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 16:47:29,241 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:47:29,241 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:47:29,241 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:47:29,242 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 16:47:29,242 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 16:47:29,244 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:47:29,245 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,245 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,245 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,246 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,246 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:47:29,247 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,247 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,247 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,248 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,248 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:47:29,248 - app.models.rembg_model - ERROR - rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,249 - app.models.rembg_model - ERROR - Failed to load REMBG model: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,249 - app.core.session_pool - ERROR - REMBG 모델 로드 실패: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,249 - app.core.session_pool - ERROR - Failed to create session for rembg: REMBG 사용 불가: rembg 모듈이 설치되지 않음: No module named 'rembg' -2025-08-29 16:47:29,250 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 16:47:29,250 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 16:47:29,250 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 16:47:29,251 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 16:47:29,251 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 16:47:29,252 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 16:47:29,252 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 16:50:50,963 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 16:50:50,964 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 16:50:50,965 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 16:50:50,965 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 16:50:50,966 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 16:56:36,377 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:56:36,377 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:56:36,378 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:56:36,378 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:56:36,378 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:56:36,379 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:56:36,379 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 16:56:39,262 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:56:39,263 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 16:56:39,264 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 16:56:39,264 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:56:39,265 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:56:39,265 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 16:56:39,265 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:56:39,266 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 16:56:39,266 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 16:56:39,267 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:56:39,267 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:56:39,267 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 16:56:39,268 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:56:39,268 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 16:56:39,268 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 16:56:39,269 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:56:39,269 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:56:39,269 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 16:56:39,270 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 16:56:39,270 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 16:56:39,270 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 16:56:39,271 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 16:56:39,271 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 16:56:39,271 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 16:56:39,272 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 16:56:39,345 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:56:39,345 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 16:56:42,784 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:56:42,785 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:56:42,785 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 16:56:42,786 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:56:42,786 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:56:42,786 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:56:42,787 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 16:56:42,787 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:56:42,788 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:56:42,788 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:56:42,788 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 16:56:42,789 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 16:56:42,789 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 16:56:42,790 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 16:56:42,790 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 16:56:42,790 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 16:56:42,792 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 16:58:31,873 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 16:58:33,486 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 16:58:33,487 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 16:58:33,511 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 16:58:33,513 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 16:58:33,513 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 16:58:33,514 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 16:59:57,843 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 16:59:57,844 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 16:59:57,844 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 16:59:57,845 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 16:59:57,845 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 16:59:57,845 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 16:59:57,846 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 17:00:00,617 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:00:00,618 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 17:00:00,618 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 17:00:00,619 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:00:00,619 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:00:00,619 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 17:00:00,620 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:00:00,620 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 17:00:00,621 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 17:00:00,621 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:00:00,621 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:00:00,622 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 17:00:00,622 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:00:00,622 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 17:00:00,623 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 17:00:00,623 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:00:00,623 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:00:00,624 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 17:00:00,624 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:00:00,625 - app.models.simple_lama - WARNING - SimpleLama 라이브러리 import 실패: No module named 'simple_lama_inpainting' -2025-08-29 17:00:00,625 - app.models.simple_lama - INFO - fallback 모드로 전환합니다... -2025-08-29 17:00:00,625 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:00:00,625 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:00:00,626 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 17:00:00,626 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 17:00:00,690 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:00:00,691 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 17:00:04,435 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:00:04,437 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:00:04,437 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 17:00:04,438 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:00:04,439 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:00:04,440 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:00:04,440 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 17:00:04,441 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:00:04,442 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:00:04,443 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:00:04,443 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 17:00:04,444 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:00:04,445 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:00:04,445 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:00:04,446 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 17:00:04,446 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 17:00:04,449 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 17:00:06,306 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 17:00:07,872 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 17:00:07,873 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 17:00:07,899 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 17:00:07,901 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 17:00:07,901 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 17:00:07,902 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 17:03:54,078 - uvicorn.error - INFO - Started server process [1517885] -2025-08-29 17:03:54,079 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 17:03:54,080 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 17:03:54,081 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 17:03:54,081 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 17:03:54,081 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 17:03:54,082 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 17:03:54,082 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 17:03:54,082 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 17:03:57,670 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:04:05,096 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:04:05,096 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:04:05,097 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:04:05,097 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 17:04:05,097 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:04:08,862 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:04:08,863 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:04:08,863 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:04:08,864 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 17:04:08,864 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:04:12,718 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:04:12,718 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:04:12,719 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:04:12,719 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 17:04:12,719 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:04:16,523 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:04:16,524 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:04:16,524 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:04:16,524 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 17:04:16,525 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 17:04:16,595 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:04:16,596 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 17:04:20,922 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:04:20,923 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:04:20,924 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 17:04:20,925 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:04:20,926 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:04:20,926 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:04:20,927 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 17:04:20,927 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:04:20,928 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:04:20,929 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:04:20,929 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 17:04:20,930 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:04:20,931 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:04:20,931 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:04:20,932 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 17:04:20,932 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 17:04:20,935 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 17:04:23,481 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 17:04:25,364 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 17:04:25,365 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 17:04:25,394 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 17:04:25,398 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 17:04:25,399 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 17:04:25,399 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 17:27:04,832 - uvicorn.error - INFO - Started server process [1520518] -2025-08-29 17:27:04,833 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 17:27:04,834 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 17:27:04,834 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 17:27:04,834 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 17:27:04,835 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 17:27:04,835 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 17:27:04,835 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 17:27:04,836 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 17:27:08,094 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:27:17,168 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:27:17,172 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:27:17,172 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:27:17,173 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 17:27:17,173 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:27:22,089 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:27:22,089 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:27:22,090 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:27:22,090 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 17:27:22,090 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:27:27,038 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:27:27,039 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:27:27,039 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:27:27,039 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 17:27:27,040 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:27:31,922 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:27:31,922 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:27:31,923 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:27:31,923 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 17:27:31,924 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 17:27:32,005 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:27:32,006 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 17:27:37,066 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:27:37,067 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:27:37,068 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 17:27:37,069 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:27:37,070 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:27:37,070 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:27:37,071 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 17:27:37,072 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:27:37,073 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:27:37,074 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:27:37,074 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 17:27:37,075 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:27:37,076 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:27:37,076 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:27:37,077 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 17:27:37,078 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 17:27:37,081 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 17:27:39,277 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 17:27:41,645 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 17:27:41,646 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 17:27:41,706 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 17:27:41,707 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 17:27:41,708 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 17:27:41,708 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 17:29:05,094 - uvicorn.error - INFO - Started server process [1521103] -2025-08-29 17:29:05,095 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 17:29:05,096 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 17:29:05,096 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 17:29:05,096 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 17:29:05,097 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 17:29:05,097 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 17:29:05,097 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 17:29:05,098 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 17:29:08,681 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:29:19,836 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:29:19,837 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:29:19,837 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:29:19,838 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 17:29:19,838 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:29:26,143 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:29:26,145 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:29:26,145 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:29:26,146 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 17:29:26,146 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:29:32,189 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:29:32,190 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:29:32,190 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:29:32,191 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 17:29:32,191 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:29:38,243 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:29:38,244 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:29:38,244 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:29:38,244 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 17:29:38,245 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 17:29:38,346 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:29:38,346 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 17:29:44,426 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:29:44,428 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:29:44,429 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 17:29:44,429 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:29:44,430 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:29:44,431 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:29:44,431 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 17:29:44,432 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:29:44,433 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:29:44,434 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:29:44,434 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 17:29:44,435 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:29:44,436 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:29:44,436 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:29:44,437 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 17:29:44,437 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 17:29:44,440 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 17:29:47,220 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 17:29:49,845 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 17:29:49,846 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 17:29:49,917 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 17:29:49,919 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 17:29:49,919 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 17:29:49,919 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 17:38:08,128 - uvicorn.error - INFO - Started server process [1522513] -2025-08-29 17:38:08,129 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 17:38:08,130 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 17:38:08,130 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 17:38:08,130 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 17:38:08,131 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 17:38:08,131 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 17:38:08,131 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 17:38:08,132 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 17:38:11,776 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:38:17,049 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:38:17,049 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:38:17,050 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:38:17,050 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 17:38:17,050 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:38:18,832 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:38:18,832 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:38:18,833 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:38:18,833 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 17:38:18,833 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:38:20,615 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:38:20,616 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:38:20,616 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:38:20,616 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 17:38:20,617 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 17:38:22,363 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 17:38:22,363 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 17:38:22,364 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 17:38:22,364 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 17:38:22,364 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 17:38:22,430 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:38:22,431 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 17:38:25,342 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:38:25,343 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:38:25,343 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 17:38:25,344 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:38:25,344 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:38:25,344 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:38:25,345 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 17:38:25,345 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:38:25,345 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:38:25,346 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:38:25,346 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 17:38:25,347 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 17:38:25,347 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 17:38:25,347 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 17:38:25,347 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 17:38:25,348 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 17:38:25,352 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 17:38:27,616 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 17:38:29,048 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 17:38:29,049 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 17:38:29,064 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 17:38:29,065 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 17:38:29,066 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 17:38:29,066 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 18:01:55,516 - uvicorn.error - INFO - Started server process [1525502] -2025-08-29 18:01:55,517 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 18:01:55,518 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 18:01:55,518 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 18:01:55,518 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 18:01:55,519 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 18:01:55,519 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 18:01:55,519 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 18:01:55,520 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 18:01:58,788 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:02:05,439 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:02:05,440 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:02:05,440 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:02:05,440 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 18:02:05,441 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:02:09,306 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:02:09,306 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:02:09,306 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:02:09,307 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 18:02:09,307 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:02:12,250 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:02:12,250 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:02:12,251 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:02:12,251 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 18:02:12,252 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:02:14,902 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:02:14,903 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:02:14,903 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:02:14,904 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 18:02:14,904 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 18:02:14,972 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:02:14,973 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 18:02:18,208 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:02:18,208 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:02:18,209 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 18:02:18,209 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:02:18,210 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:02:18,210 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:02:18,211 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 18:02:18,211 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:02:18,211 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:02:18,212 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:02:18,212 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 18:02:18,213 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:02:18,213 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:02:18,213 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:02:18,214 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 18:02:18,214 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 18:02:18,216 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:02:20,356 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 18:02:21,946 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 18:02:21,946 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 18:02:21,972 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:02:21,974 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:02:21,975 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:02:21,975 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 18:25:05,265 - uvicorn.error - INFO - Started server process [5428] -2025-08-29 18:25:05,267 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 18:25:05,268 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 18:25:05,269 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 18:25:05,269 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 18:25:05,270 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 18:25:05,270 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 18:25:05,270 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 18:25:05,271 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 18:25:09,030 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:25:15,733 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:25:15,733 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:25:15,734 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:25:15,734 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 18:25:15,734 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:25:18,790 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:25:18,791 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:25:18,791 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:25:18,792 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 18:25:18,792 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:25:21,661 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:25:21,662 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:25:21,662 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:25:21,662 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 18:25:21,663 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:25:24,495 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:25:24,496 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:25:24,496 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:25:24,496 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 18:25:24,497 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 18:25:24,564 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:25:24,564 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 18:25:28,121 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:25:28,122 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:25:28,123 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 18:25:28,123 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:25:28,124 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:25:28,125 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:25:28,125 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 18:25:28,126 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:25:28,127 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:25:28,127 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:25:28,128 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 18:25:28,129 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:25:28,129 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:25:28,130 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:25:28,131 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 18:25:28,131 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 18:25:28,134 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:25:30,328 - app.models.rembg_model - INFO - rembg CUDA provider 테스트 시작 -2025-08-29 18:25:32,135 - app.models.rembg_model - INFO - rembg 세션 생성 성공, 사용된 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 18:25:32,136 - app.models.rembg_model - INFO - ✅ rembg CUDA 가속 활성화됨 -2025-08-29 18:25:32,171 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:25:32,172 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:25:32,173 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:25:32,173 - app.models.rembg_model - INFO - rembg 모델 자동 다운로드: birefnet-general-lite -2025-08-29 18:32:30,039 - uvicorn.error - INFO - Started server process [7151] -2025-08-29 18:32:30,040 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 18:32:30,041 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 18:32:30,042 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 18:32:30,042 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 18:32:30,042 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 18:32:30,043 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 18:32:30,043 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 18:32:30,044 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 18:32:33,550 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:32:40,396 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:32:40,396 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:32:40,397 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:32:40,397 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 18:32:40,398 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:32:44,271 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:32:44,271 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:32:44,272 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:32:44,272 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 18:32:44,272 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:32:48,130 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:32:48,130 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:32:48,131 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:32:48,131 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 18:32:48,131 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:32:51,964 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:32:51,965 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:32:51,965 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:32:51,965 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 18:32:51,966 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 18:32:52,031 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:32:52,032 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 18:32:55,995 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:32:55,997 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:32:55,997 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 18:32:55,998 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:32:55,999 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:32:56,000 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:32:56,000 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 18:32:56,001 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:32:56,002 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:32:56,002 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:32:56,003 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 18:32:56,004 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:32:56,004 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:32:56,005 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:32:56,006 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 18:32:56,006 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 18:32:56,021 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:32:58,209 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 18:32:58,209 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:32:58,210 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:32:58,210 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:32:58,211 - app.models.rembg_model - INFO - rembg 캐시된 모델 사용: /home/ckh08045/.u2net/birefnet-general-lite.onnx -2025-08-29 18:41:12,177 - uvicorn.error - INFO - Started server process [8904] -2025-08-29 18:41:12,178 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 18:41:12,179 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 18:41:12,179 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 18:41:12,180 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 18:41:12,180 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 18:41:12,180 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 18:41:12,181 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 18:41:12,181 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 18:41:15,643 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:41:22,939 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:41:22,940 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:41:22,940 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:41:22,941 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 18:41:22,941 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:41:27,065 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:41:27,066 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:41:27,066 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:41:27,066 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 18:41:27,067 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:41:31,285 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:41:31,285 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:41:31,285 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:41:31,286 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 18:41:31,286 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:41:35,377 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:41:35,378 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:41:35,378 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:41:35,378 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 18:41:35,379 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 18:41:35,440 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:41:35,441 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 18:41:39,706 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:41:39,706 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:41:39,707 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 18:41:39,707 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:41:39,708 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:41:39,709 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:41:39,709 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 18:41:39,710 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:41:39,711 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:41:39,711 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:41:39,711 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 18:41:39,712 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:41:39,712 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:41:39,713 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:41:39,713 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 18:41:39,714 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 18:41:39,726 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:41:41,863 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 18:41:41,863 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:41:41,864 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:41:41,864 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:41:41,865 - app.models.rembg_model - INFO - rembg 캐시된 모델 감지: /home/ckh08045/.u2net/birefnet-general-lite.onnx (213.6MB) -2025-08-29 18:41:41,866 - app.models.rembg_model - INFO - rembg.new_session 시작: model='/home/ckh08045/.u2net/birefnet-general-lite.onnx', rembg_ver=2.0.61, onnxruntime_ver=1.17.0 -2025-08-29 18:41:41,866 - app.models.rembg_model - INFO - onnxruntime 사용가능 providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 18:42:01,827 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 18:42:01,829 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 18:42:01,829 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 18:42:01,830 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 18:42:01,831 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:42:01,831 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 18:42:01,832 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:42:01,833 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:42:01,834 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:42:01,834 - app.models.rembg_model - INFO - rembg 캐시된 모델 사용: /home/ckh08045/.u2net/birefnet-general-lite.onnx -2025-08-29 18:48:22,268 - uvicorn.error - INFO - Started server process [10432] -2025-08-29 18:48:22,269 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 18:48:22,270 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 18:48:22,271 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 18:48:22,271 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 18:48:22,271 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 18:48:22,272 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 18:48:22,272 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 18:48:22,272 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 18:48:25,562 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:48:30,885 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:48:30,887 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:48:30,888 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:48:30,888 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 18:48:30,889 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:48:33,712 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:48:33,713 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:48:33,713 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:48:33,714 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 18:48:33,714 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:48:36,512 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:48:36,513 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:48:36,513 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:48:36,514 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 18:48:36,514 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 18:48:39,296 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 18:48:39,297 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 18:48:39,297 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 18:48:39,298 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 18:48:39,298 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 18:48:39,353 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:48:39,354 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 18:48:42,688 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:48:42,689 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:48:42,690 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 18:48:42,691 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:48:42,691 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:48:42,692 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:48:42,692 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 18:48:42,693 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:48:42,694 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:48:42,695 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:48:42,695 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 18:48:42,696 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 18:48:42,696 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 18:48:42,697 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 18:48:42,698 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 18:48:42,698 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 18:48:42,713 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 18:48:44,777 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 18:48:44,778 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 18:48:44,778 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 18:48:44,778 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 18:48:44,779 - app.models.rembg_model - INFO - rembg 캐시된 모델 감지: /home/ckh08045/.u2net/birefnet-general-lite.onnx (213.6MB) -2025-08-29 18:48:44,779 - app.models.rembg_model - INFO - U2NET_HOME 설정: /home/ckh08045/.u2net -2025-08-29 18:48:44,780 - app.models.rembg_model - INFO - MODEL_CHECKSUM_DISABLED=1 설정 (캐시된 모델 사용) -2025-08-29 18:48:44,781 - app.models.rembg_model - INFO - rembg.new_session 시작: model='birefnet-general-lite', rembg_ver=2.0.61, onnxruntime_ver=1.17.0 -2025-08-29 18:48:44,782 - app.models.rembg_model - INFO - onnxruntime 사용가능 providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 19:59:26,388 - uvicorn.error - INFO - Started server process [18404] -2025-08-29 19:59:26,389 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 19:59:26,390 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 19:59:26,391 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 19:59:26,391 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 19:59:26,391 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 19:59:26,392 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 19:59:26,392 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 19:59:26,392 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 19:59:29,648 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 19:59:35,188 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 19:59:35,189 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 19:59:35,190 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 19:59:35,191 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 19:59:35,192 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 19:59:38,051 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 19:59:38,052 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 19:59:38,052 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 19:59:38,052 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 19:59:38,053 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 19:59:40,897 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 19:59:40,898 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 19:59:40,898 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 19:59:40,898 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 19:59:40,899 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 19:59:43,735 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 19:59:43,736 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 19:59:43,736 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 19:59:43,736 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 19:59:43,737 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 19:59:43,792 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 19:59:43,793 - app.models.migan - INFO - MIGAN 기존 방식 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], use_cuda=True -2025-08-29 19:59:47,177 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 19:59:47,178 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 19:59:47,179 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 19:59:47,179 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 19:59:47,180 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 19:59:47,181 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 19:59:47,181 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 19:59:47,182 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 19:59:47,183 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 19:59:47,183 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 19:59:47,184 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 19:59:47,184 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 19:59:47,185 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 19:59:47,186 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 19:59:47,186 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 19:59:47,187 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 19:59:47,202 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 19:59:49,299 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 19:59:49,300 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 19:59:49,300 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 19:59:49,301 - app.models.rembg_model - INFO - rembg 자동 GPU 감지 모드: birefnet-general-lite -2025-08-29 19:59:49,301 - app.models.rembg_model - INFO - rembg 캐시된 모델 감지: /home/ckh08045/.u2net/birefnet-general-lite.onnx (213.6MB) -2025-08-29 19:59:49,302 - app.models.rembg_model - INFO - U2NET_HOME 설정: /home/ckh08045/.u2net -2025-08-29 19:59:49,302 - app.models.rembg_model - INFO - MODEL_CHECKSUM_DISABLED=1 설정 (캐시된 모델 사용) -2025-08-29 19:59:49,303 - app.models.rembg_model - INFO - rembg.new_session 시작: model='birefnet-general-lite', rembg_ver=2.0.61, onnxruntime_ver=1.17.0 -2025-08-29 19:59:49,304 - app.models.rembg_model - INFO - onnxruntime 사용가능 providers: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 20:40:32,750 - uvicorn.error - INFO - Started server process [23597] -2025-08-29 20:40:32,750 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 20:40:32,751 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 20:40:32,752 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 20:40:32,752 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 20:40:32,753 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 20:40:32,753 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 20:40:32,753 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 20:40:32,754 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 20:40:35,935 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 20:40:40,421 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 20:40:40,423 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 20:40:40,423 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 20:40:40,424 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 20:40:40,425 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 20:40:42,169 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 20:40:42,170 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 20:40:42,170 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 20:40:42,171 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 20:40:42,171 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 20:40:43,838 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 20:40:43,839 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 20:40:43,839 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 20:40:43,840 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 20:40:43,840 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 20:40:45,508 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 20:40:45,509 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 20:40:45,509 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 20:40:45,509 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 20:40:45,510 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 20:40:45,575 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 20:40:45,576 - app.models.migan - ERROR - Failed to load MIGAN model: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,576 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,577 - app.core.session_pool - ERROR - Failed to create session for migan: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,577 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 20:40:45,577 - app.models.migan - ERROR - Failed to load MIGAN model: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,578 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,578 - app.core.session_pool - ERROR - Failed to create session for migan: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,578 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 20:40:45,579 - app.models.migan - ERROR - Failed to load MIGAN model: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,579 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,579 - app.core.session_pool - ERROR - Failed to create session for migan: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,580 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 20:40:45,580 - app.models.migan - ERROR - Failed to load MIGAN model: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,580 - app.core.session_pool - ERROR - MIGAN 모델 로드 실패: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,581 - app.core.session_pool - ERROR - Failed to create session for migan: 'MiganInpainter' object has no attribute '_session' -2025-08-29 20:40:45,581 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 20:40:45,589 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 20:40:47,616 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 20:40:47,616 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 20:40:47,617 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 20:40:47,617 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 20:41:02,867 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 20:41:02,868 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 20:41:02,868 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 20:41:02,868 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 20:41:02,869 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 20:41:02,869 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 20:41:02,869 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 20:41:02,870 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 20:41:02,870 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 20:41:16,213 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 20:41:16,214 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 20:41:16,215 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 20:41:16,215 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 20:41:16,215 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 20:41:16,216 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 20:41:16,216 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 20:41:16,217 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 20:41:16,217 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 20:41:28,807 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 20:41:28,807 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 20:41:28,808 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 20:41:28,808 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 20:41:28,808 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 20:41:28,809 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 20:41:28,809 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 20:41:28,810 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 20:41:28,810 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 20:41:28,810 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 20:41:28,811 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 20:41:28,813 - uvicorn.error - INFO - Application startup complete. -2025-08-29 20:41:28,814 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:03:42,424 - uvicorn.error - INFO - Shutting down -2025-08-29 21:03:42,526 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 21:03:42,529 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 21:03:42,530 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 21:03:42,532 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 21:03:42,532 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 21:03:42,533 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 21:03:42,534 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 21:03:42,536 - uvicorn.error - INFO - Finished server process [23597] -2025-08-29 21:05:30,443 - uvicorn.error - INFO - Started server process [28873] -2025-08-29 21:05:30,444 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:05:30,445 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:05:30,445 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:05:30,445 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:05:30,446 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:05:30,446 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:05:30,446 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:05:30,447 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:05:33,848 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:05:38,377 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:05:38,378 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:05:38,379 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:05:38,380 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:05:38,382 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:05:40,031 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:05:40,031 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:05:40,032 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:05:40,032 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:05:40,033 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:05:41,685 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:05:41,686 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:05:41,686 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:05:41,686 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:05:41,687 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:05:43,324 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:05:43,325 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:05:43,325 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:05:43,326 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:05:43,326 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:05:43,328 - app.core.session_pool - ERROR - Failed to create session for migan: unexpected unindent (migan.py, line 90) -2025-08-29 21:05:43,329 - app.core.session_pool - ERROR - Failed to create session for migan: unexpected unindent (migan.py, line 90) -2025-08-29 21:05:43,331 - app.core.session_pool - ERROR - Failed to create session for migan: unexpected unindent (migan.py, line 90) -2025-08-29 21:05:43,332 - app.core.session_pool - ERROR - Failed to create session for migan: unexpected unindent (migan.py, line 90) -2025-08-29 21:05:43,332 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:05:43,404 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:05:45,470 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:05:45,470 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:05:45,471 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:05:45,471 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:06:00,931 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:06:00,932 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:06:00,933 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:06:00,933 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:06:00,934 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:06:00,934 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:06:00,934 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:06:00,935 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:06:00,935 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:06:14,023 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:06:14,024 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:06:14,024 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:06:14,025 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:06:14,025 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:06:14,025 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:06:14,026 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:06:14,026 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:06:14,027 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:06:26,328 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:06:26,329 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:06:26,330 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:06:26,330 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:06:26,330 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:06:26,331 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:06:26,331 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:06:26,332 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:06:26,332 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:06:26,333 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:06:26,333 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:06:26,335 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:06:26,337 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:06:31,066 - uvicorn.error - INFO - Shutting down -2025-08-29 21:06:31,170 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 21:06:31,171 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 21:06:31,172 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 21:06:31,174 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 21:06:31,174 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 21:06:31,175 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 21:06:31,175 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 21:06:31,176 - uvicorn.error - INFO - Finished server process [28873] -2025-08-29 21:08:23,508 - uvicorn.error - INFO - Started server process [29745] -2025-08-29 21:08:23,509 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:08:23,510 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:08:23,511 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:08:23,511 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:08:23,511 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:08:23,512 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:08:23,512 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:08:23,512 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:08:26,667 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:08:31,126 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:08:31,127 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:08:31,128 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:08:31,129 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:08:31,130 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:08:32,818 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:08:32,819 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:08:32,819 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:08:32,820 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:08:32,820 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:08:34,448 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:08:34,449 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:08:34,450 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:08:34,450 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:08:34,451 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:08:36,067 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:08:36,068 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:08:36,068 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:08:36,069 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:08:36,069 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:08:36,144 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:08:36,145 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:08:36,145 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:38,941 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:38,942 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:08:38,943 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:08:38,943 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 21:08:38,944 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:08:38,944 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:08:38,944 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:40,193 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:40,194 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:08:40,195 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:08:40,195 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 21:08:40,196 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:08:40,196 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:08:40,197 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:41,444 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:41,445 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:08:41,446 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:08:41,446 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 21:08:41,447 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:08:41,447 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:08:41,447 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:42,686 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:42,687 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:08:42,688 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:08:42,688 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 21:08:42,689 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:08:42,691 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:08:44,724 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:08:44,725 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:08:44,725 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:08:44,726 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:08:57,711 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:08:57,712 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:08:57,712 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:08:57,713 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:08:57,713 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:08:57,714 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:08:57,714 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:08:57,715 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:08:57,715 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:09:10,137 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:09:10,138 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:09:10,138 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:09:10,139 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:09:10,139 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:09:10,140 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:09:10,140 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:09:10,141 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:09:10,141 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:09:22,325 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:09:22,326 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:09:22,327 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:09:22,327 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:09:22,328 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:09:22,328 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:09:22,328 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:09:22,329 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:09:22,329 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:09:22,330 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:09:22,330 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:09:22,332 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:09:22,334 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:26:29,586 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:26:33,253 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:26:37,240 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:26:40,696 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:26:45,203 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:26:53,243 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:27:02,450 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:27:09,781 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:27:14,301 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:27:18,528 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: 'ModelSession' object has no attribute 'inpaint' -2025-08-29 21:28:56,827 - uvicorn.error - INFO - Shutting down -2025-08-29 21:28:56,933 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 21:28:56,936 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 21:28:56,937 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 21:28:56,938 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 21:28:56,939 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 21:28:56,940 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 21:28:56,941 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 21:28:56,942 - uvicorn.error - INFO - Finished server process [29745] -2025-08-29 21:29:46,736 - uvicorn.error - INFO - Started server process [34283] -2025-08-29 21:29:46,737 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:29:46,738 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:29:46,738 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:29:46,739 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:29:46,739 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:29:46,739 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:29:46,740 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:29:46,740 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:29:49,948 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:29:54,542 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:29:54,543 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:29:54,544 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:29:54,544 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:29:54,545 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:29:56,231 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:29:56,232 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:29:56,232 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:29:56,232 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:29:56,233 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:29:57,793 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:29:57,794 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:29:57,794 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:29:57,795 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:29:57,795 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:29:59,490 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:29:59,490 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:29:59,491 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:29:59,491 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:29:59,491 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:29:59,565 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:29:59,566 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:29:59,567 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:02,686 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:02,687 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:30:02,687 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:30:02,688 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 21:30:02,688 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:30:02,689 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:30:02,689 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:03,982 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:03,983 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:30:03,983 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:30:03,984 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 21:30:03,984 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:30:03,985 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:30:03,985 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:05,267 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:05,268 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:30:05,269 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:30:05,269 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 21:30:05,270 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:30:05,270 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:30:05,270 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:06,565 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:06,566 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:30:06,567 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:30:06,567 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 21:30:06,568 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:30:06,570 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:30:08,623 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:30:08,624 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:30:08,629 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:30:08,630 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:22,181 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:30:22,182 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:30:22,183 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:30:22,183 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:30:22,184 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:30:22,184 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:30:22,184 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:30:22,185 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:30:22,185 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:34,872 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:30:34,873 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:30:34,874 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:30:34,874 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:30:34,874 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:30:34,875 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:30:34,875 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:30:34,876 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:30:34,876 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:30:47,339 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:30:47,340 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:30:47,341 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:30:47,341 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:30:47,342 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:30:47,342 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:30:47,342 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:30:47,343 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:30:47,344 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:30:47,344 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:30:47,344 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:30:50,456 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:30:50,467 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:30:59,725 - uvicorn.error - INFO - Shutting down -2025-08-29 21:30:59,828 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 21:30:59,830 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 21:30:59,830 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 21:30:59,832 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 21:30:59,833 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 21:30:59,833 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 21:30:59,834 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 21:30:59,835 - uvicorn.error - INFO - Finished server process [34283] -2025-08-29 21:32:06,424 - uvicorn.error - INFO - Started server process [35210] -2025-08-29 21:32:06,424 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:32:06,425 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:32:06,426 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:32:06,426 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:32:06,426 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:32:06,427 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:32:06,427 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:32:06,427 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:32:09,609 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:32:13,763 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:32:13,764 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:32:13,765 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:32:13,766 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:32:13,766 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:32:15,606 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:32:15,606 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:32:15,607 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:32:15,607 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:32:15,608 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:32:17,289 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:32:17,290 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:32:17,290 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:32:17,291 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:32:17,291 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:32:18,958 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:32:18,959 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:32:18,959 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:32:18,960 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:32:18,960 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:32:19,025 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:32:19,026 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:32:19,026 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:21,873 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:21,874 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:32:21,874 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:32:21,874 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 21:32:21,875 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:32:21,875 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:32:21,876 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:23,134 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:23,135 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:32:23,135 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:32:23,136 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 21:32:23,136 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:32:23,137 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:32:23,137 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:24,367 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:24,368 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:32:24,368 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:32:24,369 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 21:32:24,369 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:32:24,370 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:32:24,370 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:25,605 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:25,606 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:32:25,607 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:32:25,607 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 21:32:25,608 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:32:25,610 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:32:27,663 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:32:27,664 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:32:27,664 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:32:27,665 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:40,606 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:32:40,606 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:32:40,607 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:32:40,607 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:32:40,608 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:32:40,608 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:32:40,608 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:32:40,609 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:32:40,609 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:32:53,362 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:32:53,363 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:32:53,364 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:32:53,364 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:32:53,365 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:32:53,365 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:32:53,366 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:32:53,366 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:32:53,367 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:33:05,746 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:33:05,747 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:33:05,747 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:33:05,748 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:33:05,748 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:33:05,749 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:33:05,749 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:33:05,750 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:33:05,750 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:33:05,750 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:33:05,751 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:33:05,753 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:33:05,754 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:34:22,942 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:34:33,468 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:34:54,879 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:00,881 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:06,470 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:15,091 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:24,091 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:34,140 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:39,477 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:35:45,252 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:36:44,752 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:36:56,862 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:03,465 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:09,535 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:36,545 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:40,902 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:48,013 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:52,015 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:37:56,678 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:01,129 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:04,158 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:09,653 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:14,140 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:18,439 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:26,053 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:31,089 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:49,920 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:38:54,855 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:00,846 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:05,021 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:10,981 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:38,604 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:44,295 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:53,330 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:39:59,444 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:40:05,668 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:40:11,333 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:40:17,330 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:40:24,111 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:40:50,529 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:41:33,153 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:41:49,435 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:41:55,197 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:02,282 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:06,682 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:16,872 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:24,729 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:30,811 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:38,251 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:42,739 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:48,806 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:42:54,878 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:43:00,562 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:43:09,655 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:43:14,226 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:43:18,611 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:44:39,360 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:45:15,544 - uvicorn.error - INFO - Shutting down -2025-08-29 21:45:15,649 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 21:45:15,651 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 21:45:15,652 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 21:45:15,654 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 21:45:15,654 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 21:45:15,655 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 21:45:15,656 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 21:45:15,658 - uvicorn.error - INFO - Finished server process [35210] -2025-08-29 21:53:26,096 - uvicorn.error - INFO - Started server process [40245] -2025-08-29 21:53:26,097 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:53:26,098 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:53:26,098 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:53:26,099 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:53:26,099 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:53:26,099 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:53:26,100 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:53:26,100 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:53:29,519 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:53:34,217 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:53:34,218 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:53:34,219 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:53:34,220 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:53:34,220 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:53:36,020 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:53:36,020 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:53:36,021 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:53:36,021 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:53:36,021 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:53:37,734 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:53:37,734 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:53:37,735 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:53:37,735 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:53:37,735 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:53:39,422 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:53:39,423 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:53:39,423 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:53:39,423 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:53:39,424 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:53:39,489 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:53:39,490 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:53:39,490 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:42,386 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:42,387 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:53:42,387 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:53:42,388 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 21:53:42,388 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:53:42,389 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:53:42,389 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:43,692 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:43,692 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:53:43,693 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:53:43,693 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 21:53:43,694 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:53:43,694 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:53:43,694 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:44,951 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:44,952 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:53:44,952 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:53:44,953 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 21:53:44,953 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:53:44,953 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:53:44,954 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:46,213 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:53:46,214 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:53:46,214 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:53:46,214 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 21:53:46,215 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:53:46,216 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:53:48,257 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:53:48,258 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:53:48,259 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:53:48,259 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:54:01,774 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:54:01,775 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:54:01,775 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:54:01,776 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:54:01,776 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:54:01,777 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:54:01,777 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:54:01,778 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:54:01,778 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:54:14,698 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:54:14,699 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:54:14,699 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:54:14,700 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:54:14,700 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:54:14,700 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:54:14,701 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:54:14,702 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:54:14,702 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:54:27,266 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:54:27,267 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:54:27,268 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:54:27,268 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:54:27,269 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:54:27,269 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:54:27,269 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:54:27,270 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:54:27,270 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:54:27,271 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:54:27,271 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:54:30,379 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:54:30,391 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:54:30,399 - uvicorn.error - ERROR - Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 714, in lifespan - await receive() - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/lifespan/on.py", line 135, in receive - return await self.receive_queue.get() - File "/usr/lib/python3.8/asyncio/queues.py", line 163, in get - await getter -asyncio.exceptions.CancelledError - -2025-08-29 21:56:12,908 - uvicorn.error - INFO - Started server process [41241] -2025-08-29 21:56:12,909 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 21:56:12,910 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 21:56:12,911 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 21:56:12,911 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 21:56:12,911 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 21:56:12,912 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 21:56:12,912 - app.core.session_pool - INFO - Initializing session pools... -2025-08-29 21:56:12,912 - app.core.session_pool - INFO - Initializing 4 sessions for simple_lama -2025-08-29 21:56:16,159 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:56:20,613 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:56:20,614 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:56:20,615 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:56:20,616 - app.core.session_pool - INFO - Created session simple_lama_0 -2025-08-29 21:56:20,617 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:56:22,400 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:56:22,401 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:56:22,401 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:56:22,402 - app.core.session_pool - INFO - Created session simple_lama_1 -2025-08-29 21:56:22,402 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:56:24,088 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:56:24,088 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:56:24,089 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:56:24,089 - app.core.session_pool - INFO - Created session simple_lama_2 -2025-08-29 21:56:24,089 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 21:56:25,756 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 21:56:25,756 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 21:56:25,757 - app.core.session_pool - INFO - Simple LAMA 모델 세션 로드 완료 -2025-08-29 21:56:25,757 - app.core.session_pool - INFO - Created session simple_lama_3 -2025-08-29 21:56:25,757 - app.core.session_pool - INFO - Initializing 4 sessions for migan -2025-08-29 21:56:25,822 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:56:25,822 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:56:25,823 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:28,580 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:28,581 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:56:28,581 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:56:28,582 - app.core.session_pool - INFO - Created session migan_0 -2025-08-29 21:56:28,582 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:56:28,583 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:56:28,583 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:29,852 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:29,853 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:56:29,853 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:56:29,854 - app.core.session_pool - INFO - Created session migan_1 -2025-08-29 21:56:29,854 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:56:29,854 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:56:29,855 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:31,072 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:31,072 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:56:31,073 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:56:31,073 - app.core.session_pool - INFO - Created session migan_2 -2025-08-29 21:56:31,074 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 21:56:31,074 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 21:56:31,074 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:32,306 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:32,307 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 21:56:32,308 - app.core.session_pool - INFO - MIGAN 모델 세션 로드 완료 -2025-08-29 21:56:32,308 - app.core.session_pool - INFO - Created session migan_3 -2025-08-29 21:56:32,309 - app.core.session_pool - INFO - Initializing 3 sessions for rembg -2025-08-29 21:56:32,310 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:56:34,333 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:56:34,334 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:56:34,334 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:56:34,335 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:56:47,648 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:56:47,649 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:56:47,650 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:56:47,650 - app.core.session_pool - INFO - Created session rembg_0 -2025-08-29 21:56:47,651 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:56:47,651 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:56:47,651 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:56:47,652 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:56:47,652 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:57:00,508 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:57:00,509 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:57:00,509 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:57:00,510 - app.core.session_pool - INFO - Created session rembg_1 -2025-08-29 21:57:00,510 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 21:57:00,511 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 21:57:00,511 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 21:57:00,512 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 21:57:00,512 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 21:57:13,223 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 21:57:13,223 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 21:57:13,224 - app.core.session_pool - INFO - REMBG 모델 세션 로드 완료 -2025-08-29 21:57:13,224 - app.core.session_pool - INFO - Created session rembg_2 -2025-08-29 21:57:13,225 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 21:57:13,225 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 21:57:13,225 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 21:57:13,226 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 21:57:13,226 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 21:57:13,227 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 21:57:13,227 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 21:57:16,343 - uvicorn.error - INFO - Application startup complete. -2025-08-29 21:57:16,353 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 21:59:51,134 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 21:59:57,813 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 6.722s -2025-08-29 22:00:02,737 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:18,011 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 15.314s -2025-08-29 22:00:22,330 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:23,972 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.694s -2025-08-29 22:00:28,723 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:30,117 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.445s -2025-08-29 22:00:35,326 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:36,758 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.471s -2025-08-29 22:00:41,071 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:42,651 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.618s -2025-08-29 22:00:47,196 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:48,619 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.450s -2025-08-29 22:00:52,857 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:54,558 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.736s -2025-08-29 22:00:58,326 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:00:59,657 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.371s -2025-08-29 22:01:04,284 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:01:05,630 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.378s -2025-08-29 22:01:57,794 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:02:00,934 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 3.179s -2025-08-29 22:02:06,382 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:02:07,866 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.514s -2025-08-29 22:02:15,220 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:02:16,792 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.615s -2025-08-29 22:02:22,461 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:02:23,790 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.377s -2025-08-29 22:03:01,528 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:03:04,020 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 2.532s -2025-08-29 22:03:13,341 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:03:15,572 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 2.260s -2025-08-29 22:03:21,500 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:03:29,405 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 7.941s -2025-08-29 22:04:02,266 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:04:12,367 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 10.139s -2025-08-29 22:04:16,160 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:04:18,086 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.959s -2025-08-29 22:04:23,356 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:04:25,222 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.918s -2025-08-29 22:04:49,806 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:04:51,747 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.978s -2025-08-29 22:05:37,916 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 22:05:41,193 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 3.324s -2025-08-29 22:05:41,242 - uvicorn.error - INFO - Shutting down -2025-08-29 22:05:41,344 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 22:05:41,345 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 22:05:41,345 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 22:05:41,346 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 22:05:41,346 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 22:05:41,347 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 22:05:41,347 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 22:05:41,348 - uvicorn.error - INFO - Finished server process [41241] -2025-08-29 23:20:54,214 - uvicorn.error - INFO - Started server process [50693] -2025-08-29 23:20:54,214 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:20:54,215 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:20:54,216 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:20:54,216 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:20:54,216 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:20:54,217 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:20:54,217 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:20:54,217 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:20:54,218 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:20:54,222 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:20:57,475 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:21:01,937 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:21:01,938 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:21:01,939 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:21:01,940 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:21:01,941 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:21:03,556 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:21:03,557 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:21:03,557 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:21:03,557 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:21:03,559 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:21:03,626 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:21:03,626 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:21:03,627 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:06,719 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:06,720 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:21:06,721 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:21:06,721 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:21:06,721 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:21:06,722 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:21:06,722 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:07,958 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:07,959 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:21:07,960 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:21:07,961 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:21:07,962 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:21:07,963 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:21:07,974 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:21:09,985 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:21:09,986 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:21:09,987 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:21:09,987 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:23,059 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:21:23,060 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:21:23,061 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:21:23,061 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:21:23,061 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:21:23,062 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:21:23,062 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:21:35,415 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:21:35,416 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:21:35,417 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:21:35,417 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:21:35,419 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:21:35,420 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:21:35,420 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:21:35,421 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 23:21:35,421 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:21:35,421 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:21:35,422 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:21:35,422 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:21:35,423 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 23:21:41,056 - uvicorn.error - INFO - Shutting down -2025-08-29 23:21:41,158 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 23:21:41,160 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 23:21:41,161 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 23:21:41,162 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 23:21:41,163 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 23:21:41,164 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 23:21:41,165 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 23:21:41,165 - uvicorn.error - INFO - Finished server process [50693] -2025-08-29 23:23:30,118 - uvicorn.error - INFO - Started server process [51345] -2025-08-29 23:23:30,119 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:23:30,120 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:23:30,120 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:23:30,120 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:23:30,121 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:23:30,121 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:23:30,121 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:23:30,122 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:23:30,122 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:23:30,126 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:23:33,346 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:23:38,162 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:23:38,164 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:23:38,166 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:23:38,167 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:23:38,168 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:23:39,914 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:23:39,915 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:23:39,915 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:23:39,916 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:23:39,917 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:23:39,982 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:23:39,983 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:23:39,983 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:23:42,929 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:23:42,930 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:23:42,930 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:23:42,930 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:23:42,931 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:23:42,931 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:23:42,932 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:23:44,203 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:23:44,204 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:23:44,205 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:23:44,205 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:23:44,207 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:23:44,208 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:23:44,212 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:23:46,193 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:23:46,194 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:23:46,194 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:23:46,194 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:23:59,354 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:23:59,355 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:23:59,356 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:23:59,357 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:23:59,357 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:23:59,358 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:23:59,358 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:24:11,844 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:24:11,845 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:24:11,845 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:24:11,846 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:24:11,848 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:24:11,848 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:24:11,848 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:24:11,849 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 23:24:11,849 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:24:11,849 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:24:11,850 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:24:11,850 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:24:11,852 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 23:24:47,869 - app.utils.image_utils - ERROR - base64 이미지 디코딩 실패: cannot identify image file <_io.BytesIO object at 0xffff97735040> -2025-08-29 23:24:47,869 - app.api.endpoints - ERROR - 인페인팅 처리 실패: cannot identify image file <_io.BytesIO object at 0xffff97735040> -2025-08-29 23:24:47,872 - app.utils.image_utils - ERROR - base64 이미지 디코딩 실패: cannot identify image file <_io.BytesIO object at 0xfffe880749f0> -2025-08-29 23:24:47,872 - app.api.endpoints - ERROR - 인페인팅 처리 실패: cannot identify image file <_io.BytesIO object at 0xfffe880749f0> -2025-08-29 23:24:47,874 - app.utils.image_utils - ERROR - base64 이미지 디코딩 실패: cannot identify image file <_io.BytesIO object at 0xfffe880749f0> -2025-08-29 23:24:47,874 - app.api.endpoints - ERROR - 인페인팅 처리 실패: cannot identify image file <_io.BytesIO object at 0xfffe880749f0> -2025-08-29 23:24:47,877 - app.utils.image_utils - ERROR - base64 이미지 디코딩 실패: cannot identify image file <_io.BytesIO object at 0xffff976430e0> -2025-08-29 23:24:47,877 - app.api.endpoints - ERROR - 인페인팅 처리 실패: cannot identify image file <_io.BytesIO object at 0xffff976430e0> -2025-08-29 23:24:47,879 - app.utils.image_utils - ERROR - base64 이미지 디코딩 실패: cannot identify image file <_io.BytesIO object at 0xffff976435e0> -2025-08-29 23:24:47,879 - app.api.endpoints - ERROR - 인페인팅 처리 실패: cannot identify image file <_io.BytesIO object at 0xffff976435e0> -2025-08-29 23:25:47,005 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:25:50,020 - app.models.simple_lama - ERROR - Inpainting failed: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,021 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 351, in process_inpaint - result = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 140, in inpaint - result_pil = self.model(pil_image, pil_mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 32, in __call__ - inpainted = self.model(image, mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl - return forward_call(*args, **kwargs) -RuntimeError: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,031 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:25:50,055 - app.models.simple_lama - ERROR - Inpainting failed: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,056 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 351, in process_inpaint - result = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 140, in inpaint - result_pil = self.model(pil_image, pil_mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 32, in __call__ - inpainted = self.model(image, mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl - return forward_call(*args, **kwargs) -RuntimeError: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,061 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:25:50,085 - app.models.simple_lama - ERROR - Inpainting failed: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,086 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 351, in process_inpaint - result = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 140, in inpaint - result_pil = self.model(pil_image, pil_mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 32, in __call__ - inpainted = self.model(image, mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl - return forward_call(*args, **kwargs) -RuntimeError: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,092 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:25:50,116 - app.models.simple_lama - ERROR - Inpainting failed: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,117 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 351, in process_inpaint - result = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 140, in inpaint - result_pil = self.model(pil_image, pil_mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 32, in __call__ - inpainted = self.model(image, mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl - return forward_call(*args, **kwargs) -RuntimeError: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,122 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:25:50,146 - app.models.simple_lama - ERROR - Inpainting failed: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:25:50,147 - app.core.worker_manager - ERROR - 인페인팅 처리 실패: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 351, in process_inpaint - result = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 140, in inpaint - result_pil = self.model(pil_image, pil_mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 32, in __call__ - inpainted = self.model(image, mask) - File "/home/ckh08045/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl - return forward_call(*args, **kwargs) -RuntimeError: The following operation failed in the TorchScript interpreter. -Traceback of TorchScript, serialized code (most recent call last): - File "code/__torch__/saicinpainting/training/trainers/default.py", line 13, in forward - masked_img = torch.mul(img, torch.rsub(mask, 1, 1)) - input = torch.cat([masked_img, mask], 1) - _1 = torch.mul(mask, (_0).forward(input, )) - ~~~~~~~~~~~ <--- HERE - _2 = torch.mul(torch.rsub(mask, 1, 1), img) - return torch.add(_1, _2, alpha=1) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 9, in forward - def forward(self: __torch__.saicinpainting.training.modules.ffc.FFCResNetGenerator, - input: Tensor) -> Tensor: - return (self.model).forward(input, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE -class FFC_BN_ACT(Module): - __parameters__ = [] - File "code/__torch__/torch/nn/modules/container/___torch_mangle_818.py", line 81, in forward - _35 = (_29).forward((_30).forward(_34, ), ) - _36, _37, = _35 - _38, _39, = (_28).forward(_36, _37, ) - ~~~~~~~~~~~~ <--- HERE - _40, _41, = (_27).forward(_38, _39, ) - _42, _43, = (_26).forward(_40, _41, ) - File "code/__torch__/saicinpainting/training/modules/ffc.py", line 58, in forward - argument_2: Tensor) -> Tuple[Tensor, Tensor]: - _10 = self.conv2 - _11 = (self.conv1).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~~~ <--- HERE - _12, _13, = _11 - _14, _15, = (_10).forward(_12, _13, ) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_55.py", line 18, in forward - _2 = self.act_l - _3 = self.bn_l - _4 = (self.ffc).forward(argument_1, argument_2, ) - ~~~~~~~~~~~~~~~~~ <--- HERE - _5, _6, = _4 - _7 = ((_2).forward((_3).forward(_5, ), ), (_0).forward((_1).forward(_6, ), )) - File "code/__torch__/saicinpainting/training/modules/ffc/___torch_mangle_50.py", line 17, in forward - _1 = self.convl2g - _2 = self.convg2l - _3 = (self.convl2l).forward(argument_1, ) - ~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _4 = torch.mul((_2).forward(argument_2, ), CONSTANTS.c1) - input = torch.add(_3, _4, alpha=1) - File "code/__torch__/torch/nn/modules/conv/___torch_mangle_38.py", line 10, in forward - argument_1: Tensor) -> Tensor: - _0 = self.weight - _1 = torch.reflection_pad2d(argument_1, [1, 1, 1, 1]) - ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE - _2 = torch._convolution(_1, _0, None, [1, 1], [0, 0], [1, 1], False, [0, 0], 1, False, False, True, True) - return _2 - -Traceback of TorchScript, original code (most recent call last): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/functional.py(4017): _pad -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(392): _conv_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/conv.py(399): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(221): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(252): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(285): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/container.py(119): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/modules/ffc.py(367): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/root/home/code/lama/saicinpainting/training/trainers/default.py(83): forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(860): _slow_forward -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py(887): _call_impl -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(940): trace_module -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/torch/jit/_trace.py(742): trace -bin/to_jit.py(46): main -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/core/utils.py(160): run_job -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/hydra.py(105): run -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(371): -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(211): run_and_report -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/_internal/utils.py(368): _run_hydra -/opt/venv/ocr-detection-detectron2/lib/python3.6/site-packages/hydra/main.py(53): decorated_main -bin/to_jit.py(59): -RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (1, 1) at dimension 3 of input [1, 128, 1, 1] - -2025-08-29 23:33:09,258 - uvicorn.error - INFO - Shutting down -2025-08-29 23:33:09,361 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 23:33:09,362 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 23:33:09,362 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 23:33:09,363 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 23:33:09,363 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 23:33:09,364 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 23:33:09,365 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 23:33:09,365 - uvicorn.error - INFO - Finished server process [51345] -2025-08-29 23:33:37,702 - uvicorn.error - INFO - Started server process [53233] -2025-08-29 23:33:37,703 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:33:37,704 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:33:37,704 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:33:37,705 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:33:37,705 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:33:37,705 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:33:37,706 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:33:37,706 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:33:37,706 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:33:37,710 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:33:40,904 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:33:45,237 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:33:45,240 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:33:45,241 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:33:45,241 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:33:45,242 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:33:46,972 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:33:46,972 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:33:46,973 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:33:46,973 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:33:46,975 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:33:47,042 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:33:47,043 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:33:47,043 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:33:49,964 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:33:49,965 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:33:49,965 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:33:49,966 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:33:49,966 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:33:49,967 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:33:49,967 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:33:51,262 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:33:51,263 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:33:51,264 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:33:51,265 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:33:51,266 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:33:51,267 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:33:51,271 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:33:53,243 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:33:53,244 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:33:53,244 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:33:53,245 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:34:06,469 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:34:06,470 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:34:06,470 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:34:06,471 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:34:06,471 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:34:06,472 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:34:06,472 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:34:19,024 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:34:19,025 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:34:19,025 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:34:19,026 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:34:19,028 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:34:19,028 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:34:19,028 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:34:19,029 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 23:34:19,029 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:34:19,030 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:34:19,030 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:34:19,030 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:34:19,032 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 23:34:24,962 - uvicorn.error - INFO - Shutting down -2025-08-29 23:34:25,065 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 23:34:25,066 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 23:34:25,067 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 23:34:25,068 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 23:34:25,069 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 23:34:25,070 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 23:34:25,071 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 23:34:25,071 - uvicorn.error - INFO - Finished server process [53233] -2025-08-29 23:35:30,669 - uvicorn.error - INFO - Started server process [53838] -2025-08-29 23:35:30,670 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:35:30,671 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:35:30,671 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:35:30,672 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:35:30,672 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:35:30,672 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:35:30,673 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:35:30,673 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:35:30,673 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:35:30,677 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:35:33,862 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:35:37,936 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:35:37,938 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:35:37,939 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:35:37,940 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:35:37,940 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:35:39,727 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:35:39,728 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:35:39,728 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:35:39,728 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:35:39,730 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:35:39,791 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:35:39,792 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:35:39,792 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:35:42,912 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:35:42,913 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:35:42,913 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:35:42,914 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:35:42,914 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:35:42,914 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:35:42,915 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:35:44,194 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:35:44,195 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:35:44,196 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:35:44,196 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:35:44,198 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:35:44,198 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:35:44,202 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:35:46,166 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:35:46,167 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:35:46,167 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:35:46,168 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:35:59,227 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:35:59,228 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:35:59,228 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:35:59,229 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:35:59,229 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:35:59,230 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:35:59,230 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:36:11,690 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:36:11,691 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:36:11,692 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:36:11,692 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:36:11,694 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:36:11,694 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:36:11,695 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:36:11,695 - app.core.worker_manager - INFO - Worker manager started with 4 workers -2025-08-29 23:36:11,696 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:36:11,696 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:36:11,696 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:36:11,697 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:36:11,698 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 23:37:19,352 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:37:24,848 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 5.545s -2025-08-29 23:37:24,890 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:37:42,294 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 17.414s -2025-08-29 23:37:42,340 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:37:43,954 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.623s -2025-08-29 23:37:43,995 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:37:45,426 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.440s -2025-08-29 23:37:45,465 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:37:46,886 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.429s -2025-08-29 23:38:44,108 - uvicorn.error - INFO - Shutting down -2025-08-29 23:38:44,211 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 23:38:44,212 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 23:38:44,213 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 23:38:44,214 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 23:38:44,214 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 23:38:44,215 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 23:38:44,216 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 23:38:44,216 - uvicorn.error - INFO - Finished server process [53838] -2025-08-29 23:39:12,657 - uvicorn.error - INFO - Started server process [54766] -2025-08-29 23:39:12,658 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:39:12,659 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:39:12,660 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:39:12,660 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:39:12,660 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:39:12,660 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:39:12,661 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:39:12,661 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:39:12,662 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:39:12,665 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:39:15,801 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:39:20,095 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:39:20,097 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:39:20,097 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:39:20,098 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:39:20,099 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:39:21,768 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:39:21,768 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:39:21,768 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:39:21,769 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:39:21,771 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:39:21,831 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:39:21,832 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:39:21,832 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:24,676 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:24,677 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:39:24,677 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:39:24,678 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:39:24,678 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:39:24,678 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:39:24,679 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:25,873 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:25,874 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:39:25,875 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:39:25,875 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:39:25,877 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:39:25,878 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:39:25,882 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:39:27,836 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:39:27,836 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:39:27,837 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:39:27,837 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:40,800 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:39:40,801 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:39:40,802 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:39:40,802 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:39:40,803 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:39:40,804 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:39:40,804 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:39:53,309 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:39:53,310 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:39:53,311 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:39:53,311 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:39:53,313 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:39:53,314 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:39:53,314 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:39:53,315 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-29 23:39:53,315 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:39:53,315 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:39:53,316 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:39:53,316 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:39:53,317 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-29 23:40:52,158 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:40:58,128 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 6.017s -2025-08-29 23:40:58,179 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:41:12,245 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 14.078s -2025-08-29 23:41:12,287 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:41:13,727 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.450s -2025-08-29 23:41:13,767 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:41:15,212 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.455s -2025-08-29 23:41:15,258 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 인페인팅 수행 -2025-08-29 23:41:16,691 - app.core.worker_manager - INFO - 'simple-lama' inpainting processed in 1.442s -2025-08-29 23:46:05,591 - uvicorn.error - INFO - Shutting down -2025-08-29 23:46:05,694 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-29 23:46:05,695 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-29 23:46:05,695 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-29 23:46:05,696 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-29 23:46:05,697 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-29 23:46:05,697 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-29 23:46:05,698 - uvicorn.error - INFO - Application shutdown complete. -2025-08-29 23:46:05,698 - uvicorn.error - INFO - Finished server process [54766] -2025-08-29 23:46:34,096 - uvicorn.error - INFO - Started server process [56165] -2025-08-29 23:46:34,097 - uvicorn.error - INFO - Waiting for application startup. -2025-08-29 23:46:34,098 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-29 23:46:34,098 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-29 23:46:34,098 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-29 23:46:34,099 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-29 23:46:34,099 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-29 23:46:34,100 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-29 23:46:34,100 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-29 23:46:34,100 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-29 23:46:34,104 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-29 23:46:37,259 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:46:41,562 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:46:41,563 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:46:41,564 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-29 23:46:41,565 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-29 23:46:41,566 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-29 23:46:43,429 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-29 23:46:43,429 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-29 23:46:43,429 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-29 23:46:43,430 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-29 23:46:43,432 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-29 23:46:43,491 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:46:43,491 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:46:43,492 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:46:46,412 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:46:46,413 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:46:46,413 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-29 23:46:46,414 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-29 23:46:46,414 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-29 23:46:46,415 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-29 23:46:46,415 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:46:47,630 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:46:47,631 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-29 23:46:47,632 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-29 23:46:47,632 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-29 23:46:47,634 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-29 23:46:47,634 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-29 23:46:47,638 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:46:49,612 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:46:49,612 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:46:49,613 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:46:49,613 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:47:02,613 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:47:02,614 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:47:02,615 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-29 23:47:02,615 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-29 23:47:02,616 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-29 23:47:02,617 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-29 23:47:02,617 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-29 23:47:15,228 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-29 23:47:15,229 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-29 23:47:15,230 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-29 23:47:15,230 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-29 23:47:15,232 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-29 23:47:15,232 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-29 23:47:15,233 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-29 23:47:15,234 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-29 23:47:15,234 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-29 23:47:15,234 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-29 23:47:15,235 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-29 23:47:15,235 - uvicorn.error - INFO - Application startup complete. -2025-08-29 23:47:15,236 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 00:23:19,530 - uvicorn.error - INFO - Shutting down -2025-08-30 00:23:19,632 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 00:23:19,634 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 00:23:19,634 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 00:23:19,635 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 00:23:19,635 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 00:23:19,636 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 00:23:19,637 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 00:23:19,637 - uvicorn.error - INFO - Finished server process [56165] -2025-08-30 00:56:31,018 - uvicorn.error - INFO - Started server process [65709] -2025-08-30 00:56:31,018 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 00:56:31,021 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 00:56:31,026 - uvicorn.error - ERROR - Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 705, in lifespan - async with self.lifespan_context(app) as maybe_state: - File "/usr/lib/python3.8/contextlib.py", line 171, in __aenter__ - return await self.gen.__anext__() - File "/home/ckh08045/work/inpaintServer/./main.py", line 211, in lifespan - settings.start_time = time.time() - File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 925, in __setattr__ - raise ValueError(f'"{self.__class__.__name__}" object has no field "{name}"') -ValueError: "Settings" object has no field "start_time" - -2025-08-30 00:56:31,027 - uvicorn.error - ERROR - Application startup failed. Exiting. -2025-08-30 00:59:17,812 - uvicorn.error - INFO - Started server process [66225] -2025-08-30 00:59:17,813 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 00:59:17,816 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 00:59:17,817 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 00:59:17,817 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 00:59:17,818 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 00:59:17,818 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 00:59:17,818 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 00:59:17,819 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 00:59:17,819 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 00:59:17,821 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 00:59:21,077 - app.core.session_pool - ERROR - Failed to create session simple_lama_0: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 123, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 140, in _load_model - return await self._load_simple_lama_model() - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 150, in _load_simple_lama_model - from ..models.simple_lama import SimpleLamaInpainter - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 13, in - from ..utils.image_utils import ( -ImportError: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -2025-08-30 00:59:21,080 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 00:59:21,081 - app.core.session_pool - ERROR - Failed to create session simple_lama_1: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 123, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 140, in _load_model - return await self._load_simple_lama_model() - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 150, in _load_simple_lama_model - from ..models.simple_lama import SimpleLamaInpainter - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 13, in - from ..utils.image_utils import ( -ImportError: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -2025-08-30 00:59:21,083 - app.core.session_pool - ERROR - Failed to create initial session simple_lama_0: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -2025-08-30 00:59:21,084 - app.core.session_pool - ERROR - Failed to create initial session simple_lama_1: cannot import name 'get_image_size' from 'app.utils.image_utils' (/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py) -2025-08-30 00:59:21,084 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 00:59:21,087 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 00:59:21,165 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 00:59:21,166 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 00:59:21,167 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:27,170 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:27,171 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 00:59:27,172 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 00:59:27,172 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 00:59:27,173 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 00:59:27,173 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 00:59:27,173 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:28,453 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:28,454 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 00:59:28,454 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 00:59:28,455 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 00:59:28,457 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 00:59:28,457 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 00:59:28,459 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 00:59:30,280 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 00:59:30,281 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 00:59:30,282 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 00:59:30,282 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:43,508 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 00:59:43,509 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 00:59:43,509 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 00:59:43,509 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 00:59:43,510 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 00:59:43,510 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 00:59:43,511 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 00:59:56,449 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 00:59:56,450 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 00:59:56,451 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 00:59:56,451 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 00:59:56,453 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 00:59:56,454 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 00:59:56,454 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 00:59:56,455 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 00:59:56,455 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 00:59:56,455 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 00:59:56,456 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 00:59:56,456 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 00:59:56,456 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 00:59:56,457 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 00:59:56,457 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 00:59:56,458 - uvicorn.error - INFO - Application startup complete. -2025-08-30 00:59:56,459 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 00:59:56,462 - uvicorn.error - ERROR - Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 714, in lifespan - await receive() - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/lifespan/on.py", line 135, in receive - return await self.receive_queue.get() - File "/usr/lib/python3.8/asyncio/queues.py", line 163, in get - await getter -asyncio.exceptions.CancelledError - -2025-08-30 01:00:56,650 - uvicorn.error - INFO - Started server process [66666] -2025-08-30 01:00:56,651 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:00:56,654 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:00:56,655 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:00:56,655 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:00:56,655 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:00:56,656 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:00:56,656 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:00:56,656 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:00:56,657 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:00:56,658 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:00:59,900 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:01:04,244 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:01:04,246 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:01:04,246 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:01:04,247 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:01:04,248 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:01:06,025 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:01:06,026 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:01:06,026 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:01:06,027 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:01:06,028 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:01:06,091 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:01:06,091 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:01:06,092 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:08,887 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:08,888 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:01:08,888 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:01:08,889 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:01:08,889 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:01:08,889 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:01:08,890 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:10,146 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:10,147 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:01:10,147 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:01:10,148 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:01:10,150 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:01:10,150 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:01:10,152 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:01:12,128 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:01:12,129 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:01:12,129 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:01:12,130 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:25,211 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:01:25,212 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:01:25,212 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:01:25,213 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:01:25,213 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:01:25,214 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:01:25,215 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:01:37,757 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:01:37,758 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:01:37,759 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:01:37,759 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:01:37,761 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:01:37,761 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:01:37,762 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:01:37,762 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:01:37,763 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:01:37,763 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:01:37,764 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:01:37,764 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:01:37,764 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:01:37,764 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:01:37,765 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:01:37,765 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:01:37,766 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:01:39,919 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - | response = await func(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - | raise e - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - | raw_response = await run_endpoint_function( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - | return await dependant.call(**values) - | File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - | return HealthResponse( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - | validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - | pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse - | timestamp - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | version - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | uptime - | Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - | For further information visit https://errors.pydantic.dev/2.10/v/float_parsing - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - response = await func(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - raise e - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - raw_response = await run_endpoint_function( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - return await dependant.call(**values) - File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - return HealthResponse( - File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) -pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse -timestamp - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -version - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -uptime - Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - For further information visit https://errors.pydantic.dev/2.10/v/float_parsing -2025-08-30 01:01:39,956 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - | response = await func(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - | raise e - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - | raw_response = await run_endpoint_function( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - | return await dependant.call(**values) - | File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - | return HealthResponse( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - | validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - | pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse - | timestamp - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | version - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | uptime - | Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - | For further information visit https://errors.pydantic.dev/2.10/v/float_parsing - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - response = await func(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - raise e - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - raw_response = await run_endpoint_function( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - return await dependant.call(**values) - File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - return HealthResponse( - File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) -pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse -timestamp - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -version - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -uptime - Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - For further information visit https://errors.pydantic.dev/2.10/v/float_parsing -2025-08-30 01:02:10,879 - uvicorn.error - INFO - Shutting down -2025-08-30 01:02:10,984 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:02:10,987 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:02:10,988 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:02:10,989 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:02:10,990 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:02:10,991 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:02:10,992 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:02:10,993 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:02:10,993 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:02:10,994 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:02:10,996 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:02:10,997 - uvicorn.error - INFO - Finished server process [66666] -2025-08-30 01:03:06,674 - uvicorn.error - INFO - Started server process [67469] -2025-08-30 01:03:06,675 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:03:06,678 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:03:06,679 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:03:06,679 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:03:06,679 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:03:06,680 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:03:06,680 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:03:06,680 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:03:06,681 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:03:06,682 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:03:09,896 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:03:14,043 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:03:14,044 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:03:14,045 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:03:14,046 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:03:14,046 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:03:15,629 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:03:15,630 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:03:15,630 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:03:15,631 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:03:15,633 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:03:15,695 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:03:15,696 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:03:15,696 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:18,674 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:18,675 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:03:18,676 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:03:18,676 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:03:18,677 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:03:18,677 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:03:18,677 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:19,891 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:19,892 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:03:19,893 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:03:19,894 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:03:19,896 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:03:19,896 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:03:19,898 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:03:21,890 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:03:21,890 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:03:21,891 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:03:21,891 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:34,920 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:03:34,921 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:03:34,921 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:03:34,922 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:03:34,922 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:03:34,923 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:03:34,923 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:03:47,544 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:03:47,545 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:03:47,546 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:03:47,546 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:03:47,548 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:03:47,548 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:03:47,549 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:03:47,550 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:03:47,550 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:03:47,550 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:03:47,551 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:03:47,551 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:03:47,551 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:03:47,552 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:03:47,552 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:03:47,552 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:03:47,554 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:03:49,992 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - | response = await func(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - | raise e - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - | raw_response = await run_endpoint_function( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - | return await dependant.call(**values) - | File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - | return HealthResponse( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - | validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - | pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse - | timestamp - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | version - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | uptime - | Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - | For further information visit https://errors.pydantic.dev/2.10/v/float_parsing - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - response = await func(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - raise e - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - raw_response = await run_endpoint_function( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - return await dependant.call(**values) - File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - return HealthResponse( - File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) -pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse -timestamp - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -version - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -uptime - Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - For further information visit https://errors.pydantic.dev/2.10/v/float_parsing -2025-08-30 01:03:50,029 - uvicorn.error - ERROR - Exception in ASGI application - + Exception Group Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 82, in collapse_excgroups - | yield - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/home/ckh08045/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 685, in __aexit__ - | raise BaseExceptionGroup( - | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - | result = await app(self.scope, self.receive, self.send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - | return await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - | await super().__call__(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - | await self.middleware_stack(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - | await self.app(scope, receive, _send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - | response_sent.set() - | File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - | self.gen.throw(type, value, traceback) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - | response = await self.dispatch_func(request, call_next) - | File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - | response = await call_next(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - | raise app_exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - | await self.app(scope, receive_or_disconnect, send_no_error) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - | await route.handle(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - | await self.app(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - | await wrap_app_handling_exceptions(app, request)(scope, receive, send) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - | raise exc - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - | await app(scope, receive, sender) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - | response = await func(request) - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - | raise e - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - | raw_response = await run_endpoint_function( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - | return await dependant.call(**values) - | File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - | return HealthResponse( - | File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - | validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - | pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse - | timestamp - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | version - | Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - | For further information visit https://errors.pydantic.dev/2.10/v/missing - | uptime - | Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - | For further information visit https://errors.pydantic.dev/2.10/v/float_parsing - +------------------------------------ - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi - result = await app(self.scope, self.receive, self.send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ - return await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/applications.py", line 1054, in __call__ - await super().__call__(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/applications.py", line 116, in __call__ - await self.middleware_stack(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 186, in __call__ - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 164, in __call__ - await self.app(scope, receive, _send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 83, in __call__ - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 193, in __call__ - response_sent.set() - File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ - self.gen.throw(type, value, traceback) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_utils.py", line 88, in collapse_excgroups - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 191, in __call__ - response = await self.dispatch_func(request, call_next) - File "/home/ckh08045/work/inpaintServer/./main.py", line 298, in collect_api_stats - response = await call_next(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 165, in call_next - raise app_exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/base.py", line 151, in coro - await self.app(scope, receive_or_disconnect, send_no_error) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ - await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 746, in __call__ - await route.handle(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 288, in handle - await self.app(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 75, in app - await wrap_app_handling_exceptions(app, request)(scope, receive, send) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app - raise exc - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app - await app(scope, receive, sender) - File "/home/ckh08045/.local/lib/python3.8/site-packages/starlette/routing.py", line 70, in app - response = await func(request) - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 299, in app - raise e - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 294, in app - raw_response = await run_endpoint_function( - File "/home/ckh08045/.local/lib/python3.8/site-packages/fastapi/routing.py", line 191, in run_endpoint_function - return await dependant.call(**values) - File "/home/ckh08045/work/inpaintServer/./app/api/endpoints.py", line 114, in health_check - return HealthResponse( - File "/home/ckh08045/.local/lib/python3.8/site-packages/pydantic/main.py", line 214, in __init__ - validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) -pydantic_core._pydantic_core.ValidationError: 3 validation errors for HealthResponse -timestamp - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -version - Field required [type=missing, input_value={'status': 'ok', 'uptime': '00:00:43'}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/missing -uptime - Input should be a valid number, unable to parse string as a number [type=float_parsing, input_value='00:00:43', input_type=str] - For further information visit https://errors.pydantic.dev/2.10/v/float_parsing -2025-08-30 01:15:31,973 - uvicorn.error - INFO - Shutting down -2025-08-30 01:15:32,076 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:15:32,077 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:15:32,077 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:15:32,078 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:15:32,078 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:15:32,079 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:15:32,079 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:15:32,080 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:15:32,080 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:15:32,080 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:15:32,081 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:15:32,082 - uvicorn.error - INFO - Finished server process [67469] -2025-08-30 01:16:00,385 - uvicorn.error - INFO - Started server process [69326] -2025-08-30 01:16:00,386 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:16:00,389 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:16:00,390 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:16:00,390 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:16:00,390 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:16:00,391 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:16:00,391 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:16:00,392 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:16:00,392 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:16:00,394 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:16:03,609 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:16:07,807 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:16:07,808 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:16:07,810 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:16:07,811 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:16:07,812 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:16:09,506 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:16:09,507 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:16:09,507 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:16:09,508 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:16:09,510 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:16:09,574 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:16:09,575 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:16:09,575 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:12,504 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:12,505 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:16:12,505 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:16:12,506 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:16:12,506 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:16:12,506 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:16:12,507 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:13,765 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:13,766 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:16:13,766 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:16:13,767 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:16:13,769 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:16:13,769 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:16:13,771 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:16:15,732 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:16:15,732 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:16:15,733 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:16:15,733 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:28,881 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:16:28,882 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:16:28,882 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:16:28,883 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:16:28,883 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:16:28,884 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:16:28,884 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:16:41,334 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:16:41,334 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:16:41,335 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:16:41,336 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:16:41,338 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:16:41,338 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:16:41,338 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:16:41,339 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:16:41,340 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:16:41,340 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:16:41,341 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:16:41,341 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:16:41,341 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:16:41,341 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:16:41,342 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:16:41,342 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:16:41,344 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:21:29,203 - uvicorn.error - INFO - Shutting down -2025-08-30 01:21:29,305 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:21:29,306 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:21:29,307 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:21:29,307 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:21:29,308 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:21:29,308 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:21:29,309 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:21:29,310 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:21:29,311 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:21:29,311 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:21:29,313 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:21:29,314 - uvicorn.error - INFO - Finished server process [69326] -2025-08-30 01:34:15,804 - uvicorn.error - INFO - Started server process [72953] -2025-08-30 01:34:15,805 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:34:15,806 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:34:15,806 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:34:15,807 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:34:15,807 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:34:15,807 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:34:15,808 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:34:15,808 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:34:15,809 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:34:15,810 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:34:19,077 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:34:23,295 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:34:23,297 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:34:23,298 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:34:23,299 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:34:23,300 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:34:25,166 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:34:25,166 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:34:25,167 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:34:25,167 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:34:25,169 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:34:25,235 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:34:25,235 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:34:25,236 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:28,263 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:28,264 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:34:28,264 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:34:28,265 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:34:28,265 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:34:28,266 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:34:28,266 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:29,518 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:29,519 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:34:29,520 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:34:29,521 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:34:29,522 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:34:29,523 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:34:29,525 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:34:31,515 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:34:31,515 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:34:31,516 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:34:31,516 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:44,596 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:34:44,597 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:34:44,597 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:34:44,598 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:34:44,598 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:34:44,599 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:34:44,600 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:34:57,057 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:34:57,058 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:34:57,058 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:34:57,059 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:34:57,061 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:34:57,061 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:34:57,061 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:34:57,062 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:34:57,062 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:34:57,063 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:34:57,063 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:34:57,064 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:34:57,064 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:34:57,064 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:34:57,065 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:34:57,065 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:34:57,066 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:36:20,200 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,202 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,221 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,222 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,241 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,242 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,259 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,260 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,277 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,279 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,297 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,298 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,316 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,316 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:36:20,334 - app.core.worker_manager - ERROR - Unsupported model for single inpaint: simple-lama. Use process_inpaint_batch for simple-lama. -2025-08-30 01:36:20,335 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Unsupported model for single inpaint: simple-lama -2025-08-30 01:38:15,844 - uvicorn.error - INFO - Shutting down -2025-08-30 01:38:15,948 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:38:15,950 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:38:15,951 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:38:15,953 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:38:15,953 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:38:15,954 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:38:15,955 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:38:15,956 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:38:15,957 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:38:15,958 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:38:15,960 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:38:15,961 - uvicorn.error - INFO - Finished server process [72953] -2025-08-30 01:38:41,360 - uvicorn.error - INFO - Started server process [73988] -2025-08-30 01:38:41,362 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:38:41,363 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:38:41,363 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:38:41,363 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:38:41,364 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:38:41,364 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:38:41,364 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:38:41,365 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:38:41,365 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:38:41,367 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:38:44,641 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:38:48,816 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:38:48,817 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:38:48,818 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:38:48,819 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:38:48,820 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:38:50,504 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:38:50,505 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:38:50,505 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:38:50,506 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:38:50,508 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:38:50,576 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:38:50,577 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:38:50,577 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:38:53,605 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:38:53,606 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:38:53,607 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:38:53,607 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:38:53,608 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:38:53,608 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:38:53,609 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:38:54,888 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:38:54,889 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:38:54,889 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:38:54,890 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:38:54,892 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:38:54,892 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:38:54,894 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:38:56,917 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:38:56,917 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:38:56,918 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:38:56,918 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:39:10,083 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:39:10,084 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:39:10,084 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:39:10,085 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:39:10,085 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:39:10,086 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:39:10,086 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:39:22,619 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:39:22,620 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:39:22,621 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:39:22,621 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:39:22,623 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:39:22,624 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:39:22,624 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:39:22,625 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:39:22,625 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:39:22,626 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:39:22,626 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:39:22,626 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:39:22,627 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:39:22,627 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:39:22,628 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:39:22,628 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:39:22,629 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:39:55,976 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:39:55,982 - app.core.batch_manager - ERROR - Failed to process batch: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 390, in process_inpaint_batch - return await self._execute_task(_inpaint_batch()) -TypeError: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,985 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,985 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,986 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,986 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,995 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:39:55,996 - app.core.batch_manager - ERROR - Failed to process batch: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 390, in process_inpaint_batch - return await self._execute_task(_inpaint_batch()) -TypeError: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,997 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,997 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,998 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:39:55,998 - app.api.endpoints - ERROR - 인페인팅 처리 실패: _execute_task() missing 2 required positional arguments: 'task_id' and 'task_func' -2025-08-30 01:41:08,451 - uvicorn.error - INFO - Shutting down -2025-08-30 01:41:08,556 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:41:08,558 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:41:08,559 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:41:08,560 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:41:08,560 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:41:08,561 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:41:08,561 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:41:08,562 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:41:08,562 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:41:08,563 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:41:08,564 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:41:08,565 - uvicorn.error - INFO - Finished server process [73988] -2025-08-30 01:41:49,103 - uvicorn.error - INFO - Started server process [75068] -2025-08-30 01:41:49,104 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:41:49,105 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:41:49,106 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:41:49,106 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:41:49,107 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:41:49,107 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:41:49,107 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:41:49,108 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:41:49,108 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:41:49,110 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:41:52,348 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:41:56,509 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:41:56,510 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:41:56,511 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:41:56,512 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:41:56,513 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:41:58,123 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:41:58,124 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:41:58,124 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:41:58,125 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:41:58,126 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:41:58,193 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:41:58,194 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:41:58,194 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:01,179 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:01,180 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:42:01,180 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:42:01,181 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:42:01,181 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:42:01,181 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:42:01,182 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:02,437 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:02,438 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:42:02,439 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:42:02,439 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:42:02,441 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:42:02,442 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:42:02,444 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:42:04,416 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:42:04,417 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:42:04,417 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:42:04,418 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:17,374 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:42:17,375 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:42:17,375 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:42:17,376 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:42:17,376 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:42:17,377 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:42:17,377 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:42:29,936 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:42:29,937 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:42:29,938 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:42:29,938 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:42:29,940 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:42:29,940 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:42:29,940 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:42:29,941 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:42:29,941 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:42:29,942 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:42:29,942 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:42:29,942 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:42:29,943 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:42:29,943 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:42:29,944 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:42:29,944 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:42:29,945 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:44:12,289 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:44:12,290 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:44:12,493 - app.core.batch_manager - ERROR - Failed to process batch: Input image should be either PIL Image or numpy array! -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 377, in process_inpaint_batch - results = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 165, in inpaint - inpainted_batch = self._model(image_batch, mask_batch) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 29, in __call__ - image, mask = prepare_img_and_mask(image, mask, self.device) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/utils/util.py", line 54, in prepare_img_and_mask - out_image = get_image(image) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/utils/util.py", line 16, in get_image - raise Exception(f"Input image should be either PIL Image or numpy array!") -Exception: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,498 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,499 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,500 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,500 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,510 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:44:12,511 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:44:12,647 - app.core.batch_manager - ERROR - Failed to process batch: Input image should be either PIL Image or numpy array! -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 377, in process_inpaint_batch - results = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 165, in inpaint - inpainted_batch = self._model(image_batch, mask_batch) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/models/model.py", line 29, in __call__ - image, mask = prepare_img_and_mask(image, mask, self.device) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/utils/util.py", line 54, in prepare_img_and_mask - out_image = get_image(image) - File "/home/ckh08045/.local/lib/python3.8/site-packages/simple_lama_inpainting/utils/util.py", line 16, in get_image - raise Exception(f"Input image should be either PIL Image or numpy array!") -Exception: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,648 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,649 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,649 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:44:12,650 - app.api.endpoints - ERROR - 인페인팅 처리 실패: Input image should be either PIL Image or numpy array! -2025-08-30 01:46:40,529 - uvicorn.error - INFO - Shutting down -2025-08-30 01:46:40,632 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:46:40,634 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:46:40,635 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:46:40,637 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:46:40,637 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:46:40,638 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:46:40,639 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:46:40,640 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:46:40,640 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:46:40,642 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:46:40,643 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:46:40,644 - uvicorn.error - INFO - Finished server process [75068] -2025-08-30 01:47:37,767 - uvicorn.error - INFO - Started server process [76545] -2025-08-30 01:47:37,768 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:47:37,770 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:47:37,770 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:47:37,770 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:47:37,771 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:47:37,771 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:47:37,771 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:47:37,772 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:47:37,772 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:47:37,774 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:47:41,002 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:47:45,041 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:47:45,042 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:47:45,042 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:47:45,043 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:47:45,044 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:47:46,843 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:47:46,844 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:47:46,844 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:47:46,845 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:47:46,847 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:47:46,912 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:47:46,913 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:47:46,913 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:47:49,955 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:47:49,956 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:47:49,956 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:47:49,957 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:47:49,957 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:47:49,958 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:47:49,958 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:47:51,198 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:47:51,199 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:47:51,200 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:47:51,201 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:47:51,202 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:47:51,203 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:47:51,205 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:47:53,178 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:47:53,179 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:47:53,180 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:47:53,180 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:48:06,174 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:48:06,175 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:48:06,176 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:48:06,176 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:48:06,177 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:48:06,177 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:48:06,178 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:48:18,635 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:48:18,636 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:48:18,637 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:48:18,637 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:48:18,639 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:48:18,640 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:48:18,640 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:48:18,641 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:48:18,641 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:48:18,642 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:48:18,642 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:48:18,642 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:48:18,643 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:48:18,643 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:48:18,644 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:48:18,644 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:48:18,645 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:49:34,547 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:49:34,550 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:49:34,551 - app.core.batch_manager - ERROR - Failed to process batch: name 'image_batch' is not defined -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 377, in process_inpaint_batch - results = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 138, in inpaint - inpainted_batch = self._model.model(image_batch, mask_batch) -NameError: name 'image_batch' is not defined -2025-08-30 01:49:34,554 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,554 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,555 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,556 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,563 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:49:34,564 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:49:34,565 - app.core.batch_manager - ERROR - Failed to process batch: name 'image_batch' is not defined -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/batch_manager.py", line 120, in _process_batch - results = await worker_manager.process_inpaint_batch(batch_data) - File "/home/ckh08045/work/inpaintServer/./app/core/worker_manager.py", line 377, in process_inpaint_batch - results = await session.model.inpaint( - File "/home/ckh08045/work/inpaintServer/./app/models/simple_lama.py", line 138, in inpaint - inpainted_batch = self._model.model(image_batch, mask_batch) -NameError: name 'image_batch' is not defined -2025-08-30 01:49:34,566 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,566 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,567 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:49:34,567 - app.api.endpoints - ERROR - 인페인팅 처리 실패: name 'image_batch' is not defined -2025-08-30 01:54:41,419 - uvicorn.error - INFO - Shutting down -2025-08-30 01:54:41,521 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 01:54:41,523 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 01:54:41,523 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 01:54:41,524 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 01:54:41,525 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 01:54:41,525 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 01:54:41,526 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 01:54:41,526 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 01:54:41,526 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 01:54:41,527 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:54:41,528 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 01:54:41,529 - uvicorn.error - INFO - Finished server process [76545] -2025-08-30 01:55:09,899 - uvicorn.error - INFO - Started server process [77869] -2025-08-30 01:55:09,900 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 01:55:09,901 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 01:55:09,901 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 01:55:09,902 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 01:55:09,902 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 01:55:09,902 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 01:55:09,902 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 01:55:09,903 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 01:55:09,903 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 01:55:09,905 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 01:55:13,106 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:55:17,237 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:55:17,239 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:55:17,240 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 01:55:17,241 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 01:55:17,241 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 01:55:18,996 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 01:55:18,997 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 01:55:18,997 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 01:55:18,998 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 01:55:18,999 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 01:55:19,063 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:55:19,064 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:55:19,064 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:21,872 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:21,873 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:55:21,874 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 01:55:21,874 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 01:55:21,875 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 01:55:21,875 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 01:55:21,875 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:23,132 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:23,133 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 01:55:23,134 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 01:55:23,134 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 01:55:23,136 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 01:55:23,137 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 01:55:23,139 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:55:25,141 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:55:25,141 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:55:25,142 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:55:25,142 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:38,144 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:55:38,145 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:55:38,146 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 01:55:38,146 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 01:55:38,147 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 01:55:38,148 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 01:55:38,148 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 01:55:50,692 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 01:55:50,693 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 01:55:50,694 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 01:55:50,694 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 01:55:50,696 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 01:55:50,697 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 01:55:50,697 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 01:55:50,698 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 01:55:50,698 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 01:55:50,698 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 01:55:50,699 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 01:55:50,699 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 01:55:50,699 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 01:55:50,700 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 01:55:50,700 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 01:55:50,701 - uvicorn.error - INFO - Application startup complete. -2025-08-30 01:55:50,702 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 01:56:15,715 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:56:15,881 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:56:21,625 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 5.908s (avg: 1.477s/image) -2025-08-30 01:56:21,626 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 01:56:24,783 - app.core.batch_manager - INFO - Creating a new batch with 2 jobs. -2025-08-30 01:56:24,995 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 2개 이미지 인페인팅 수행 -2025-08-30 01:56:39,252 - app.core.worker_manager - INFO - 'simple-lama' batch of 2 processed in 14.460s (avg: 7.230s/image) -2025-08-30 01:56:39,253 - app.core.batch_manager - INFO - Successfully processed batch of 2 jobs. -2025-08-30 01:56:39,367 - app.core.batch_manager - INFO - Creating a new batch with 2 jobs. -2025-08-30 01:56:39,469 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 2개 이미지 인페인팅 수행 -2025-08-30 01:56:40,764 - app.core.worker_manager - INFO - 'simple-lama' batch of 2 processed in 1.396s (avg: 0.698s/image) -2025-08-30 01:56:40,765 - app.core.batch_manager - INFO - Successfully processed batch of 2 jobs. -2025-08-30 01:57:35,001 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:57:35,213 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:57:37,476 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.472s (avg: 0.618s/image) -2025-08-30 01:57:37,480 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 01:57:37,511 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:57:37,735 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:57:39,686 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.173s (avg: 0.543s/image) -2025-08-30 01:57:39,687 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 01:57:47,368 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:57:47,620 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:57:49,769 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.399s (avg: 0.600s/image) -2025-08-30 01:57:49,770 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 01:57:49,800 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 01:57:50,022 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 01:57:51,985 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.184s (avg: 0.546s/image) -2025-08-30 01:57:51,986 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:00:41,334 - uvicorn.error - INFO - Shutting down -2025-08-30 02:00:41,437 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 02:00:41,438 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 02:00:41,439 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 02:00:41,440 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 02:00:41,440 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 02:00:41,440 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 02:00:41,442 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 02:00:41,442 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 02:00:41,442 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 02:00:41,443 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 02:00:41,444 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 02:00:41,444 - uvicorn.error - INFO - Finished server process [77869] -2025-08-30 02:05:03,503 - uvicorn.error - INFO - Started server process [80039] -2025-08-30 02:05:03,504 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 02:05:03,505 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 02:05:03,505 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 02:05:03,505 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 02:05:03,506 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 02:05:03,506 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 02:05:03,506 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 02:05:03,506 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 02:05:03,507 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 02:05:03,508 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 02:05:06,750 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 02:05:06,752 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 02:05:11,058 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 02:05:11,059 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 02:05:11,060 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 02:05:12,781 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 02:05:12,781 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 02:05:12,783 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 02:05:15,866 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-08-30 02:05:15,868 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 02:05:18,967 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-08-30 02:05:18,970 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 02:05:18,975 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 02:05:19,074 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 02:05:19,075 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 02:05:19,075 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 02:05:19,076 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:22,203 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:22,204 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 02:05:22,204 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 02:05:22,204 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 02:05:22,205 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:23,455 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:23,456 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 02:05:23,456 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 02:05:26,546 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.5%) -2025-08-30 02:05:26,548 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 02:05:29,649 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.5%) -2025-08-30 02:05:29,655 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 02:05:29,657 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 02:05:29,665 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 02:05:29,666 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 02:05:31,788 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 02:05:31,788 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 02:05:31,789 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 02:05:31,789 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:44,832 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 02:05:44,833 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 02:05:44,834 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 02:05:44,834 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 02:05:44,835 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 02:05:44,835 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 02:05:44,836 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:05:57,362 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 02:05:57,363 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 02:05:57,364 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 02:06:00,471 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (30.9%) -2025-08-30 02:06:00,474 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 02:06:03,606 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (30.9%) -2025-08-30 02:06:03,614 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 02:06:03,614 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 02:06:03,615 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 02:06:03,616 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 02:06:03,617 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 02:06:03,617 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 02:06:03,618 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 02:06:03,618 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 02:06:03,618 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 02:06:03,619 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 02:06:03,620 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 02:06:06,738 - uvicorn.error - INFO - Application startup complete. -2025-08-30 02:06:06,749 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 02:06:15,807 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:15,968 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:21,923 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 6.115s (avg: 1.529s/image) -2025-08-30 02:06:21,924 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:21,954 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:22,177 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:35,717 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 13.762s (avg: 3.440s/image) -2025-08-30 02:06:35,718 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:40,055 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:40,326 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:42,280 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.223s (avg: 0.556s/image) -2025-08-30 02:06:42,281 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:42,312 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:42,534 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:44,497 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.184s (avg: 0.546s/image) -2025-08-30 02:06:44,498 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:48,023 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:48,279 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:50,618 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.595s (avg: 0.649s/image) -2025-08-30 02:06:50,619 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:50,649 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:50,871 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:06:52,820 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.170s (avg: 0.542s/image) -2025-08-30 02:06:52,821 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:06:58,157 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:06:58,403 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:07:00,898 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.740s (avg: 0.685s/image) -2025-08-30 02:07:00,899 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:07:00,929 - app.core.batch_manager - INFO - Creating a new batch with 4 jobs. -2025-08-30 02:07:01,153 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 4개 이미지 인페인팅 수행 -2025-08-30 02:07:03,109 - app.core.worker_manager - INFO - 'simple-lama' batch of 4 processed in 2.179s (avg: 0.545s/image) -2025-08-30 02:07:03,109 - app.core.batch_manager - INFO - Successfully processed batch of 4 jobs. -2025-08-30 02:09:36,641 - uvicorn.error - INFO - Shutting down -2025-08-30 02:09:36,746 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 02:09:36,747 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 02:09:36,748 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 02:09:36,748 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 02:09:36,749 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 02:09:36,749 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 02:09:36,750 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 02:09:36,751 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 02:09:36,751 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 02:09:36,752 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 02:09:36,752 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 02:09:36,753 - uvicorn.error - INFO - Finished server process [80039] -2025-08-30 02:10:05,479 - uvicorn.error - INFO - Started server process [81535] -2025-08-30 02:10:05,500 - uvicorn.error - INFO - Waiting for application startup. -2025-08-30 02:10:05,518 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-30 02:10:05,519 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-30 02:10:05,520 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-30 02:10:05,527 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-30 02:10:05,529 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-30 02:10:05,529 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-30 02:10:05,530 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-30 02:10:05,531 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-30 02:10:05,535 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-30 02:10:09,061 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-30 02:10:09,063 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 02:10:13,365 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 02:10:13,366 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 02:10:13,367 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-30 02:10:15,170 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-30 02:10:15,171 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-30 02:10:15,173 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-30 02:10:18,257 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.5%) -2025-08-30 02:10:18,260 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-30 02:10:21,351 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.5%) -2025-08-30 02:10:21,354 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-30 02:10:21,360 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-30 02:10:21,463 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-30 02:10:21,463 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 02:10:21,464 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 02:10:21,464 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:24,696 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:24,697 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 02:10:24,697 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-30 02:10:24,698 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-30 02:10:24,698 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:25,896 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:25,897 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-30 02:10:25,897 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-30 02:10:28,989 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.4%) -2025-08-30 02:10:28,992 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-30 02:10:32,102 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.4%) -2025-08-30 02:10:32,109 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-30 02:10:32,111 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-30 02:10:32,118 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-30 02:10:32,120 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 02:10:34,236 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 02:10:34,236 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 02:10:34,237 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 02:10:34,237 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:47,102 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 02:10:47,103 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 02:10:47,103 - app.models.rembg_model - INFO - Loading REMBG model (birefnet-general-lite)... -2025-08-30 02:10:47,104 - app.models.rembg_model - INFO - rembg 모듈 임포트 성공 (세션 생성은 지연 로딩) -2025-08-30 02:10:47,104 - app.models.rembg_model - INFO - 🔧 rembg 새 세션 생성 필요: birefnet-general-lite_cuda_True -2025-08-30 02:10:47,105 - app.models.rembg_model - WARNING - rembg.sessions import 실패, 기본 방식 사용 -2025-08-30 02:10:47,105 - app.models.rembg_model - INFO - rembg 세션 생성 providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-30 02:10:59,703 - app.models.rembg_model - INFO - ✅ rembg 'birefnet-general-lite' GPU 가속로 동작 (providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']) -2025-08-30 02:10:59,704 - app.models.rembg_model - INFO - REMBG model (birefnet-general-lite) loaded successfully -2025-08-30 02:10:59,705 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-30 02:11:02,815 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (31.0%) -2025-08-30 02:11:02,817 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-30 02:11:05,936 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (31.0%) -2025-08-30 02:11:05,944 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-30 02:11:05,945 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-30 02:11:05,946 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-30 02:11:05,949 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-30 02:11:05,949 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-30 02:11:05,950 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-30 02:11:05,951 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-30 02:11:05,951 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-30 02:11:05,952 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-30 02:11:05,954 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 02:11:05,955 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-30 02:11:09,078 - uvicorn.error - INFO - Application startup complete. -2025-08-30 02:11:09,089 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-30 10:43:07,827 - uvicorn.error - INFO - Shutting down -2025-08-30 10:43:07,929 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-30 10:43:07,931 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-30 10:43:07,931 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-30 10:43:07,932 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-30 10:43:07,932 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-30 10:43:07,933 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-30 10:43:07,933 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-30 10:43:07,934 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-30 10:43:07,934 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-30 10:43:07,936 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-30 10:43:07,936 - uvicorn.error - INFO - Application shutdown complete. -2025-08-30 10:43:07,937 - uvicorn.error - INFO - Finished server process [81535] -2025-08-31 09:29:48,156 - uvicorn.error - INFO - Started server process [312108] -2025-08-31 09:29:48,157 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 09:29:48,158 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 09:29:48,159 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 09:29:48,159 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 09:29:48,159 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 09:29:48,160 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 09:29:48,160 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 09:29:48,160 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 09:29:48,161 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 09:29:48,163 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 09:29:48,204 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 09:29:48,205 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 09:29:52,456 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 09:29:52,456 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 09:29:52,457 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 09:29:54,119 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 09:29:54,120 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 09:29:54,120 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 09:29:57,199 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.6%) -2025-08-31 09:29:57,201 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 09:30:00,297 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.6%) -2025-08-31 09:30:00,304 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 09:30:00,306 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 09:30:00,409 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 09:30:00,410 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 09:30:00,410 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 09:30:00,410 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 09:30:03,550 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 09:30:03,551 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 09:30:03,552 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 09:30:03,552 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 09:30:03,553 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 09:30:04,767 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 09:30:04,768 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 09:30:04,768 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 09:30:07,852 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.5%) -2025-08-31 09:30:07,855 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 09:30:10,958 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.5%) -2025-08-31 09:30:10,965 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 09:30:10,966 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 09:30:10,981 - app.core.session_pool - ERROR - Failed to create session rembg_0: __init__() got an unexpected keyword argument 'model_name' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 144, in _load_model - model = RembgProcessor( -TypeError: __init__() got an unexpected keyword argument 'model_name' -2025-08-31 09:30:10,986 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 09:30:10,986 - app.core.session_pool - ERROR - Failed to create session rembg_1: __init__() got an unexpected keyword argument 'model_name' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/./app/core/session_pool.py", line 144, in _load_model - model = RembgProcessor( -TypeError: __init__() got an unexpected keyword argument 'model_name' -2025-08-31 09:30:10,988 - app.core.session_pool - ERROR - Failed to create initial session rembg_0: __init__() got an unexpected keyword argument 'model_name' -2025-08-31 09:30:10,988 - app.core.session_pool - ERROR - Failed to create initial session rembg_1: __init__() got an unexpected keyword argument 'model_name' -2025-08-31 09:30:10,989 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 09:30:10,989 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 09:30:10,990 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 09:30:10,992 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 09:30:10,992 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 09:30:10,993 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 09:30:10,993 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 09:30:10,993 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 09:30:10,994 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 09:30:10,995 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 09:30:10,996 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 09:30:10,997 - uvicorn.error - INFO - Application startup complete. -2025-08-31 09:30:10,999 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 10:33:15,449 - uvicorn.error - INFO - Shutting down -2025-08-31 10:33:15,553 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 10:33:15,554 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 10:33:15,555 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 10:33:15,555 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 10:33:15,556 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 10:33:15,556 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 10:33:15,557 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 10:33:15,557 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 10:33:15,558 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 10:33:15,558 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 10:33:15,559 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 10:33:15,559 - uvicorn.error - INFO - Finished server process [312108] -2025-08-31 10:33:48,778 - uvicorn.error - INFO - Started server process [328148] -2025-08-31 10:33:48,779 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 10:33:48,780 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 10:33:48,780 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 10:33:48,781 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 10:33:48,781 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 10:33:48,781 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 10:33:48,782 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 10:33:48,782 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 10:33:48,783 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 10:33:48,785 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 10:33:48,827 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 10:33:48,828 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 10:33:53,066 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 10:33:53,066 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 10:33:53,067 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 10:33:54,744 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 10:33:54,745 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 10:33:54,746 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 10:33:57,836 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.8%) -2025-08-31 10:33:57,838 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 10:34:00,939 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.8%) -2025-08-31 10:34:00,946 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 10:34:00,948 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 10:34:01,044 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 10:34:01,045 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 10:34:01,045 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 10:34:01,046 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:04,223 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:04,224 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 10:34:04,224 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 10:34:04,224 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 10:34:04,225 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:05,490 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:05,491 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 10:34:05,492 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 10:34:08,586 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.6%) -2025-08-31 10:34:08,588 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 10:34:11,708 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.6%) -2025-08-31 10:34:11,714 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 10:34:11,716 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 10:34:11,732 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 10:34:11,733 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 10:34:11,734 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:11,735 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:16,976 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 10:34:16,977 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 10:34:16,978 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:16,978 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 10:34:19,345 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 10:34:19,346 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 10:34:22,459 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (31.0%) -2025-08-31 10:34:22,462 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 10:34:25,602 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (31.0%) -2025-08-31 10:34:25,609 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 10:34:25,611 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 10:34:25,611 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 10:34:25,613 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 10:34:25,613 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 10:34:25,614 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 10:34:25,614 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 10:34:25,615 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 10:34:25,616 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 10:34:25,616 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 10:34:25,617 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 10:34:25,618 - uvicorn.error - INFO - Application startup complete. -2025-08-31 10:34:25,621 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 11:03:47,036 - uvicorn.error - INFO - Shutting down -2025-08-31 11:03:47,138 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 11:03:47,139 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 11:03:47,139 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 11:03:47,140 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 11:03:47,140 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 11:03:47,141 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 11:03:47,141 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 11:03:47,142 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 11:03:47,142 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 11:03:47,143 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 11:03:47,143 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 11:03:47,144 - uvicorn.error - INFO - Finished server process [328148] -2025-08-31 11:17:07,178 - uvicorn.error - INFO - Started server process [336024] -2025-08-31 11:17:07,178 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 11:17:07,179 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 11:17:07,180 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 11:17:07,180 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 11:17:07,181 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 11:17:07,181 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 11:17:07,181 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 11:17:07,182 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 11:17:07,182 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 11:17:07,184 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 11:17:07,226 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 11:17:07,226 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 11:17:11,513 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 11:17:11,513 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 11:17:11,514 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 11:17:13,200 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 11:17:13,201 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 11:17:13,202 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 11:17:16,282 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-08-31 11:17:16,286 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 11:17:19,387 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-08-31 11:17:19,392 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 11:17:19,393 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 11:17:19,482 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 11:17:19,482 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 11:17:19,483 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 11:17:19,483 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:22,685 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:22,686 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 11:17:22,686 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 11:17:22,687 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 11:17:22,687 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:23,922 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:23,923 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 11:17:23,924 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 11:17:27,012 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.9%) -2025-08-31 11:17:27,015 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 11:17:30,128 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.9%) -2025-08-31 11:17:30,135 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 11:17:30,137 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 11:17:30,144 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 11:17:30,146 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 11:17:30,147 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:30,148 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:35,373 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 11:17:35,374 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 11:17:35,375 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:35,375 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:17:37,844 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 11:17:37,845 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 11:17:40,968 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (27.9%) -2025-08-31 11:17:40,971 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 11:17:44,123 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (28.0%) -2025-08-31 11:17:44,129 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 11:17:44,131 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 11:17:44,132 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 11:17:44,134 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 11:17:44,139 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 11:17:44,140 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 11:17:44,141 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 11:17:44,142 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 11:17:44,143 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 11:17:44,145 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 11:17:44,146 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 11:17:44,148 - uvicorn.error - INFO - Application startup complete. -2025-08-31 11:17:44,151 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 11:23:40,786 - uvicorn.error - INFO - Started server process [337628] -2025-08-31 11:23:40,787 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 11:23:40,788 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 11:23:40,789 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 11:23:40,789 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 11:23:40,789 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 11:23:40,790 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 11:23:40,790 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 11:23:40,790 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 11:23:40,791 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 11:23:40,793 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 11:23:40,835 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 11:23:40,836 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 11:23:45,193 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 11:23:45,193 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 11:23:45,194 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 11:23:46,870 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 11:23:46,871 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 11:23:46,872 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 11:23:49,951 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.3%) -2025-08-31 11:23:49,953 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 11:23:53,053 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.3%) -2025-08-31 11:23:53,061 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 11:23:53,063 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 11:23:53,161 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 11:23:53,162 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 11:23:53,162 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 11:23:53,163 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:23:56,281 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:23:56,282 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 11:23:56,283 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 11:23:56,283 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 11:23:56,283 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:23:57,526 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:23:57,527 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 11:23:57,527 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 11:24:00,615 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-08-31 11:24:00,618 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 11:24:03,730 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-08-31 11:24:03,737 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 11:24:03,738 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 11:24:03,753 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 11:24:03,755 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 11:24:03,756 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:24:03,757 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:24:04,887 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 11:24:04,888 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 11:24:04,889 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:24:04,889 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 11:24:05,881 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 11:24:05,882 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 11:24:08,973 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (26.4%) -2025-08-31 11:24:08,976 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 11:24:12,088 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (26.4%) -2025-08-31 11:24:12,094 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 11:24:12,095 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 11:24:12,096 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 11:24:12,098 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 11:24:12,098 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 11:24:12,099 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 11:24:12,100 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 11:24:12,101 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 11:24:12,101 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 11:24:12,103 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 11:24:12,104 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 11:24:12,105 - uvicorn.error - INFO - Application startup complete. -2025-08-31 11:24:12,109 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:01:25,651 - app.models.rembg_model - ERROR - 배경 제거 중 오류 발생: module 'torchvision.transforms.functional' has no attribute 'interpolate' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 73, in remove_background - mask = postprocess_for_bria_rmbg(result_tensor, original_size) - File "/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py", line 262, in postprocess_for_bria_rmbg - result = F.interpolate(result_tensor, size=original_size, mode='bilinear') -AttributeError: module 'torchvision.transforms.functional' has no attribute 'interpolate' -2025-08-31 12:01:25,654 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 76.739s -2025-08-31 12:03:45,071 - uvicorn.error - INFO - Shutting down -2025-08-31 12:03:45,173 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:03:45,174 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:03:45,174 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:03:45,175 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:03:45,176 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:03:45,176 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:03:45,177 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:03:45,177 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:03:45,177 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:03:45,178 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:03:45,179 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:03:45,179 - uvicorn.error - INFO - Finished server process [337628] -2025-08-31 12:13:58,800 - uvicorn.error - INFO - Started server process [346982] -2025-08-31 12:13:58,801 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:13:58,802 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:13:58,803 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:13:58,803 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:13:58,804 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:13:58,804 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:13:58,804 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:13:58,805 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:13:58,805 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:13:58,807 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:14:02,119 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:14:02,120 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:14:07,152 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:14:07,153 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:14:07,154 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:14:08,830 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:14:08,831 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:14:08,833 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:14:11,912 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-08-31 12:14:11,915 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:14:15,016 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-08-31 12:14:15,019 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:14:15,025 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:14:15,119 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:14:15,120 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:14:15,121 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:14:15,121 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:18,313 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:18,313 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:14:18,314 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:14:18,314 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:14:18,314 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:19,578 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:19,579 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:14:19,580 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:14:22,667 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-08-31 12:14:22,670 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:14:25,778 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.1%) -2025-08-31 12:14:25,787 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:14:25,789 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:14:25,803 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:14:25,805 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:14:25,806 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:25,806 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:26,945 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:14:26,946 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:14:26,946 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:26,946 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:14:27,948 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:14:27,949 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:14:31,046 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-08-31 12:14:31,049 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:14:34,168 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-08-31 12:14:34,176 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:14:34,177 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:14:34,178 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:14:34,180 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:14:34,181 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:14:34,181 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:14:34,182 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:14:34,183 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:14:34,183 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:14:34,185 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:14:34,186 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:14:34,188 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:14:34,193 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:16:55,897 - app.models.rembg_model - ERROR - 배경 제거 중 오류 발생: name 'torch' is not defined -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 65, in remove_background - preprocessed_image = preprocess_for_bria_rmbg(image) - File "/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py", line 240, in preprocess_for_bria_rmbg - im_tensor = torch.tensor(im_np, dtype=torch.float32).permute(2, 0, 1).unsqueeze(0) -NameError: name 'torch' is not defined -2025-08-31 12:16:55,900 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.028s -2025-08-31 12:17:41,338 - uvicorn.error - INFO - Shutting down -2025-08-31 12:17:41,442 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:17:41,445 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:17:41,446 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:17:41,447 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:17:41,448 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:17:41,449 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:17:41,450 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:17:41,451 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:17:41,451 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:17:41,453 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:17:41,454 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:17:41,455 - uvicorn.error - INFO - Finished server process [346982] -2025-08-31 12:17:46,587 - uvicorn.error - INFO - Started server process [348185] -2025-08-31 12:17:46,588 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:17:46,589 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:17:46,590 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:17:46,590 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:17:46,591 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:17:46,591 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:17:46,591 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:17:46,592 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:17:46,592 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:17:46,594 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:17:49,851 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:17:49,852 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:17:54,108 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:17:54,111 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:17:54,113 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:17:55,811 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:17:55,812 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:17:55,814 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:17:58,897 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.6%) -2025-08-31 12:17:58,900 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:18:02,000 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.6%) -2025-08-31 12:18:02,004 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:18:02,010 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:18:02,108 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:18:02,109 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:18:02,110 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:18:02,110 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:05,179 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:05,180 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:18:05,181 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:18:05,181 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:18:05,182 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:06,440 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:06,441 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:18:06,442 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:18:09,530 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.4%) -2025-08-31 12:18:09,533 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:18:12,644 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.4%) -2025-08-31 12:18:12,651 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:18:12,654 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:18:12,663 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:18:12,665 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:18:12,667 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:12,668 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:13,769 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:18:13,770 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:18:13,771 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:13,771 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:18:14,755 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:18:14,756 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:18:17,849 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-08-31 12:18:17,852 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:18:20,973 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-08-31 12:18:20,980 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:18:20,982 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:18:20,983 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:18:20,986 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:18:20,986 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:18:20,988 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:18:20,989 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:18:20,989 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:18:20,990 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:18:20,992 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:18:20,994 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:18:20,996 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:18:21,000 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:25:57,723 - app.models.rembg_model - ERROR - 배경 제거 중 오류 발생: name 'torch' is not defined -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 65, in remove_background - preprocessed_image = preprocess_for_bria_rmbg(image) - File "/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py", line 240, in preprocess_for_bria_rmbg - im_tensor = torch.tensor(im_np, dtype=torch.float32).permute(2, 0, 1).unsqueeze(0) -NameError: name 'torch' is not defined -2025-08-31 12:25:57,726 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.037s -2025-08-31 12:26:17,876 - uvicorn.error - INFO - Shutting down -2025-08-31 12:26:17,979 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:26:17,980 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:26:17,980 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:26:17,981 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:26:17,981 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:26:17,982 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:26:17,983 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:26:17,983 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:26:17,983 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:26:17,984 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:26:17,985 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:26:17,985 - uvicorn.error - INFO - Finished server process [348185] -2025-08-31 12:26:37,807 - uvicorn.error - INFO - Started server process [350624] -2025-08-31 12:26:37,808 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:26:37,809 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:26:37,809 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:26:37,810 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:26:37,810 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:26:37,810 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:26:37,811 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:26:37,811 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:26:37,812 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:26:37,814 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:26:41,141 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:26:41,143 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:26:45,166 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:26:45,167 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:26:45,168 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:26:46,849 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:26:46,850 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:26:46,852 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:26:49,937 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.9%) -2025-08-31 12:26:49,940 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:26:53,040 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.9%) -2025-08-31 12:26:53,044 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:26:53,050 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:26:53,147 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:26:53,148 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:26:53,148 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:26:53,149 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:26:56,285 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:26:56,286 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:26:56,286 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:26:56,287 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:26:56,287 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:26:57,540 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:26:57,541 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:26:57,541 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:27:00,640 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:27:00,642 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:27:03,745 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:27:03,752 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:27:03,754 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:27:03,761 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:27:03,763 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:27:03,764 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:27:03,765 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:27:04,883 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:27:04,884 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:27:04,884 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:27:04,885 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:27:05,863 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:27:05,864 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:27:08,963 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:27:08,965 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:27:12,091 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:27:12,098 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:27:12,099 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:27:12,100 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:27:12,102 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:27:12,102 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:27:12,103 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:27:12,104 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:27:12,105 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:27:12,105 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:27:12,107 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:27:12,109 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:27:12,110 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:27:12,114 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:30:48,836 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:30:51,939 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:30:52,042 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:30:59,667 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 4.624s -2025-08-31 12:30:59,669 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 4.624s (avg: 4.624s/image) -2025-08-31 12:30:59,670 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:31:26,705 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:31:29,811 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:31:29,912 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:31:46,348 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 13.428s -2025-08-31 12:31:46,350 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 13.428s (avg: 13.428s/image) -2025-08-31 12:31:46,351 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:31:58,355 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:32:01,468 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:32:01,570 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:32:06,125 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.541s -2025-08-31 12:32:06,127 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.541s (avg: 1.541s/image) -2025-08-31 12:32:06,129 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:32:14,466 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:32:17,583 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:32:17,683 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:32:21,863 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.168s -2025-08-31 12:32:21,865 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.168s (avg: 1.168s/image) -2025-08-31 12:32:21,866 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:32:32,334 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:32:35,445 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:32:35,554 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:32:39,647 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.092s -2025-08-31 12:32:39,649 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.092s (avg: 1.092s/image) -2025-08-31 12:32:39,652 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:32:47,121 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:32:50,233 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:32:50,484 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:32:54,611 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.268s -2025-08-31 12:32:54,613 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.268s (avg: 1.268s/image) -2025-08-31 12:32:54,614 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:33:01,530 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:33:04,639 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:33:04,736 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:33:08,982 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.235s -2025-08-31 12:33:08,984 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.235s (avg: 1.235s/image) -2025-08-31 12:33:08,985 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:37:48,852 - uvicorn.error - INFO - Shutting down -2025-08-31 12:37:48,954 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:37:48,955 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:37:48,956 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:37:48,956 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:37:48,957 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:37:48,957 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:37:48,958 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:37:48,959 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:37:48,959 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:37:48,960 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:37:48,960 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:37:48,961 - uvicorn.error - INFO - Finished server process [350624] -2025-08-31 12:38:17,823 - uvicorn.error - INFO - Started server process [353601] -2025-08-31 12:38:17,824 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:38:17,825 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:38:17,826 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:38:17,826 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:38:17,826 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:38:17,827 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:38:17,827 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:38:17,827 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:38:17,828 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:38:17,830 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:38:21,403 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:38:21,405 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:38:25,860 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:38:25,861 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:38:25,862 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:38:27,618 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:38:27,619 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:38:27,621 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:38:30,708 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.4%) -2025-08-31 12:38:30,711 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:38:33,809 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.9%) -2025-08-31 12:38:33,812 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:38:33,818 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:38:33,916 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:38:33,917 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:38:33,917 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:38:33,918 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:37,052 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:37,053 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:38:37,054 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:38:37,054 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:38:37,054 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:38,403 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:38,404 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:38:38,405 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:38:41,501 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:38:41,503 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:38:44,615 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:38:44,621 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:38:44,623 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:38:44,630 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:38:44,632 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:38:44,633 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:44,634 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:45,783 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:38:45,784 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:38:45,784 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:45,785 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:38:46,803 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:38:46,804 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:38:49,905 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:38:49,908 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:38:53,036 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:38:53,043 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:38:53,043 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:38:53,044 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:38:53,046 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:38:53,047 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:38:53,048 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:38:53,049 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:38:53,049 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:38:53,050 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:38:53,051 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:38:53,052 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:38:53,054 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:38:53,058 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:41:00,666 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:41:03,767 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:41:03,862 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:41:11,702 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 4.818s -2025-08-31 12:41:11,704 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 4.818s (avg: 4.818s/image) -2025-08-31 12:41:11,705 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:41:39,976 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:41:43,092 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:41:43,192 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:41:59,610 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 13.405s -2025-08-31 12:41:59,612 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 13.405s (avg: 13.405s/image) -2025-08-31 12:41:59,613 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:42:11,680 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:42:14,792 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:42:14,895 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:42:19,281 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.374s -2025-08-31 12:42:19,284 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.374s (avg: 1.374s/image) -2025-08-31 12:42:19,286 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:42:28,173 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:42:31,285 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:42:31,400 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:42:35,759 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.361s -2025-08-31 12:42:35,760 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.361s (avg: 1.361s/image) -2025-08-31 12:42:35,761 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:42:45,252 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:42:48,364 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:42:48,485 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:42:52,693 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.216s -2025-08-31 12:42:52,695 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.216s (avg: 1.216s/image) -2025-08-31 12:42:52,697 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:43:00,071 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:43:03,185 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:43:03,277 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:43:07,356 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.050s -2025-08-31 12:43:07,358 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.050s (avg: 1.050s/image) -2025-08-31 12:43:07,360 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:43:14,425 - app.core.batch_manager - INFO - Creating a new batch with 1 jobs. -2025-08-31 12:43:17,548 - app.core.worker_manager - INFO - 🧠[simple_lama] Batch Inference Start (Size: 1). VRAM: 0.0 GB -2025-08-31 12:43:17,649 - app.models.simple_lama - INFO - 실제 SimpleLama 모델로 1개 이미지 인페인팅 수행 -2025-08-31 12:43:21,763 - app.core.worker_manager - INFO - ✅[simple_lama] Batch Inference End (Size: 1). VRAM: 0.0 GB | Duration: 1.103s -2025-08-31 12:43:21,765 - app.core.worker_manager - INFO - 'simple-lama' batch of 1 processed in 1.103s (avg: 1.103s/image) -2025-08-31 12:43:21,767 - app.core.batch_manager - INFO - Successfully processed batch of 1 jobs. -2025-08-31 12:45:13,342 - app.models.rembg_model - ERROR - 배경 제거 중 오류 발생: name 'torch' is not defined -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/./app/models/rembg_model.py", line 65, in remove_background - preprocessed_image = preprocess_for_bria_rmbg(image) - File "/home/ckh08045/work/inpaintServer/./app/utils/image_utils.py", line 240, in preprocess_for_bria_rmbg - im_tensor = torch.tensor(im_np, dtype=torch.float32).permute(2, 0, 1).unsqueeze(0) -NameError: name 'torch' is not defined -2025-08-31 12:45:13,346 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.043s -2025-08-31 12:46:18,161 - uvicorn.error - INFO - Shutting down -2025-08-31 12:46:18,264 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:46:18,266 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:46:18,267 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:46:18,268 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:46:18,269 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:46:18,269 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:46:18,271 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:46:18,271 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:46:18,272 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:46:18,273 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:46:18,274 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:46:18,275 - uvicorn.error - INFO - Finished server process [353601] -2025-08-31 12:46:23,472 - uvicorn.error - INFO - Started server process [356008] -2025-08-31 12:46:23,473 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:46:23,475 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:46:23,475 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:46:23,476 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:46:23,476 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:46:23,476 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:46:23,477 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:46:23,477 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:46:23,478 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:46:23,480 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:46:26,836 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:46:26,838 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:46:32,416 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:46:32,417 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:46:32,417 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:46:34,033 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:46:34,034 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:46:34,036 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:46:37,120 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.0%) -2025-08-31 12:46:37,123 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:46:40,227 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.9%) -2025-08-31 12:46:40,230 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:46:40,236 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:46:40,329 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:46:40,330 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:46:40,331 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:46:40,331 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:43,427 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:43,428 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:46:43,429 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:46:43,429 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:46:43,430 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:44,643 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:44,644 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:46:44,645 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:46:47,742 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-08-31 12:46:47,744 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:46:50,869 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-08-31 12:46:50,874 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:46:50,875 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:46:50,879 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:46:50,880 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:46:50,880 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:50,881 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:51,994 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:46:51,995 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:46:51,996 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:51,996 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:46:52,966 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:46:52,967 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:46:56,074 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.5%) -2025-08-31 12:46:56,077 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:46:59,260 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.0%) -2025-08-31 12:46:59,266 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:46:59,268 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:46:59,269 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:46:59,271 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:46:59,272 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:46:59,273 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:46:59,274 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:46:59,275 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:46:59,277 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:46:59,279 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:46:59,282 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:46:59,286 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:46:59,298 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:47:02,030 - uvicorn.error - INFO - Started server process [356526] -2025-08-31 12:47:02,031 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:47:02,033 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:47:02,033 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:47:02,033 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:47:02,034 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:47:02,034 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:47:02,034 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:47:02,035 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:47:02,035 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:47:02,037 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:47:05,444 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:47:05,446 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:47:10,020 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:47:10,022 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:47:10,024 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:47:11,761 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:47:11,762 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:47:11,764 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:47:14,831 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.7%) -2025-08-31 12:47:14,833 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:47:17,917 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (27.7%) -2025-08-31 12:47:17,919 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:47:17,922 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:47:18,006 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:47:18,006 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:47:18,007 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:47:18,007 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:21,354 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:21,355 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:47:21,355 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:47:21,356 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:47:21,356 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:22,674 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:22,675 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:47:22,676 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:47:25,750 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (48.8%) -2025-08-31 12:47:25,753 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:47:28,827 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (42.2%) -2025-08-31 12:47:28,833 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:47:28,834 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:47:28,839 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:47:28,840 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:47:28,841 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:28,841 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:29,926 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:47:29,927 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:47:29,928 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:29,929 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:47:31,174 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:47:31,176 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:47:34,260 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (42.9%) -2025-08-31 12:47:34,262 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:47:37,338 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (41.0%) -2025-08-31 12:47:37,344 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:47:37,344 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:47:37,345 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:47:37,346 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:47:37,347 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:47:37,347 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:47:37,348 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:47:37,348 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:47:37,348 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:47:37,349 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:47:37,350 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:47:37,351 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:47:37,353 - uvicorn.error - ERROR - [Errno 98] error while attempting to bind on address ('0.0.0.0', 8008): address already in use -2025-08-31 12:47:37,354 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:47:37,355 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:47:37,355 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:47:37,356 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:47:37,356 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:47:37,357 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:47:37,357 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:47:37,358 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:47:37,358 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:47:37,359 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:47:37,359 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:48:09,478 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 47.892s -2025-08-31 12:48:12,986 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.238s -2025-08-31 12:48:13,318 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.210s -2025-08-31 12:48:13,645 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.206s -2025-08-31 12:48:13,974 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.206s -2025-08-31 12:50:26,319 - uvicorn.error - INFO - Shutting down -2025-08-31 12:50:26,421 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:50:26,423 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:50:26,424 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:50:26,426 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:50:26,427 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:50:26,427 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:50:26,428 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:50:26,429 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:50:26,429 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:50:26,431 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:50:26,432 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:50:26,433 - uvicorn.error - INFO - Finished server process [356008] -2025-08-31 12:50:31,567 - uvicorn.error - INFO - Started server process [358152] -2025-08-31 12:50:31,568 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:50:31,569 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:50:31,570 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:50:31,570 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:50:31,570 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:50:31,571 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:50:31,571 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:50:31,571 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:50:31,572 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:50:31,574 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:50:34,934 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:50:34,935 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:50:39,194 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:50:39,196 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:50:39,197 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:50:40,880 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:50:40,881 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:50:40,883 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:50:43,969 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:50:43,972 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:50:47,078 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.6%) -2025-08-31 12:50:47,082 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:50:47,087 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:50:47,182 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:50:47,183 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:50:47,183 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:50:47,184 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:50,352 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:50,353 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:50:50,353 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:50:50,354 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:50:50,354 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:51,601 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:51,602 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:50:51,603 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:50:54,699 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-08-31 12:50:54,702 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:50:57,818 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-08-31 12:50:57,825 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:50:57,827 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:50:57,835 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:50:57,837 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:50:57,838 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:57,839 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:58,968 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:50:58,969 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:50:58,970 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:58,970 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:50:59,944 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:50:59,945 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:51:03,044 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.5%) -2025-08-31 12:51:03,047 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:51:06,171 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.5%) -2025-08-31 12:51:06,178 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:51:06,180 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:51:06,182 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:51:06,184 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:51:06,185 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:51:06,186 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:51:06,187 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:51:06,188 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:51:06,188 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:51:06,190 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:51:06,192 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:51:06,193 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:51:06,198 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:53:45,954 - uvicorn.error - INFO - Shutting down -2025-08-31 12:53:46,057 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:53:46,060 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:53:46,061 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:53:46,063 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:53:46,063 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:53:46,064 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:53:46,065 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:53:46,065 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:53:46,066 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:53:46,066 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:53:46,067 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:53:46,068 - uvicorn.error - INFO - Finished server process [358152] -2025-08-31 12:53:51,351 - uvicorn.error - INFO - Started server process [359376] -2025-08-31 12:53:51,352 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:53:51,354 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:53:51,354 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:53:51,355 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:53:51,355 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:53:51,355 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:53:51,356 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:53:51,356 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:53:51,357 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:53:51,359 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:53:54,874 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:53:54,876 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:53:59,042 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:53:59,043 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:53:59,044 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:54:00,851 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:54:00,852 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:54:00,854 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:54:03,945 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-08-31 12:54:03,947 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:54:07,057 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-08-31 12:54:07,061 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:54:07,067 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:54:07,166 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:54:07,167 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:54:07,167 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:54:07,168 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:10,382 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:10,389 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:54:10,390 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:54:10,390 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:54:10,391 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:11,626 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:11,627 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:54:11,628 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:54:14,729 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.3%) -2025-08-31 12:54:14,734 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:54:17,856 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.2%) -2025-08-31 12:54:17,862 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:54:17,864 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:54:17,872 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:54:17,875 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:54:17,876 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:17,877 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:18,993 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:54:18,994 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:54:18,995 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:18,995 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:54:19,948 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:54:19,949 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:54:23,050 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.6%) -2025-08-31 12:54:23,053 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:54:26,177 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.6%) -2025-08-31 12:54:26,184 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:54:26,185 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:54:26,186 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:54:26,188 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:54:26,189 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:54:26,190 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:54:26,191 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:54:26,192 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:54:26,193 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:54:26,194 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:54:26,196 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:54:26,198 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:54:26,203 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:54:34,460 - uvicorn.error - INFO - Shutting down -2025-08-31 12:54:34,563 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:54:34,564 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:54:34,564 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:54:34,565 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:54:34,565 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:54:34,566 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:54:34,566 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:54:34,567 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:54:34,568 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:54:34,568 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:54:34,569 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:54:34,569 - uvicorn.error - INFO - Finished server process [359376] -2025-08-31 12:54:54,357 - uvicorn.error - INFO - Started server process [360195] -2025-08-31 12:54:54,358 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 12:54:54,359 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 12:54:54,359 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 12:54:54,360 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 12:54:54,360 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 12:54:54,360 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 12:54:54,361 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 12:54:54,361 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 12:54:54,362 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 12:54:54,364 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 12:54:57,648 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 12:54:57,649 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:55:01,898 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:55:01,899 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:55:01,900 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 12:55:03,589 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 12:55:03,590 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 12:55:03,592 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 12:55:06,685 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.3%) -2025-08-31 12:55:06,687 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 12:55:09,794 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.3%) -2025-08-31 12:55:09,797 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 12:55:09,803 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 12:55:09,898 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 12:55:09,898 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:55:09,899 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:55:09,899 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:12,962 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:12,963 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:55:12,963 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 12:55:12,964 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 12:55:12,964 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:14,200 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:14,201 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 12:55:14,201 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 12:55:17,300 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:55:17,302 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 12:55:20,426 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 12:55:20,433 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 12:55:20,435 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 12:55:20,443 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 12:55:20,445 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:55:20,446 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:20,446 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:21,573 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:55:21,574 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 12:55:21,574 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:21,575 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 12:55:22,540 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 12:55:22,541 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 12:55:25,642 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-08-31 12:55:25,645 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 12:55:28,772 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-08-31 12:55:28,779 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 12:55:28,780 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 12:55:28,781 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 12:55:28,783 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 12:55:28,784 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 12:55:28,785 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 12:55:28,785 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 12:55:28,786 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 12:55:28,786 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 12:55:28,788 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:55:28,789 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 12:55:28,791 - uvicorn.error - INFO - Application startup complete. -2025-08-31 12:55:28,795 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 12:56:11,519 - app.api.endpoints - ERROR - 배경 제거 처리 실패: 'WorkerManager' object has no attribute 'stats_manager' -2025-08-31 12:57:04,026 - uvicorn.error - INFO - Shutting down -2025-08-31 12:57:04,132 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 12:57:04,134 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 12:57:04,136 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 12:57:04,137 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 12:57:04,138 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 12:57:04,139 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 12:57:04,140 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 12:57:04,141 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 12:57:04,141 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 12:57:04,142 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 12:57:04,144 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 12:57:04,145 - uvicorn.error - INFO - Finished server process [360195] -2025-08-31 14:37:21,689 - uvicorn.error - INFO - Started server process [385770] -2025-08-31 14:37:21,690 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 14:37:21,692 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 14:37:21,692 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 14:37:21,692 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 14:37:21,693 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 14:37:21,693 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 14:37:21,693 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 14:37:21,694 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 14:37:21,694 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 14:37:21,697 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 14:37:25,434 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 14:37:25,435 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:37:29,530 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:37:29,531 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:37:29,532 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:37:31,175 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:37:31,175 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:37:31,177 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 14:37:34,264 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.1%) -2025-08-31 14:37:34,267 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 14:37:37,369 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.1%) -2025-08-31 14:37:37,373 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 14:37:37,379 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 14:37:37,473 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 14:37:37,474 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:37:37,474 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:37:37,474 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:40,604 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:40,605 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:37:40,605 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:37:40,606 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:37:40,606 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:41,857 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:41,858 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:37:41,859 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 14:37:44,956 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 14:37:44,958 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 14:37:48,070 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 14:37:48,077 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 14:37:48,079 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 14:37:48,086 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 14:37:48,088 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:37:48,089 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:48,090 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:49,178 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:37:49,179 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:37:49,180 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:49,180 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:37:50,111 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:37:50,112 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 14:37:53,213 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-08-31 14:37:53,216 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 14:37:56,342 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-08-31 14:37:56,349 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 14:37:56,350 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 14:37:56,351 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 14:37:56,353 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 14:37:56,354 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 14:37:56,355 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 14:37:56,356 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 14:37:56,356 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 14:37:56,357 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 14:37:56,358 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:37:56,360 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 14:37:56,361 - uvicorn.error - INFO - Application startup complete. -2025-08-31 14:37:56,366 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 14:39:23,778 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 74.481s -2025-08-31 14:39:27,611 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.568s -2025-08-31 14:39:28,107 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.371s -2025-08-31 14:39:28,571 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.342s -2025-08-31 14:39:28,996 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.304s -2025-08-31 14:42:55,837 - uvicorn.error - INFO - Shutting down -2025-08-31 14:42:55,941 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 14:42:55,944 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 14:42:55,945 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 14:42:55,946 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 14:42:55,947 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 14:42:55,948 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 14:42:55,950 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 14:42:55,950 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 14:42:55,951 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 14:42:55,952 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:42:55,954 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 14:42:55,955 - uvicorn.error - INFO - Finished server process [385770] -2025-08-31 14:43:01,438 - uvicorn.error - INFO - Started server process [387880] -2025-08-31 14:43:01,439 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 14:43:01,441 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 14:43:01,441 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 14:43:01,441 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 14:43:01,442 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 14:43:01,442 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 14:43:01,442 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 14:43:01,443 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 14:43:01,443 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 14:43:01,446 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 14:43:05,188 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 14:43:05,189 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:43:09,706 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:43:09,708 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:43:09,708 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:43:11,371 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:43:11,372 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:43:11,374 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 14:43:14,457 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-08-31 14:43:14,460 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 14:43:17,564 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-08-31 14:43:17,568 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 14:43:17,573 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 14:43:17,688 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 14:43:17,689 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:43:17,690 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:43:17,690 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:20,887 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:20,888 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:43:20,888 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:43:20,889 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:43:20,889 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:22,160 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:22,161 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:43:22,162 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 14:43:25,255 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.8%) -2025-08-31 14:43:25,257 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 14:43:28,353 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-08-31 14:43:28,358 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 14:43:28,360 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 14:43:28,366 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 14:43:28,369 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:43:28,371 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:28,374 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:29,721 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:43:29,722 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:43:29,723 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:29,723 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:30,776 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:43:30,777 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 14:43:31,840 - uvicorn.error - INFO - Started server process [388255] -2025-08-31 14:43:31,841 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 14:43:31,843 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 14:43:31,843 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 14:43:31,843 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 14:43:31,844 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 14:43:31,844 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 14:43:31,844 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 14:43:31,845 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 14:43:31,845 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 14:43:31,847 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 14:43:33,884 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-08-31 14:43:33,888 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 14:43:35,116 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 14:43:35,117 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:43:37,067 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (26.5%) -2025-08-31 14:43:37,073 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 14:43:37,075 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 14:43:37,076 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 14:43:37,078 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 14:43:37,079 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 14:43:37,080 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 14:43:37,080 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 14:43:37,081 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 14:43:37,082 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 14:43:37,083 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:43:37,085 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 14:43:37,088 - uvicorn.error - INFO - Application startup complete. -2025-08-31 14:43:37,095 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 14:43:39,305 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:43:39,306 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:43:39,307 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:43:41,212 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:43:41,213 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:43:41,215 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 14:43:44,285 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (28.6%) -2025-08-31 14:43:44,287 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 14:43:47,371 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (28.6%) -2025-08-31 14:43:47,374 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 14:43:47,379 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 14:43:47,472 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 14:43:47,473 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:43:47,473 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:43:47,474 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:50,538 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:50,540 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:43:50,540 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:43:50,540 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:43:50,541 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:51,848 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:51,849 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:43:51,849 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 14:43:54,926 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (29.4%) -2025-08-31 14:43:54,929 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 14:43:58,026 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (29.4%) -2025-08-31 14:43:58,033 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 14:43:58,035 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 14:43:58,042 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 14:43:58,044 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:43:58,045 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:58,046 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:59,219 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:43:59,219 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:43:59,220 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:43:59,220 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:44:00,236 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:44:00,237 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 14:44:03,316 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (30.7%) -2025-08-31 14:44:03,319 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 14:44:06,422 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (30.7%) -2025-08-31 14:44:06,430 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 14:44:06,431 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 14:44:06,431 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 14:44:06,433 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 14:44:06,434 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 14:44:06,435 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 14:44:06,436 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 14:44:06,437 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 14:44:06,437 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 14:44:06,439 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:44:06,440 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 14:44:06,442 - uvicorn.error - INFO - Application startup complete. -2025-08-31 14:44:06,445 - uvicorn.error - ERROR - [Errno 98] error while attempting to bind on address ('0.0.0.0', 8008): address already in use -2025-08-31 14:44:06,446 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 14:44:06,447 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 14:44:06,448 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 14:44:06,449 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 14:44:06,450 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 14:44:06,450 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 14:44:06,452 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 14:44:06,452 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 14:44:06,453 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 14:44:06,453 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:44:06,454 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 14:45:23,741 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 73.461s -2025-08-31 14:45:27,597 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.488s -2025-08-31 14:45:28,026 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.237s -2025-08-31 14:45:28,414 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.203s -2025-08-31 14:45:28,788 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.204s -2025-08-31 14:45:39,245 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.482s -2025-08-31 14:45:39,622 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.202s -2025-08-31 14:45:39,999 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.202s -2025-08-31 14:45:40,375 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.203s -2025-08-31 14:45:40,748 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.203s -2025-08-31 14:46:22,859 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.377s -2025-08-31 14:46:23,198 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.223s -2025-08-31 14:46:23,511 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.199s -2025-08-31 14:46:23,808 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.187s -2025-08-31 14:46:24,104 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.186s -2025-08-31 14:48:27,688 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.499s -2025-08-31 14:48:27,984 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.183s -2025-08-31 14:48:28,278 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.182s -2025-08-31 14:48:28,566 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.181s -2025-08-31 14:48:28,863 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.188s -2025-08-31 14:51:26,118 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.426s -2025-08-31 14:51:26,529 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.200s -2025-08-31 14:51:26,943 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.201s -2025-08-31 14:51:27,346 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.200s -2025-08-31 14:51:27,738 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.200s -2025-08-31 14:53:04,310 - uvicorn.error - INFO - Shutting down -2025-08-31 14:53:04,416 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 14:53:04,419 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 14:53:04,420 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 14:53:04,421 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 14:53:04,422 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 14:53:04,423 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 14:53:04,425 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 14:53:04,425 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 14:53:04,426 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 14:53:04,428 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:53:04,430 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 14:53:04,431 - uvicorn.error - INFO - Finished server process [387880] -2025-08-31 14:53:09,814 - uvicorn.error - INFO - Started server process [391991] -2025-08-31 14:53:09,816 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 14:53:09,817 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 14:53:09,818 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 14:53:09,818 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 14:53:09,818 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 14:53:09,819 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 14:53:09,819 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 14:53:09,820 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 14:53:09,820 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 14:53:09,822 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 14:53:13,401 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 14:53:13,402 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:53:17,863 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:53:17,864 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:53:17,865 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 14:53:19,517 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 14:53:19,518 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 14:53:19,520 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 14:53:22,610 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-08-31 14:53:22,613 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 14:53:25,717 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-08-31 14:53:25,720 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 14:53:25,726 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 14:53:25,824 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 14:53:25,825 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:53:25,825 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:53:25,826 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:28,947 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:28,948 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:53:28,949 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 14:53:28,949 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 14:53:28,950 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:30,209 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:30,210 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 14:53:30,211 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 14:53:33,307 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.6%) -2025-08-31 14:53:33,309 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 14:53:36,429 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.6%) -2025-08-31 14:53:36,436 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 14:53:36,438 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 14:53:36,454 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 14:53:36,457 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:53:36,458 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:36,458 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:37,580 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:53:37,581 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 14:53:37,582 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:37,582 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 14:53:38,540 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 14:53:38,541 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 14:53:41,639 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.0%) -2025-08-31 14:53:41,641 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 14:53:44,765 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.0%) -2025-08-31 14:53:44,773 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 14:53:44,774 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 14:53:44,775 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 14:53:44,778 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 14:53:44,779 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 14:53:44,780 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 14:53:44,781 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 14:53:44,781 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 14:53:44,782 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 14:53:44,784 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 14:53:44,786 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 14:53:44,788 - uvicorn.error - INFO - Application startup complete. -2025-08-31 14:53:44,793 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-08-31 15:03:20,285 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:20,315 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 73.525s -2025-08-31 15:03:24,013 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:24,044 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.381s -2025-08-31 15:03:24,417 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:24,445 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.204s -2025-08-31 15:03:24,814 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:24,842 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.196s -2025-08-31 15:03:25,206 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:25,234 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.196s -2025-08-31 15:03:25,601 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=87.382 -2025-08-31 15:03:25,629 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.197s -2025-08-31 15:06:47,419 - uvicorn.error - INFO - Shutting down -2025-08-31 15:06:47,522 - uvicorn.error - INFO - Waiting for application shutdown. -2025-08-31 15:06:47,525 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-08-31 15:06:47,526 - app.core.worker_manager - INFO - Stopping worker manager... -2025-08-31 15:06:47,527 - app.core.worker_manager - INFO - Worker manager stopped -2025-08-31 15:06:47,528 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-08-31 15:06:47,529 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-08-31 15:06:47,530 - app.core.batch_manager - INFO - BatchManager stopped. -2025-08-31 15:06:47,531 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-08-31 15:06:47,532 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-08-31 15:06:47,533 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 15:06:47,535 - uvicorn.error - INFO - Application shutdown complete. -2025-08-31 15:06:47,536 - uvicorn.error - INFO - Finished server process [391991] -2025-08-31 15:06:51,887 - uvicorn.error - INFO - Started server process [396569] -2025-08-31 15:06:51,888 - uvicorn.error - INFO - Waiting for application startup. -2025-08-31 15:06:51,889 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-08-31 15:06:51,890 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-08-31 15:06:51,890 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-08-31 15:06:51,890 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-08-31 15:06:51,891 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-08-31 15:06:51,891 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-08-31 15:06:51,891 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-08-31 15:06:51,892 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-08-31 15:06:51,894 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-08-31 15:06:55,394 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-08-31 15:06:55,396 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 15:06:59,869 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 15:06:59,870 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 15:06:59,871 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-08-31 15:07:01,568 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-08-31 15:07:01,568 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-08-31 15:07:01,570 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-08-31 15:07:04,658 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 15:07:04,661 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-08-31 15:07:07,768 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-08-31 15:07:07,770 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-08-31 15:07:07,776 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-08-31 15:07:07,871 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-08-31 15:07:07,872 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 15:07:07,873 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 15:07:07,874 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:10,940 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:10,941 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 15:07:10,941 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-08-31 15:07:10,942 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-08-31 15:07:10,942 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:12,177 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:12,178 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-08-31 15:07:12,179 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-08-31 15:07:15,275 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.8%) -2025-08-31 15:07:15,277 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-08-31 15:07:18,400 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.8%) -2025-08-31 15:07:18,407 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-08-31 15:07:18,409 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-08-31 15:07:18,424 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-08-31 15:07:18,426 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 15:07:18,427 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:18,428 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:19,539 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 15:07:19,540 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-08-31 15:07:19,541 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:19,541 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-08-31 15:07:20,511 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 성공 -2025-08-31 15:07:20,512 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-08-31 15:07:23,616 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-08-31 15:07:23,618 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-08-31 15:07:26,751 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-08-31 15:07:26,758 - app.core.session_pool - INFO - Session pools initialized successfully -2025-08-31 15:07:26,760 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-08-31 15:07:26,761 - app.core.worker_manager - INFO - Starting worker manager... -2025-08-31 15:07:26,763 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-08-31 15:07:26,764 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-08-31 15:07:26,765 - app.core.batch_manager - INFO - Starting BatchManager... -2025-08-31 15:07:26,766 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-08-31 15:07:26,767 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-08-31 15:07:26,768 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-08-31 15:07:26,769 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-08-31 15:07:26,771 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-08-31 15:07:26,773 - uvicorn.error - INFO - Application startup complete. -2025-08-31 15:07:26,778 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) -2025-09-01 03:18:28,940 - uvicorn.error - INFO - Shutting down -2025-09-01 03:18:29,048 - uvicorn.error - INFO - Waiting for application shutdown. -2025-09-01 03:18:29,051 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 03:18:29,052 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 03:18:29,054 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 03:18:29,055 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 03:18:29,056 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 03:18:29,058 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 03:18:29,059 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 03:18:29,060 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 03:18:29,062 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 03:18:29,064 - uvicorn.error - INFO - Application shutdown complete. -2025-09-01 03:18:29,066 - uvicorn.error - INFO - Finished server process [396569] -2025-09-01 03:18:34,662 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 03:18:34,663 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 03:18:34,663 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 03:18:34,664 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 03:18:34,664 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 03:18:34,665 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 03:18:34,665 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 03:18:34,666 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 03:18:34,668 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 03:18:38,226 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 03:18:38,228 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 03:18:42,580 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 03:18:42,582 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 03:18:42,583 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 03:18:44,358 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 03:18:44,359 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 03:18:44,361 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 03:18:47,449 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-09-01 03:18:47,451 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 03:18:50,560 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-09-01 03:18:50,567 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 03:18:50,569 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 03:18:50,673 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 03:18:50,673 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 03:18:50,674 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 03:18:50,674 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:51,011 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 03:18:51,012 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 03:18:51,013 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 03:18:51,013 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 03:18:51,013 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:51,278 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 03:18:51,279 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 03:18:51,280 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 03:18:54,368 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 03:18:54,370 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 03:18:57,478 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 03:18:57,484 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 03:18:57,486 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 03:18:57,496 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 03:18:57,498 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 03:18:57,499 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:57,500 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:57,894 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 03:18:57,916 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 03:18:57,917 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:57,917 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 03:18:58,242 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 03:18:58,264 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 03:19:01,349 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 03:19:01,351 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 03:19:04,461 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 03:19:04,470 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 03:19:04,471 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 03:19:04,473 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 03:19:04,476 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 03:19:04,477 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 03:19:04,477 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 03:19:04,478 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 03:19:04,479 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 03:19:04,480 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 03:19:04,482 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 03:19:04,484 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:18:12,627 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:18:12,627 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:18:12,628 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:18:12,628 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:18:12,629 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:18:12,629 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:18:12,630 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:18:12,631 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:18:12,633 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:18:16,135 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:18:16,136 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:18:20,402 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:18:20,403 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:18:20,404 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:18:22,235 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:18:22,236 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:18:22,237 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:18:25,324 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.8%) -2025-09-01 04:18:25,327 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:18:28,428 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.6%) -2025-09-01 04:18:28,434 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:18:28,436 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:18:28,535 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:18:28,535 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:18:28,536 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:18:28,536 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:28,835 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:18:28,836 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:18:28,836 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:18:28,837 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:18:28,837 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:29,078 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:18:29,078 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:18:29,079 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:18:32,165 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:18:32,167 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:18:35,254 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:18:35,259 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:18:35,260 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:18:35,264 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:18:35,265 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:18:35,265 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:35,266 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:35,642 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:18:35,665 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:18:35,666 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:35,667 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:18:35,991 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:18:36,012 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:18:39,098 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:18:39,101 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:18:42,210 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:18:42,217 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:18:42,218 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:18:42,218 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:18:42,221 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:18:42,221 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:18:42,222 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:18:42,223 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:18:42,224 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:18:42,225 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:18:42,226 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:18:42,227 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:24:08,641 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:24:08,643 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:24:08,644 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:24:08,645 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:24:08,646 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:24:08,647 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:24:08,648 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:24:08,649 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:24:08,650 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:24:14,132 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:24:14,133 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:24:14,133 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:24:14,134 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:24:14,134 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:24:14,134 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:24:14,135 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:24:14,135 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:24:14,137 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:24:17,574 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:24:17,576 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:24:22,030 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:24:22,031 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:24:22,032 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:24:23,708 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:24:23,709 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:24:23,710 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:24:26,794 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.8%) -2025-09-01 04:24:26,796 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:24:29,881 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.8%) -2025-09-01 04:24:29,888 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:24:29,890 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:24:29,983 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:24:29,984 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:24:29,984 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:24:29,985 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:30,270 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:24:30,271 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:24:30,271 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:24:30,272 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:24:30,272 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:30,513 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:24:30,514 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:24:30,514 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:24:33,593 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:24:33,595 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:24:36,678 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-09-01 04:24:36,684 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:24:36,685 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:24:36,691 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:24:36,693 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:24:36,693 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:36,694 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:37,067 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:24:37,089 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:24:37,090 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:37,091 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:24:37,402 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:24:37,422 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:24:40,504 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:24:40,506 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:24:43,610 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:24:43,617 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:24:43,618 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:24:43,619 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:24:43,622 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:24:43,622 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:24:43,623 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:24:43,624 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:24:43,625 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:24:43,626 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:24:43,627 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:24:43,629 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:25:41,968 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:25:41,969 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:25:41,969 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:25:41,970 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:25:41,970 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:25:41,970 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:25:41,971 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:25:41,971 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:25:41,973 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:25:45,300 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:25:45,302 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:25:49,360 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:25:49,361 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:25:49,362 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:25:51,053 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:25:51,054 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:25:51,056 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:25:54,129 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 04:25:54,132 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:25:57,225 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 04:25:57,231 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:25:57,233 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:25:57,323 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:25:57,324 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:25:57,324 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:25:57,324 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:25:57,634 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:25:57,635 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:25:57,635 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:25:57,636 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:25:57,636 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:25:57,893 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:25:57,894 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:25:57,894 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:26:00,969 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:26:00,972 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:26:04,065 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:26:04,073 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:26:04,074 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:26:04,082 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:26:04,085 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:26:04,086 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:26:04,086 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:26:04,453 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:26:04,473 - app.models.rembg_model - INFO - Rembg ONNX 모델 로딩 중: app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 04:26:04,474 - app.models.rembg_model - INFO - 사용 가능한 ONNX Runtime Provider: ['AzureExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:26:04,475 - app.models.rembg_model - INFO - 선택된 ONNX Runtime Provider: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:26:04,786 - app.models.rembg_model - ERROR - Rembg ONNX 모델 로딩 실패: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 46, in load_model - self._session = onnxruntime.InferenceSession( - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ - self._create_inference_session(providers, provider_options, disabled_optimizers) - File "/home/ckh08045/.local/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 491, in _create_inference_session - sess.initialize_session(providers, provider_options, disabled_optimizers) -onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Failed to find kernel for com.ms.internal.nhwc.MaxPool(11) (node:'MaxPool' ep:'CPUExecutionProvider'). Op with name (MaxPool) domain (com.ms.internal.nhwc) and type (MaxPool) kernel is not supported in CPUExecutionProvider. Encountered following errors: ( Version mismatch. node_version: 11 kernel start version: 12 kernel_end_version: 2147483647 -) -2025-09-01 04:26:04,806 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:26:07,882 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:26:07,884 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:26:10,962 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:26:10,969 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:26:10,970 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:26:10,971 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:26:10,974 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:26:10,975 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:26:10,976 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:26:10,977 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:26:10,978 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:26:10,978 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:26:10,980 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:26:10,982 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:26:10,992 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:26:10,992 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:26:10,993 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:26:10,994 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:26:10,994 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:26:10,995 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:26:10,995 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:26:10,995 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:26:10,996 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:30:05,091 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:30:05,093 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:30:05,095 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:30:05,096 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:30:05,097 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:30:05,098 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:30:05,099 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:30:05,100 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:30:05,101 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:30:10,544 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:30:10,545 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:30:10,546 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:30:10,546 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:30:10,546 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:30:10,547 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:30:10,547 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:30:10,548 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:30:10,550 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:30:13,905 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:30:13,906 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:30:17,950 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:30:17,951 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:30:17,952 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:30:19,614 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:30:19,614 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:30:19,616 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:30:22,705 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.3%) -2025-09-01 04:30:22,707 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:30:25,813 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.3%) -2025-09-01 04:30:25,819 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:30:25,821 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:30:25,907 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:30:25,908 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:30:25,908 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:30:25,909 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:30:26,213 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:30:26,214 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:30:26,214 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:30:26,214 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:30:26,215 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:30:26,463 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:30:26,464 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:30:26,465 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:30:29,546 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-09-01 04:30:29,549 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:30:32,647 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-09-01 04:30:32,654 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:30:32,655 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:30:34,862 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:30:34,862 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:30:34,863 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:30:34,863 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:30:35,816 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:30:35,817 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:30:36,643 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:30:36,645 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:30:39,744 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-09-01 04:30:39,747 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:30:42,869 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-09-01 04:30:42,876 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:30:42,877 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:30:42,878 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:30:42,881 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:30:42,882 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:30:42,883 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:30:42,884 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:30:42,885 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:30:42,885 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:30:42,887 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:30:42,888 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:32:42,368 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:32:42,370 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:32:42,371 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:32:42,372 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:32:42,373 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:32:42,374 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:32:42,374 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:32:42,375 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:32:42,377 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:32:48,129 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:32:48,130 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:32:48,130 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:32:48,131 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:32:48,131 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:32:48,131 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:32:48,132 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:32:48,132 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:32:48,134 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:32:51,452 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:32:51,453 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:32:55,480 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:32:55,481 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:32:55,482 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:32:57,247 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:32:57,247 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:32:57,250 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:33:00,339 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:33:00,341 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:33:03,447 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:33:03,454 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:33:03,457 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:33:03,545 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:33:03,546 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:33:03,546 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:33:03,546 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:33:03,838 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:33:03,839 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:33:03,840 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:33:03,840 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:33:03,841 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:33:04,080 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:33:04,081 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:33:04,082 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:33:07,168 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:33:07,170 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:33:10,276 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:33:10,283 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:33:10,285 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:33:12,430 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:33:12,431 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:33:12,431 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:33:12,431 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:33:13,405 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:33:13,405 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:33:14,234 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:33:14,237 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:33:17,337 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-09-01 04:33:17,339 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:33:20,467 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.1%) -2025-09-01 04:33:20,474 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:33:20,475 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:33:20,476 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:33:20,479 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:33:20,480 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:33:20,481 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:33:20,481 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:33:20,482 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:33:20,483 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:33:20,485 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:33:20,487 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:35:07,905 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:35:07,907 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:35:07,908 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:35:07,908 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:35:07,909 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:35:07,909 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:35:07,910 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:35:07,910 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:35:07,911 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:35:12,680 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:35:12,681 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:35:12,681 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:35:12,682 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:35:12,682 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:35:12,682 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:35:12,683 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:35:12,683 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:35:12,685 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:35:16,690 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:35:16,692 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:35:21,018 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:35:21,020 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:35:21,021 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:35:22,661 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:35:22,662 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:35:22,664 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:35:25,747 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:35:25,750 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:35:28,829 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:35:28,834 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:35:28,835 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:35:28,915 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:35:28,915 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:35:28,916 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:35:28,916 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:35:29,209 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:35:29,210 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:35:29,210 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:35:29,211 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:35:29,211 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:35:29,462 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:35:29,463 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:35:29,463 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:35:32,544 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.3%) -2025-09-01 04:35:32,546 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:35:35,645 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:35:35,651 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:35:35,652 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:35:37,922 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:35:37,923 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:35:37,923 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:35:37,924 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:35:38,077 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:35:38,077 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:35:38,078 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:35:38,078 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:35:38,079 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:35:38,080 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:35:38,080 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:35:38,081 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:35:38,082 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:35:38,979 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:35:38,982 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:35:39,901 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:35:39,905 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:35:41,587 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:35:41,588 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:35:43,024 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.1%) -2025-09-01 04:35:43,027 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:35:45,741 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:35:45,743 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:35:45,744 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:35:46,213 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (27.0%) -2025-09-01 04:35:46,220 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:35:46,221 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:35:46,222 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:35:46,225 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:35:46,225 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:35:46,227 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:35:46,228 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:35:46,230 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:35:46,236 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:35:46,238 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:35:46,239 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:35:47,644 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:35:47,645 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:35:47,647 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:35:50,719 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:35:50,722 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:35:53,803 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:35:53,807 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:35:53,808 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:35:53,889 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:35:53,890 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:35:53,890 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:35:53,891 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:35:54,188 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:35:54,189 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:35:54,189 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:35:54,190 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:35:54,190 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:35:54,429 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:35:54,430 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:35:54,430 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:35:57,494 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:35:57,497 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:36:00,583 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:36:00,590 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:36:00,593 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:36:02,747 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:36:02,748 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:36:02,749 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:36:02,749 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:36:03,715 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:36:03,716 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:36:04,534 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:36:04,538 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:36:07,628 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.2%) -2025-09-01 04:36:07,630 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:36:10,733 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.2%) -2025-09-01 04:36:10,741 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:36:10,742 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:36:10,743 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:36:10,745 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:36:10,746 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:36:10,747 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:36:10,748 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:36:10,749 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:36:10,749 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:36:10,752 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:36:10,753 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:43:39,941 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:43:39,943 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:43:39,944 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:43:39,944 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:43:39,944 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:43:39,945 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:43:39,946 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:43:39,946 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:43:39,947 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:44:00,140 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:44:00,141 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:44:00,141 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:44:00,141 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:44:00,142 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:44:00,142 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:44:00,142 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:44:00,143 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:44:00,145 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:44:03,390 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:44:03,391 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:44:07,725 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:44:07,727 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:44:07,727 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:44:09,439 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:44:09,440 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:44:09,441 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:44:12,524 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.0%) -2025-09-01 04:44:12,527 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:44:15,628 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.0%) -2025-09-01 04:44:15,634 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:44:15,635 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:44:15,722 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:44:15,723 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:44:15,723 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:44:15,723 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:44:16,018 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:44:16,019 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:44:16,019 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:44:16,020 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:44:16,020 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:44:16,260 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:44:16,261 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:44:16,262 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:44:19,342 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 04:44:19,344 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:44:22,444 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 04:44:22,450 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:44:22,452 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:44:24,642 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:44:24,643 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:44:24,643 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:44:24,644 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:44:25,608 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:44:25,609 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:44:26,426 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:44:26,428 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:44:29,528 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.0%) -2025-09-01 04:44:29,531 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:44:32,648 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-09-01 04:44:32,655 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:44:32,656 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:44:32,656 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:44:32,658 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:44:32,659 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:44:32,660 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:44:32,661 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:44:32,661 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:44:32,662 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:44:32,663 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:44:32,665 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:45:01,087 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 04:45:01,089 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 04:45:01,102 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 04:45:01,103 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 04:45:02,260 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 04:45:02,269 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.112 -2025-09-01 04:45:02,281 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 1.193s -2025-09-01 04:45:02,389 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 04:45:02,390 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 04:45:02,393 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 04:45:02,394 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 04:45:03,350 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 04:45:03,356 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.112 -2025-09-01 04:45:03,362 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.973s -2025-09-01 04:45:06,595 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 04:45:06,596 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 04:45:06,600 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 04:45:06,600 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 04:45:07,495 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 04:45:07,507 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.112 -2025-09-01 04:45:07,517 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.922s -2025-09-01 04:45:07,610 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 04:45:07,611 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 04:45:07,615 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 04:45:07,616 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 04:45:08,589 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 04:45:08,594 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.112 -2025-09-01 04:45:08,600 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.990s -2025-09-01 04:45:08,690 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 04:45:08,691 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 04:45:08,695 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 04:45:08,696 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 04:45:09,588 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 04:45:09,594 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.112 -2025-09-01 04:45:09,600 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 0.910s -2025-09-01 04:49:19,343 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:49:19,344 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:49:19,345 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:49:19,345 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:49:19,345 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:49:19,346 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:49:19,346 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:49:19,347 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:49:19,348 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:49:48,620 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:49:48,620 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:49:48,621 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:49:48,621 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:49:48,622 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:49:48,622 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:49:48,622 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:49:48,623 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:49:48,625 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:49:51,917 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:49:51,918 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:49:55,905 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:49:55,906 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:49:55,908 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:49:57,594 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:49:57,595 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:49:57,597 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:50:00,684 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:50:00,686 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:50:03,792 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:50:03,798 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:50:03,800 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:50:03,811 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:50:03,812 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:50:03,813 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:50:03,813 - app.models.migan - ERROR - MIGAN ONNX 세션 초기화 실패: module 'onnxruntime' has no attribute 'SessionOptions' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' -2025-09-01 04:50:03,817 - app.models.migan - ERROR - Failed to load MIGAN model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,819 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:50:03,820 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:50:03,820 - app.models.migan - ERROR - MIGAN ONNX 세션 초기화 실패: module 'onnxruntime' has no attribute 'SessionOptions' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' -2025-09-01 04:50:03,821 - app.models.migan - ERROR - Failed to load MIGAN model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,822 - app.core.session_pool - ERROR - Failed to load migan model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,826 - app.core.session_pool - ERROR - Failed to create session migan_0: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,827 - app.core.session_pool - ERROR - Failed to load migan model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,828 - app.core.session_pool - ERROR - Failed to create session migan_1: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,829 - app.core.session_pool - ERROR - Failed to create initial session migan_0: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,830 - app.core.session_pool - ERROR - Failed to create initial session migan_1: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:50:03,830 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:50:03,831 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:50:03,834 - app.core.session_pool - ERROR - Failed to create session rembg_0: No module named 'rembg' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 143, in _load_model - from ..models.rembg_model import RembgProcessor - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 7, in - import rembg -ModuleNotFoundError: No module named 'rembg' -2025-09-01 04:50:03,835 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:50:03,837 - app.core.session_pool - ERROR - Failed to create session rembg_1: No module named 'rembg' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 143, in _load_model - from ..models.rembg_model import RembgProcessor - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 7, in - import rembg -ModuleNotFoundError: No module named 'rembg' -2025-09-01 04:50:03,838 - app.core.session_pool - ERROR - Failed to create initial session rembg_0: No module named 'rembg' -2025-09-01 04:50:03,839 - app.core.session_pool - ERROR - Failed to create initial session rembg_1: No module named 'rembg' -2025-09-01 04:50:03,839 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:50:03,840 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:50:03,840 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:50:03,842 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:50:03,842 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:50:03,842 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:50:03,843 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:50:03,843 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:50:03,844 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:50:03,845 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:50:03,845 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:56:22,457 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:56:22,458 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:56:22,459 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:56:22,460 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:56:22,460 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:56:22,461 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:56:22,461 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:56:22,462 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:56:22,462 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:56:27,921 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:56:27,922 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:56:27,923 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:56:27,924 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:56:27,924 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:56:27,925 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:56:27,925 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:56:27,925 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:56:27,928 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:56:31,236 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:56:31,238 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:56:35,391 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:56:35,392 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:56:35,393 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:56:37,126 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:56:37,127 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:56:37,129 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:56:40,219 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:56:40,221 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:56:43,329 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:56:43,339 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:56:43,342 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:56:43,353 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:56:43,355 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:56:43,356 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:56:43,357 - app.models.migan - ERROR - MIGAN ONNX 세션 초기화 실패: module 'onnxruntime' has no attribute 'SessionOptions' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' -2025-09-01 04:56:43,361 - app.models.migan - ERROR - Failed to load MIGAN model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,363 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:56:43,363 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:56:43,364 - app.models.migan - ERROR - MIGAN ONNX 세션 초기화 실패: module 'onnxruntime' has no attribute 'SessionOptions' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' -2025-09-01 04:56:43,365 - app.models.migan - ERROR - Failed to load MIGAN model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,366 - app.core.session_pool - ERROR - Failed to load migan model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,370 - app.core.session_pool - ERROR - Failed to create session migan_0: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,371 - app.core.session_pool - ERROR - Failed to load migan model: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,372 - app.core.session_pool - ERROR - Failed to create session migan_1: module 'onnxruntime' has no attribute 'get_available_providers' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 71, in _get_or_create_session - so = ort.SessionOptions() -AttributeError: module 'onnxruntime' has no attribute 'SessionOptions' - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 149, in _load_model - await asyncio.wait_for(model.load_model(), timeout=180) - File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for - return fut.result() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 108, in load_model - self.session = await self._get_or_create_session() - File "/home/ckh08045/work/inpaintServer/app/models/migan.py", line 95, in _get_or_create_session - logger.error(f"사용 가능한 providers: {ort.get_available_providers()}") -AttributeError: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,374 - app.core.session_pool - ERROR - Failed to create initial session migan_0: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,374 - app.core.session_pool - ERROR - Failed to create initial session migan_1: module 'onnxruntime' has no attribute 'get_available_providers' -2025-09-01 04:56:43,375 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:56:43,375 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:56:43,378 - app.core.session_pool - ERROR - Failed to create session rembg_0: No module named 'rembg' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 143, in _load_model - from ..models.rembg_model import RembgProcessor - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 7, in - import rembg -ModuleNotFoundError: No module named 'rembg' -2025-09-01 04:56:43,380 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:56:43,382 - app.core.session_pool - ERROR - Failed to create session rembg_1: No module named 'rembg' -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 111, in _create_session - model = await self._load_model(model_type) - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 143, in _load_model - from ..models.rembg_model import RembgProcessor - File "/home/ckh08045/work/inpaintServer/app/models/rembg_model.py", line 7, in - import rembg -ModuleNotFoundError: No module named 'rembg' -2025-09-01 04:56:43,383 - app.core.session_pool - ERROR - Failed to create initial session rembg_0: No module named 'rembg' -2025-09-01 04:56:43,383 - app.core.session_pool - ERROR - Failed to create initial session rembg_1: No module named 'rembg' -2025-09-01 04:56:43,384 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:56:43,384 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:56:43,385 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:56:43,386 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:56:43,386 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:56:43,386 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:56:43,387 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:56:43,387 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:56:43,387 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:56:43,388 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:56:43,389 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:57:05,275 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 04:57:05,276 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 04:57:05,277 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 04:57:05,278 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 04:57:05,279 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 04:57:05,280 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 04:57:05,281 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 04:57:05,281 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 04:57:05,282 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:57:10,839 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:57:10,840 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:57:10,840 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:57:10,841 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:57:10,841 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:57:10,842 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:57:10,842 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:57:10,843 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:57:10,845 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:57:14,218 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:57:14,218 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:57:18,377 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:57:18,380 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:57:18,380 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:57:20,163 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:57:20,164 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:57:20,166 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:57:23,261 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:57:23,263 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:57:26,351 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.2%) -2025-09-01 04:57:26,359 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:57:26,362 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:57:26,459 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:57:26,460 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:57:26,460 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:57:26,460 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:57:26,808 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:57:26,808 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:57:26,809 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:57:26,809 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:57:26,809 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:57:27,072 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:57:27,072 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:57:27,073 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:57:30,160 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:57:30,163 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:57:33,271 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.4%) -2025-09-01 04:57:33,277 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:57:33,279 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:57:35,498 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:57:35,499 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:57:35,499 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:57:35,499 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:57:41,818 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:57:41,819 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:57:47,412 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:57:47,415 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:57:50,528 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.6%) -2025-09-01 04:57:50,530 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:57:53,672 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.6%) -2025-09-01 04:57:53,679 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:57:53,680 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:57:53,681 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:57:53,684 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:57:53,685 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:57:53,685 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:57:53,686 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:57:53,687 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:57:53,687 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:57:53,689 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:57:53,691 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 04:58:15,410 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 04:58:15,410 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 04:58:15,410 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 04:58:15,411 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 04:58:15,411 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 04:58:15,412 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 04:58:15,412 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 04:58:15,412 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 04:58:15,414 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 04:58:18,717 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 04:58:18,718 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:58:22,593 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:58:22,594 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:58:22,595 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 04:58:24,388 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 04:58:24,389 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 04:58:24,391 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 04:58:27,474 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:58:27,477 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 04:58:30,576 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (21.9%) -2025-09-01 04:58:30,583 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 04:58:30,585 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 04:58:30,684 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 04:58:30,685 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:58:30,685 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:58:30,686 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:58:31,054 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:58:31,055 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:58:31,056 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 04:58:31,056 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 04:58:31,056 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 04:58:31,316 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 04:58:31,317 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 04:58:31,318 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 04:58:34,401 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 04:58:34,404 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 04:58:37,507 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 04:58:37,513 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 04:58:37,515 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 04:58:39,733 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:58:39,734 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 04:58:39,734 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 04:58:39,735 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:58:45,463 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:58:45,464 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 04:58:50,954 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 04:58:50,956 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 04:58:54,065 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:58:54,067 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 04:58:57,186 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.4%) -2025-09-01 04:58:57,192 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 04:58:57,193 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 04:58:57,194 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 04:58:57,196 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 04:58:57,197 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 04:58:57,198 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 04:58:57,198 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 04:58:57,199 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 04:58:57,200 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 04:58:57,201 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 04:58:57,203 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 05:30:03,358 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 05:30:03,359 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 05:30:03,360 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 05:30:03,360 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 05:30:03,361 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 05:30:03,361 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 05:30:03,362 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 05:30:03,362 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 05:30:03,363 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:30:32,579 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 05:30:32,580 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 05:30:32,580 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 05:30:32,580 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 05:30:32,581 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 05:30:32,581 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 05:30:32,581 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 05:30:32,582 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 05:30:32,584 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 05:30:35,858 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 05:30:35,860 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:30:39,991 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:30:39,993 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:30:39,993 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:30:41,729 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:30:41,730 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:30:41,732 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 05:30:44,820 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.3%) -2025-09-01 05:30:44,822 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 05:30:47,931 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.3%) -2025-09-01 05:30:47,938 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 05:30:47,940 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 05:30:48,038 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 05:30:48,039 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:30:48,040 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:30:48,040 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:30:48,388 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 05:30:48,388 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:30:48,389 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:30:48,389 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:30:48,389 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:30:48,656 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] -2025-09-01 05:30:48,657 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:30:48,657 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 05:30:51,744 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-09-01 05:30:51,746 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 05:30:54,855 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.5%) -2025-09-01 05:30:54,862 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 05:30:54,864 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 05:30:57,089 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:30:57,090 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 05:30:57,090 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:30:57,091 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:31:03,035 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 05:31:03,036 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:31:08,634 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CPUExecutionProvider'] -2025-09-01 05:31:08,636 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 05:31:11,749 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-09-01 05:31:11,751 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 05:31:14,887 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-09-01 05:31:14,894 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 05:31:14,895 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 05:31:14,896 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 05:31:14,898 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 05:31:14,899 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 05:31:14,900 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 05:31:14,901 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 05:31:14,901 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 05:31:14,902 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 05:31:14,903 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:31:14,905 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 05:32:31,964 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:32:31,966 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:32:31,982 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:32:31,983 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:32:46,518 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:32:46,525 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=30.846 -2025-09-01 05:32:46,533 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 14.569s -2025-09-01 05:32:46,635 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:32:46,635 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:32:46,640 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:32:46,640 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:33:00,375 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:33:00,381 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=30.846 -2025-09-01 05:33:00,388 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 13.753s -2025-09-01 05:33:03,666 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:33:03,667 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:33:03,672 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:33:03,672 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:33:17,328 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:33:17,334 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=30.846 -2025-09-01 05:33:17,340 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 13.674s -2025-09-01 05:33:17,445 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:33:17,446 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:33:17,452 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:33:17,453 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:33:30,958 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:33:30,964 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=30.846 -2025-09-01 05:33:30,970 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 13.526s -2025-09-01 05:33:31,065 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:33:31,066 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:33:31,071 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:33:31,071 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:33:44,749 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:33:44,755 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=30.846 -2025-09-01 05:33:44,761 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 13.696s -2025-09-01 05:46:06,220 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 05:46:06,221 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 05:46:06,222 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 05:46:06,223 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 05:46:06,225 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 05:46:06,226 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 05:46:06,227 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 05:46:06,228 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 05:46:06,230 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:46:35,505 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 05:46:35,506 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 05:46:35,506 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 05:46:35,506 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 05:46:35,507 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 05:46:35,507 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 05:46:35,507 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 05:46:35,508 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 05:46:35,510 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 05:46:38,749 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 05:46:38,750 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:46:42,579 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:46:42,581 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:46:42,582 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:46:44,136 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:46:44,137 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:46:44,140 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 05:46:47,218 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 05:46:47,220 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 05:46:50,312 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 05:46:50,319 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 05:46:50,320 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 05:46:50,424 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 05:46:50,425 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:46:50,425 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:46:50,426 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:46:53,738 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:46:53,739 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:46:53,740 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:46:53,740 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:46:53,741 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:46:55,057 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:46:55,058 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:46:55,060 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 05:46:58,158 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-09-01 05:46:58,161 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 05:47:01,282 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.5%) -2025-09-01 05:47:01,288 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 05:47:01,289 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 05:47:03,494 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:47:03,495 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 05:47:03,495 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:47:03,496 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:47:04,897 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:47:04,898 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:47:06,102 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:47:06,105 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 05:47:09,218 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-09-01 05:47:09,220 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 05:47:12,341 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (24.4%) -2025-09-01 05:47:12,348 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 05:47:12,348 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 05:47:12,349 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 05:47:12,351 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 05:47:12,352 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 05:47:12,353 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 05:47:12,353 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 05:47:12,354 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 05:47:12,354 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 05:47:12,356 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:47:12,357 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 05:47:33,073 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=birefnet-general-lite -2025-09-01 05:47:33,075 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:47:33,084 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:47:33,084 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:48:02,482 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:48:02,488 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:48:02,495 - app.core.worker_manager - INFO - 'rembg (birefnet-general-lite)' processed in 29.422s -2025-09-01 05:56:01,326 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 05:56:01,327 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 05:56:01,327 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 05:56:01,328 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 05:56:01,328 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 05:56:01,329 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 05:56:01,329 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 05:56:01,329 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 05:56:01,330 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:56:31,046 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 05:56:31,046 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 05:56:31,047 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 05:56:31,047 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 05:56:31,047 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 05:56:31,048 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 05:56:31,048 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 05:56:31,049 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 05:56:31,050 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 05:56:34,328 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 05:56:34,330 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:56:38,622 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:56:38,624 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:56:38,624 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 05:56:40,468 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 05:56:40,469 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 05:56:40,470 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 05:56:43,561 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-09-01 05:56:43,564 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 05:56:46,666 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.8%) -2025-09-01 05:56:46,672 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 05:56:46,674 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 05:56:46,776 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 05:56:46,777 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:56:46,777 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:56:46,778 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:56:50,080 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:56:50,081 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:56:50,082 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 05:56:50,082 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 05:56:50,082 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:56:51,361 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:56:51,362 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 05:56:51,364 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 05:56:54,464 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.5%) -2025-09-01 05:56:54,467 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 05:56:57,590 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.5%) -2025-09-01 05:56:57,596 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 05:56:57,598 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 05:56:59,762 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:56:59,763 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 05:56:59,763 - app.models.rembg_model - INFO - RembgProcessor 초기화 완료 -2025-09-01 05:56:59,764 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:57:01,190 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:57:01,191 - app.models.rembg_model - INFO - Rembg 세션 생성 중... -2025-09-01 05:57:02,430 - app.models.rembg_model - INFO - Rembg 세션 생성 완료, 프로바이더: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 05:57:02,432 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 05:57:05,548 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.5%) -2025-09-01 05:57:05,550 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 05:57:08,689 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.5%) -2025-09-01 05:57:08,696 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 05:57:08,697 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 05:57:08,698 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 05:57:08,700 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 05:57:08,701 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 05:57:08,702 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 05:57:08,702 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 05:57:08,703 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 05:57:08,703 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 05:57:08,705 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 05:57:08,706 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 05:57:22,432 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 05:57:22,433 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:57:22,438 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:57:22,439 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:57:51,987 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:57:51,994 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:57:52,001 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 29.569s -2025-09-01 05:57:55,240 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 05:57:55,241 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:57:55,246 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:57:55,247 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:57:55,432 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:57:55,438 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:57:55,444 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.203s -2025-09-01 05:57:55,534 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 05:57:55,534 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:57:55,539 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:57:55,540 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:57:55,708 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:57:55,714 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:57:55,719 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.185s -2025-09-01 05:57:55,807 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 05:57:55,807 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:57:55,811 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:57:55,812 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:57:55,980 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:57:55,986 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:57:55,992 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.185s -2025-09-01 05:57:56,078 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 05:57:56,079 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 05:57:56,083 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 05:57:56,083 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 05:57:56,250 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 05:57:56,256 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 05:57:56,262 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.184s -2025-09-01 06:11:48,638 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 06:11:48,640 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 06:11:48,643 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 06:11:48,644 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 06:11:49,222 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 06:11:49,228 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 06:11:49,234 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.596s -2025-09-01 06:11:49,324 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 06:11:49,325 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 06:11:49,328 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 06:11:49,329 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 06:11:49,675 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 06:11:49,681 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 06:11:49,687 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.363s -2025-09-01 06:11:49,777 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 06:11:49,778 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 06:11:49,781 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 06:11:49,782 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 06:11:50,054 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 06:11:50,060 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 06:11:50,066 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.289s -2025-09-01 06:11:50,153 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 06:11:50,153 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 06:11:50,157 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 06:11:50,157 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 06:11:50,377 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 06:11:50,383 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 06:11:50,389 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.236s -2025-09-01 06:11:50,476 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 06:11:50,476 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 06:11:50,480 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 06:11:50,481 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 06:11:50,684 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 06:11:50,689 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 06:11:50,695 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.220s -2025-09-01 17:58:47,039 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 17:58:47,041 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 17:58:47,044 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 17:58:47,045 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 17:58:47,464 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 17:58:47,470 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 17:58:47,476 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.437s -2025-09-01 17:58:47,564 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 17:58:47,565 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 17:58:47,569 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 17:58:47,569 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 17:58:47,834 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 17:58:47,840 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 17:58:47,847 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.282s -2025-09-01 17:58:47,931 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 17:58:47,932 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 17:58:47,935 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 17:58:47,936 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 17:58:48,200 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 17:58:48,206 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 17:58:48,212 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.281s -2025-09-01 17:58:48,302 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 17:58:48,303 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 17:58:48,307 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 17:58:48,307 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 17:58:48,538 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 17:58:48,544 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 17:58:48,550 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.248s -2025-09-01 17:58:48,644 - app.models.rembg_model - INFO - 배경제거 시작: image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 17:58:48,645 - app.models.rembg_model - INFO - Rembg 세션 확인 완료: -2025-09-01 17:58:48,650 - app.models.rembg_model - INFO - PIL 이미지 변환 완료: (800, 800), RGB -2025-09-01 17:58:48,651 - app.models.rembg_model - INFO - rembg.remove() 호출 중... -2025-09-01 17:58:48,863 - app.models.rembg_model - INFO - rembg.remove() 완료: (800, 800), RGBA -2025-09-01 17:58:48,868 - app.models.rembg_model - INFO - RMBG mask stats: min=0, max=255, mean=31.114 -2025-09-01 17:58:48,874 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.231s -2025-09-01 18:00:30,101 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 18:00:30,102 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 18:00:30,103 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 18:00:30,103 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 18:00:30,104 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 18:00:30,104 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 18:00:30,105 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 18:00:30,105 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 18:00:30,106 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 18:01:00,201 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 18:01:00,202 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 18:01:00,202 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 18:01:00,202 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 18:01:00,203 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 18:01:00,203 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 18:01:00,203 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 18:01:00,204 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 18:01:00,206 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 18:01:03,468 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 18:01:03,470 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 18:01:07,527 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 18:01:07,529 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 18:01:07,529 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 18:01:09,321 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 18:01:09,322 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 18:01:09,323 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 18:01:12,406 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.3%) -2025-09-01 18:01:12,408 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 18:01:15,501 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (24.3%) -2025-09-01 18:01:15,507 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 18:01:15,509 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 18:01:15,604 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 18:01:15,604 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 18:01:15,605 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 18:01:15,605 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 18:01:18,698 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 18:01:18,699 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 18:01:18,700 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 18:01:18,700 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 18:01:18,700 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 18:01:19,958 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 18:01:19,959 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 18:01:19,961 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 18:01:23,060 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 18:01:23,062 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 18:01:26,189 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (25.3%) -2025-09-01 18:01:26,195 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 18:01:26,197 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 18:01:26,213 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 -2025-09-01 18:01:26,215 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 18:01:26,216 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 -2025-09-01 18:01:26,216 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 18:01:27,383 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output -2025-09-01 18:01:27,384 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 18:01:28,382 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output -2025-09-01 18:01:28,384 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 18:01:31,489 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.7%) -2025-09-01 18:01:31,497 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 18:01:34,632 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (25.6%) -2025-09-01 18:01:34,639 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 18:01:34,640 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 18:01:34,641 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 18:01:34,644 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 18:01:34,645 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 18:01:34,645 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 18:01:34,646 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 18:01:34,647 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 18:01:34,648 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 18:01:34,649 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 18:01:34,651 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 18:02:28,691 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 18:03:42,407 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.269 -2025-09-01 18:03:42,408 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 73.714s -2025-09-01 18:03:42,409 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 73.718s -2025-09-01 18:03:45,786 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 18:03:46,324 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.269 -2025-09-01 18:03:46,324 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.536s -2025-09-01 18:03:46,325 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.539s -2025-09-01 18:03:46,527 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 18:03:46,886 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.269 -2025-09-01 18:03:46,887 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.357s -2025-09-01 18:03:46,888 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.360s -2025-09-01 18:03:47,089 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 18:03:47,394 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.269 -2025-09-01 18:03:47,395 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.303s -2025-09-01 18:03:47,395 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.306s -2025-09-01 18:03:47,598 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 18:03:47,875 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.269 -2025-09-01 18:03:47,875 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.275s -2025-09-01 18:03:47,876 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.277s -2025-09-01 21:40:55,391 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 21:40:55,392 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 21:40:55,393 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 21:40:55,393 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 21:40:55,394 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 21:40:55,394 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 21:40:55,395 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 21:40:55,395 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 21:40:55,396 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 21:41:25,041 - main - INFO - 🚀 인페인팅 서버 시작 중... -2025-09-01 21:41:25,041 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 -2025-09-01 21:41:25,042 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... -2025-09-01 21:41:25,042 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 -2025-09-01 21:41:25,042 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) -2025-09-01 21:41:25,043 - app.core.session_pool - INFO - Initializing dynamic session pools... -2025-09-01 21:41:25,043 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama -2025-09-01 21:41:25,044 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 -2025-09-01 21:41:25,046 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... -2025-09-01 21:41:28,319 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... -2025-09-01 21:41:28,320 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 21:41:32,528 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 21:41:32,529 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 21:41:32,530 - app.models.simple_lama - INFO - Loading Simple LAMA model... -2025-09-01 21:41:34,323 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 -2025-09-01 21:41:34,323 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully -2025-09-01 21:41:34,325 - app.core.session_pool - INFO - Successfully created session simple_lama_0 -2025-09-01 21:41:37,411 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 21:41:37,414 - app.core.session_pool - INFO - Successfully created session simple_lama_1 -2025-09-01 21:41:40,518 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 21:41:43,631 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 1, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 21:41:46,724 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (22.1%) -2025-09-01 21:41:46,726 - app.core.session_pool - INFO - Pre-loading 2 sessions for migan -2025-09-01 21:41:46,727 - app.core.session_pool - INFO - Creating new session migan_0 for migan... -2025-09-01 21:41:46,828 - app.core.session_pool - INFO - Creating new session migan_1 for migan... -2025-09-01 21:41:46,830 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 21:41:46,831 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 21:41:46,831 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 21:41:49,958 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 21:41:49,958 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 21:41:49,959 - app.models.migan - INFO - Loading MIGAN ONNX model... -2025-09-01 21:41:49,959 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... -2025-09-01 21:41:49,960 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 21:41:51,161 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] -2025-09-01 21:41:51,162 - app.models.migan - INFO - MIGAN ONNX model loaded successfully -2025-09-01 21:41:51,164 - app.core.session_pool - INFO - Successfully created session migan_0 -2025-09-01 21:41:54,267 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-09-01 21:41:54,269 - app.core.session_pool - INFO - Successfully created session migan_1 -2025-09-01 21:41:57,393 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-09-01 21:42:00,524 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-09-01 21:42:03,650 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.2%) -2025-09-01 21:42:03,652 - app.core.session_pool - INFO - Pre-loading 2 sessions for rembg -2025-09-01 21:42:03,654 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... -2025-09-01 21:42:03,673 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 -2025-09-01 21:42:03,674 - app.core.session_pool - INFO - Creating new session rembg_1 for rembg... -2025-09-01 21:42:03,675 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 -2025-09-01 21:42:03,679 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 21:42:05,086 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output -2025-09-01 21:42:05,087 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx -2025-09-01 21:42:06,139 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output -2025-09-01 21:42:06,142 - app.core.session_pool - INFO - Successfully created session rembg_0 -2025-09-01 21:42:09,256 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-09-01 21:42:09,259 - app.core.session_pool - INFO - Successfully created session rembg_1 -2025-09-01 21:42:12,393 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 0 | VRAM: 0.0/0.0 GB (23.9%) -2025-09-01 21:42:15,534 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 1 | VRAM: 0.0/0.0 GB (23.9%) -2025-09-01 21:42:18,674 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 2, rembg: 2 | VRAM: 0.0/0.0 GB (23.9%) -2025-09-01 21:42:18,676 - app.core.session_pool - INFO - Session pools initialized successfully -2025-09-01 21:42:18,677 - main - INFO - ✅ 세션 풀 초기화 완료 -2025-09-01 21:42:18,677 - app.core.worker_manager - INFO - Starting worker manager... -2025-09-01 21:42:18,679 - app.core.worker_manager - INFO - Worker manager started with 10 workers -2025-09-01 21:42:18,680 - main - INFO - ✅ 워커 매니저 시작 완료 -2025-09-01 21:42:18,680 - app.core.batch_manager - INFO - Starting BatchManager... -2025-09-01 21:42:18,681 - app.core.batch_manager - INFO - BatchManager started successfully. -2025-09-01 21:42:18,682 - main - INFO - ✅ 배치 관리자 시작 완료 -2025-09-01 21:42:18,682 - main - INFO - 🎉 인페인팅 서버 시작 완료! -2025-09-01 21:42:18,684 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. -2025-09-01 21:42:18,688 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s -2025-09-01 21:43:35,159 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 21:44:46,625 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.314 -2025-09-01 21:44:46,626 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 71.464s -2025-09-01 21:44:46,627 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 71.467s -2025-09-01 21:44:49,881 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 21:44:50,160 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.314 -2025-09-01 21:44:50,161 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.277s -2025-09-01 21:44:50,161 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.280s -2025-09-01 21:44:50,246 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 21:44:50,481 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.314 -2025-09-01 21:44:50,482 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.233s -2025-09-01 21:44:50,482 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.236s -2025-09-01 21:44:50,564 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 21:44:50,798 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.314 -2025-09-01 21:44:50,799 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.233s -2025-09-01 21:44:50,799 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.236s -2025-09-01 21:44:50,885 - app.models.bria_rmbg_onnx - INFO - 배경제거 시작(Bria ONNX): image.shape=(800, 800, 3), model_name=briaaiRMBG-1.4 -2025-09-01 21:44:51,120 - app.models.bria_rmbg_onnx - INFO - Bria ONNX mask stats: min=0, max=255, mean=113.314 -2025-09-01 21:44:51,121 - app.models.bria_rmbg_onnx - INFO - 'bria-rmbg' processed in 0.234s -2025-09-01 21:44:51,121 - app.core.worker_manager - INFO - 'rembg (briaaiRMBG-1.4)' processed in 0.236s -2025-09-01 21:47:23,869 - main - INFO - 🛑 인페인팅 서버 종료 중... -2025-09-01 21:47:23,870 - app.core.worker_manager - INFO - Stopping worker manager... -2025-09-01 21:47:23,871 - app.core.worker_manager - INFO - Worker manager stopped -2025-09-01 21:47:23,871 - main - INFO - ✅ 워커 매니저 중지 완료 -2025-09-01 21:47:23,871 - app.core.batch_manager - INFO - Stopping BatchManager... -2025-09-01 21:47:23,872 - app.core.batch_manager - INFO - BatchManager stopped. -2025-09-01 21:47:23,872 - main - INFO - ✅ 배치 관리자 중지 완료 -2025-09-01 21:47:23,873 - main - INFO - 👋 인페인팅 서버 종료 완료 -2025-09-01 21:47:23,874 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:31:19,098 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:31:19,124 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:31:19,124 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:31:19,124 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:31:19,124 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:31:19,124 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:31:19,124 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:31:19,125 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:31:19,125 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:31:19,125 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:31:19,125 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:31:19,125 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:31:19,125 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:31:19,125 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:31:19,125 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:31:19,125 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:31:19,125 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:31:19,126 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:31:19,126 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:31:20,774 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:31:20,774 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:31:20,775 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:31:20,775 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:31:21,744 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:31:21,744 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:31:21,744 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:31:21,744 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:31:21,745 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:31:21,745 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:31:22,471 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:31:22,471 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:31:22,471 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:31:22,471 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:31:22,472 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:31:22,472 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,473 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,474 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:31:22,474 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:31:22,474 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:31:22,474 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:31:22,541 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:31:22,541 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:31:22,541 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:31:22,541 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:31:22,542 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:31:22,542 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:31:22,746 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] +2025-09-30 13:31:22,746 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] +2025-09-30 13:31:22,746 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:31:22,746 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:31:22,747 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:31:22,748 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:31:22,748 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:31:22,748 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:31:22,748 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:31:23,836 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:31:23,836 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:31:23,836 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:31:23,836 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:31:23,837 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:23,837 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:31:23,837 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:31:23,837 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:31:23,838 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:31:23,838 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:31:23,838 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:31:23,838 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:31:23,838 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:31:23,838 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:31:23,838 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:31:23,838 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:31:23,838 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:31:23,838 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:31:23,839 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:31:23,839 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:31:23,839 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:31:23,839 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:31:23,839 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:31:23,839 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:31:23,839 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:31:23,839 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:31:23,840 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:31:23,840 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:32:02,442 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:32:02,468 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:32:02,468 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:32:02,469 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:32:02,469 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:32:02,469 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:32:02,469 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:32:02,469 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:32:02,469 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:32:02,469 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:32:02,469 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:32:02,470 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:32:02,470 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:32:02,470 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:32:02,470 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:32:02,470 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:32:02,470 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:32:02,471 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:32:02,471 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:32:03,980 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:32:03,980 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:32:03,981 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:32:03,981 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:32:04,921 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:32:04,921 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:32:04,922 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:32:04,922 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:32:04,922 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:32:04,922 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:32:05,676 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:32:05,676 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:32:05,676 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:32:05,676 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:32:05,677 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:32:05,677 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:32:05,678 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,678 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,678 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:32:05,678 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:32:05,679 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:32:05,722 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:32:05,722 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:32:05,723 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:32:05,723 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:32:05,723 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:32:05,723 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:32:05,923 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] +2025-09-30 13:32:05,923 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CPUExecutionProvider'] +2025-09-30 13:32:05,923 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:32:05,923 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:32:05,923 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:32:05,923 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:32:05,924 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:32:05,925 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:32:05,925 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:32:05,925 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:32:05,925 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:32:06,157 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:32:06,157 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:32:06,158 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:32:06,158 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:32:06,158 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:32:06,158 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:32:06,159 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:32:06,159 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:32:06,159 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:32:06,159 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:32:06,160 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:32:06,160 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:32:06,160 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:32:06,160 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:32:06,161 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:32:06,161 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:32:06,161 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:32:06,161 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:32:07,169 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:32:07,169 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:32:07,170 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:32:07,170 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:32:07,170 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:32:07,170 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:32:07,171 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:32:07,171 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:32:07,171 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:32:07,171 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:32:07,171 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:32:07,171 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:32:07,172 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:32:07,172 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:32:07,172 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:32:07,172 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:32:07,172 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:32:07,172 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:32:07,172 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:32:07,172 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:32:07,172 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:32:07,172 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:32:07,172 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:32:07,172 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:32:07,173 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:32:07,173 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:32:07,173 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:32:07,173 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:35:49,349 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:35:49,375 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:35:49,375 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:35:49,375 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:35:49,375 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:35:49,375 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:35:49,375 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:35:49,375 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:35:49,375 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:35:49,376 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:35:49,376 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:35:49,376 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:35:49,376 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:35:49,376 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:35:49,376 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:35:49,376 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:35:49,376 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:35:49,377 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:35:49,377 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:35:50,902 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:35:50,902 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:35:50,902 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:35:50,902 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:35:51,851 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:35:52,571 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:35:52,571 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:35:52,572 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:35:52,572 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:35:52,573 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:35:52,574 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:35:52,614 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:35:52,614 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:35:52,614 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:35:52,614 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:35:52,614 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:35:52,614 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:35:52,924 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:35:52,924 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:35:52,924 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:35:52,924 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (12.0%) +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (12.0%) +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:35:52,925 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:35:52,926 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:35:52,926 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:35:52,926 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:35:52,926 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:35:52,927 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:35:52,927 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:35:53,317 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:35:53,317 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:35:53,318 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:35:53,318 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:35:53,319 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (13.2%) +2025-09-30 13:35:53,319 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (13.2%) +2025-09-30 13:35:53,319 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:35:53,319 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:35:53,320 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:35:53,320 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:35:53,320 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:35:53,320 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:35:53,320 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:35:53,320 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:35:53,320 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:35:53,320 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:35:53,321 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:35:53,321 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:35:53,321 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:35:53,321 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:35:53,321 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:35:53,321 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:35:53,321 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:35:53,321 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:35:53,322 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:35:53,322 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:35:53,322 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:35:53,322 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:35:53,324 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:35:53,324 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:35:53,324 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:35:53,324 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:35:53,324 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:35:53,324 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:35:53,325 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:35:53,325 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:35:53,325 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:35:53,325 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:35:53,325 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:35:53,325 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:35:53,325 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:35:53,325 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:35:53,325 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:35:53,325 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:35:53,326 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:35:53,326 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:36:05,745 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:36:05,772 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:36:05,772 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:36:05,772 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:36:05,772 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:36:05,772 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:36:05,772 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:36:05,772 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:36:05,772 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:36:05,773 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:36:05,773 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:36:05,773 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:36:05,773 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:36:05,773 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:36:05,773 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:36:05,773 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:36:05,773 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:36:05,774 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:36:05,774 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:36:07,326 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:36:07,326 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:36:07,326 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:36:07,326 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:36:08,286 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:36:08,286 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:36:08,287 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:36:08,287 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:36:08,287 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:36:08,287 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:36:09,014 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:36:09,014 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:36:09,015 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:36:09,015 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:36:09,016 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:36:09,016 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:36:09,016 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:36:09,016 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (11.6%) +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:36:09,017 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:36:09,058 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:36:09,058 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:36:09,058 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:36:09,058 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:36:09,058 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:36:09,058 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:36:09,325 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:36:09,325 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:36:09,325 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:36:09,325 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (12.0%) +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (12.0%) +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:36:09,326 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:36:09,327 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:36:09,327 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:36:09,327 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:36:09,327 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:36:09,328 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:36:09,328 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:36:09,744 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:36:09,744 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (13.2%) +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (13.2%) +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:36:09,745 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:36:09,745 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:36:09,745 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:36:09,746 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:36:09,746 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:36:09,746 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:36:09,746 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:36:09,746 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:36:09,746 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:36:09,746 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:36:09,746 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:36:09,747 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:36:09,747 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:36:09,747 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:36:09,747 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:36:09,747 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:36:09,747 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:36:09,747 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:36:09,747 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:36:09,748 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:36:09,748 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:36:09,749 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:36:09,749 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:36:09,749 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:36:09,749 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:36:09,750 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:36:09,750 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:36:09,750 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:36:09,750 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:36:09,750 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:36:09,750 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:36:09,751 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:36:09,751 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:36:09,751 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:36:09,751 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:36:09,751 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:36:09,751 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:36:09,751 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:36:09,751 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:02,391 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:37:02,391 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:37:02,392 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:37:02,392 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:37:02,392 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:37:02,392 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:37:02,393 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:37:02,393 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:37:02,393 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:37:02,393 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:37:02,394 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:37:02,394 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:37:02,394 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:37:02,394 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:37:02,395 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:37:02,395 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:37:02,396 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:02,396 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:08,848 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:37:08,875 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:37:08,875 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:37:08,875 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:37:08,875 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:37:08,875 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:37:08,875 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:37:08,875 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:37:08,875 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:37:08,876 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:37:08,876 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:37:08,876 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:37:08,876 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:37:08,876 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:37:08,876 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:37:08,876 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:37:08,876 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:37:08,877 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:37:08,877 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:37:10,508 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:37:10,508 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:37:10,508 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:10,508 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:11,455 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:11,455 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:11,455 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:11,455 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:11,456 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:11,456 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:12,178 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:12,178 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:12,178 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:12,178 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:12,179 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:37:12,179 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:37:12,180 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:37:12,181 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:37:12,181 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:37:12,218 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:37:12,218 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:37:12,218 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:37:12,218 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:37:12,218 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:12,218 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:12,483 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:12,483 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:12,483 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:37:12,483 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:37:12,483 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:37:12,483 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:37:12,484 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:37:12,485 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:37:12,485 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:37:12,485 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:37:12,485 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:37:12,878 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:37:12,878 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:37:12,879 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:37:12,879 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:37:12,880 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:37:12,880 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:37:12,881 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:37:12,881 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:37:12,881 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:37:12,881 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:37:12,881 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:37:12,881 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:37:12,882 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:37:12,882 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:37:12,882 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:37:12,882 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:37:12,882 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:37:12,882 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:37:12,882 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:37:12,882 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:37:12,882 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:37:12,882 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:37:12,883 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:37:12,883 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:37:12,883 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:12,883 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:12,884 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:37:12,884 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:37:42,774 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:37:42,774 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:37:42,775 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:37:42,775 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:37:42,776 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:37:42,776 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:37:42,776 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:37:42,776 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:37:42,777 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:37:42,777 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:37:42,778 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:37:42,778 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:37:42,778 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:37:42,778 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:37:42,778 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:37:42,778 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:37:42,779 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:42,779 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:46,946 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:37:46,972 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:37:46,972 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:37:46,973 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:37:46,973 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:37:46,973 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:37:46,973 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:37:46,973 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:37:46,973 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:37:46,973 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:37:46,973 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:37:46,973 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:37:46,973 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:37:46,973 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:37:46,973 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:37:46,974 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:37:46,974 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:37:46,974 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:37:46,974 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:37:48,595 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:37:48,595 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:37:48,596 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:48,596 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:49,550 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:49,550 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:49,551 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:49,551 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:49,551 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:49,551 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:37:50,275 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:50,275 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:37:50,275 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:50,275 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:37:50,276 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:37:50,276 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:37:50,277 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:37:50,278 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:37:50,278 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:37:50,318 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:37:50,318 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:37:50,318 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:37:50,318 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:37:50,318 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:50,318 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:50,583 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:50,583 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:37:50,583 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:37:50,583 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:37:50,584 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:37:50,585 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:37:50,585 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:37:50,585 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:37:50,585 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:37:51,028 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:37:51,028 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:37:51,030 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:37:51,030 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:37:51,031 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:37:51,031 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:37:51,032 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:37:51,032 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:37:51,032 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:37:51,032 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:37:51,033 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:37:51,033 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:37:51,033 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:37:51,033 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:37:51,034 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:37:51,034 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:37:51,034 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:37:51,034 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:37:51,034 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:37:51,034 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:37:51,034 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:37:51,034 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:37:51,035 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:37:51,035 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:37:51,035 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:51,035 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:37:51,036 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:37:51,036 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:38:05,999 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:38:06,025 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:38:06,025 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:38:06,026 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:38:06,026 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:38:06,026 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:38:06,026 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:38:06,026 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:38:06,026 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:38:06,026 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:38:06,026 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:38:06,026 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:38:06,026 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:38:06,026 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:38:06,026 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:38:06,027 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:38:06,027 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:38:06,027 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:38:06,027 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:38:07,555 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:38:07,555 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:38:07,556 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:38:07,556 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:38:08,495 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:38:09,229 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:38:09,229 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:38:09,230 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:38:09,230 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:38:09,231 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:38:09,232 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:38:09,232 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:38:09,232 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:38:09,232 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:38:09,270 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:38:09,270 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:38:09,270 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:38:09,270 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:38:09,270 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:38:09,270 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:38:09,560 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:38:09,560 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:38:09,560 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:38:09,560 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:38:09,561 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:38:09,562 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:38:09,562 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:38:09,562 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:38:09,562 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:38:09,965 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:38:09,965 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:38:09,967 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:38:09,967 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:38:09,967 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:38:09,967 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (8.9%) +2025-09-30 13:38:09,968 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:38:09,968 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:38:09,968 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:38:09,968 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:38:09,969 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:38:09,969 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:38:09,969 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:38:09,969 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:38:09,969 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:38:09,969 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:38:09,969 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:38:09,969 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:38:09,970 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:38:09,970 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:38:09,970 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:38:09,970 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:38:09,970 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:38:09,970 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:38:09,970 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:38:09,970 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:38:09,971 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:38:09,971 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:38:51,631 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:38:51,631 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:38:51,631 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:38:51,631 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:38:51,632 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:38:51,632 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:38:51,632 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:38:51,632 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:38:51,633 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:38:51,633 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:38:51,633 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:38:51,633 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:38:51,634 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:38:51,634 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:38:51,634 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:38:51,634 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:38:51,635 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:38:51,635 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:40:07,656 - __main__ - INFO - 🚀 프로덕션 모드로 실행합니다 +2025-09-30 13:40:07,686 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:40:07,686 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:40:07,686 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:40:07,686 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:40:07,686 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:40:07,686 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:40:07,686 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:40:07,686 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:40:07,687 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:40:07,687 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:40:07,687 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:40:07,687 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:40:07,687 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:40:07,687 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:40:07,687 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:40:07,687 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:40:07,688 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:40:07,688 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:40:09,346 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:40:09,346 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:40:09,346 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:40:09,346 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:40:10,289 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:40:10,289 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:40:10,289 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:40:10,289 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:40:10,290 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:40:10,290 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:40:11,006 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:40:11,006 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:40:11,007 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:40:11,007 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:40:11,008 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:40:11,008 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:40:11,008 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:40:11,008 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:40:11,009 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:40:11,050 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:40:11,050 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:40:11,050 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:40:11,050 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:40:11,050 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:40:11,050 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:40:11,314 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:40:11,314 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:40:11,315 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:40:11,315 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:40:11,315 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:40:11,315 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:40:11,315 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:40:11,315 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:40:11,316 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:40:11,316 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:40:11,316 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:40:11,316 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:40:11,317 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:40:11,317 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:40:11,317 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:40:11,317 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:40:11,706 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:40:11,706 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:40:11,707 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:40:11,707 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:40:11,708 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (9.0%) +2025-09-30 13:40:11,708 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (9.0%) +2025-09-30 13:40:11,709 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:40:11,709 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:40:11,709 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:40:11,709 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:40:11,709 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:40:11,709 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:40:11,709 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:40:11,709 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:40:11,710 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:40:11,710 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:40:11,710 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:40:11,710 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:40:11,710 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:40:11,710 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:40:11,710 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:40:11,710 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:40:11,710 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:40:11,710 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:40:11,711 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:40:11,711 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:40:11,711 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:40:11,711 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:40:22,007 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:40:22,007 - main - INFO - 🛑 인페인팅 서버 종료 중... +2025-09-30 13:40:22,008 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:40:22,008 - app.core.worker_manager - INFO - Stopping worker manager... +2025-09-30 13:40:22,008 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:40:22,008 - app.core.worker_manager - INFO - Worker manager stopped +2025-09-30 13:40:22,009 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:40:22,009 - main - INFO - ✅ 워커 매니저 중지 완료 +2025-09-30 13:40:22,009 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:40:22,009 - app.core.batch_manager - INFO - Stopping BatchManager... +2025-09-30 13:40:22,010 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:40:22,010 - app.core.batch_manager - INFO - BatchManager stopped. +2025-09-30 13:40:22,010 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:40:22,010 - main - INFO - ✅ 배치 관리자 중지 완료 +2025-09-30 13:40:22,011 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:40:22,011 - main - INFO - 👋 인페인팅 서버 종료 완료 +2025-09-30 13:40:22,011 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:40:22,011 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:41:49,438 - main - INFO - 🚀 인페인팅 서버 시작 중... +2025-09-30 13:41:49,438 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:41:49,438 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:41:49,438 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:41:49,438 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:41:49,438 - app.core.session_pool - INFO - Initializing dynamic session pools... +2025-09-30 13:41:49,439 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +2025-09-30 13:41:49,439 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:41:49,439 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:41:51,057 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:41:51,058 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - Loading Simple LAMA model... +2025-09-30 13:41:52,738 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:41:52,739 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +2025-09-30 13:41:52,739 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +2025-09-30 13:41:52,741 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +2025-09-30 13:41:52,761 - app.models.migan - INFO - Loading MIGAN ONNX model... +2025-09-30 13:41:52,761 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:41:52,761 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:41:53,076 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:41:53,076 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Successfully created session migan_0 +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +2025-09-30 13:41:53,078 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:41:53,078 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:41:53,499 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:41:53,501 - app.core.session_pool - INFO - Successfully created session rembg_0 +2025-09-30 13:41:53,501 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (9.0%) +2025-09-30 13:41:53,502 - app.core.session_pool - INFO - Session pools initialized successfully +2025-09-30 13:41:53,502 - main - INFO - ✅ 세션 풀 초기화 완료 +2025-09-30 13:41:53,502 - app.core.worker_manager - INFO - Starting worker manager... +2025-09-30 13:41:53,503 - app.core.worker_manager - INFO - Worker manager started with 2 workers +2025-09-30 13:41:53,503 - main - INFO - ✅ 워커 매니저 시작 완료 +2025-09-30 13:41:53,503 - app.core.batch_manager - INFO - Starting BatchManager... +2025-09-30 13:41:53,503 - app.core.batch_manager - INFO - BatchManager started successfully. +2025-09-30 13:41:53,503 - main - INFO - ✅ 배치 관리자 시작 완료 +2025-09-30 13:41:53,503 - main - INFO - 🎉 인페인팅 서버 시작 완료! +2025-09-30 13:41:53,504 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:41:53,505 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s diff --git a/logs/main_server.log b/logs/main_server.log index 9ec0c36..d1ffa88 100644 --- a/logs/main_server.log +++ b/logs/main_server.log @@ -1,48 +1,499 @@ -Failed to initialize jtop: The jtop.service is not active. Please run: -sudo systemctl restart jtop.service -Traceback (most recent call last): - File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main - return _run_code(code, main_globals, None, - File "/usr/lib/python3.8/runpy.py", line 87, in _run_code - exec(code, run_globals) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/__main__.py", line 4, in - uvicorn.main() - File "/home/ckh08045/.local/lib/python3.8/site-packages/click/core.py", line 1161, in __call__ - return self.main(*args, **kwargs) - File "/home/ckh08045/.local/lib/python3.8/site-packages/click/core.py", line 1082, in main - rv = self.invoke(ctx) - File "/home/ckh08045/.local/lib/python3.8/site-packages/click/core.py", line 1443, in invoke - return ctx.invoke(self.callback, **ctx.params) - File "/home/ckh08045/.local/lib/python3.8/site-packages/click/core.py", line 788, in invoke - return __callback(*args, **kwargs) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/main.py", line 416, in main - run( - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/main.py", line 587, in run - server.run() - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/server.py", line 61, in run - return asyncio.run(self.serve(sockets=sockets)) - File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run - return loop.run_until_complete(main) - File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/server.py", line 68, in serve - config.load() - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/config.py", line 467, in load - self.loaded_app = import_from_string(self.app) - File "/home/ckh08045/.local/lib/python3.8/site-packages/uvicorn/importer.py", line 21, in import_from_string - module = importlib.import_module(module_str) - File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module - return _bootstrap._gcd_import(name[level:], package, level) - File "", line 1014, in _gcd_import - File "", line 991, in _find_and_load - File "", line 975, in _find_and_load_unlocked - File "", line 671, in _load_unlocked - File "", line 848, in exec_module - File "", line 219, in _call_with_frames_removed - File "/home/ckh08045/work/inpaintServer/main.py", line 17, in - from app.core.worker_manager import worker_manager - File "/home/ckh08045/work/inpaintServer/app/core/worker_manager.py", line 18, in - from ..core.session_pool import ModelType - File "/home/ckh08045/work/inpaintServer/app/core/session_pool.py", line 106 - else: - ^ -SyntaxError: invalid syntax +WARNING:root:jtop library not found. Jetson monitoring will be limited. Please run 'sudo pip install jetson-stats' +INFO: Started server process [8030] +INFO: Waiting for application startup. +INFO:main:🚀 인페인팅 서버 시작 중... +2025-09-30 13:41:49,438 - main - INFO - 🚀 인페인팅 서버 시작 중... +INFO:main:✅ 공유 객체를 app.state에 저장 완료 +2025-09-30 13:41:49,438 - main - INFO - ✅ 공유 객체를 app.state에 저장 완료 +INFO:main:🔄 상태 저장 백그라운드 작업 생성 중... +2025-09-30 13:41:49,438 - main - INFO - 🔄 상태 저장 백그라운드 작업 생성 중... +INFO:main:✅ 상태 저장 백그라운드 작업 생성 완료 +2025-09-30 13:41:49,438 - main - INFO - ✅ 상태 저장 백그라운드 작업 생성 완료 +INFO:main:🚀 세션 풀 초기화 (CUDA 자동 감지) +2025-09-30 13:41:49,438 - main - INFO - 🚀 세션 풀 초기화 (CUDA 자동 감지) +INFO:app.core.session_pool:Initializing dynamic session pools... +2025-09-30 13:41:49,438 - app.core.session_pool - INFO - Initializing dynamic session pools... +INFO:app.core.session_pool:Pre-loading 2 sessions for simple_lama +2025-09-30 13:41:49,439 - app.core.session_pool - INFO - Pre-loading 2 sessions for simple_lama +INFO:main:🔄 상태 저장 백그라운드 작업 시작됨 +2025-09-30 13:41:49,439 - main - INFO - 🔄 상태 저장 백그라운드 작업 시작됨 +INFO:app.core.session_pool:Creating new session simple_lama_0 for simple_lama... +2025-09-30 13:41:49,439 - app.core.session_pool - INFO - Creating new session simple_lama_0 for simple_lama... +INFO:app.core.session_pool:Creating new session simple_lama_1 for simple_lama... +2025-09-30 13:41:51,057 - app.core.session_pool - INFO - Creating new session simple_lama_1 for simple_lama... +INFO:app.models.simple_lama:Loading Simple LAMA model... +2025-09-30 13:41:51,058 - app.models.simple_lama - INFO - Loading Simple LAMA model... +INFO:app.models.simple_lama:실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +INFO:app.models.simple_lama:Simple LAMA model loaded successfully +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +INFO:app.models.simple_lama:Loading Simple LAMA model... +2025-09-30 13:41:52,010 - app.models.simple_lama - INFO - Loading Simple LAMA model... +INFO:app.models.simple_lama:실제 SimpleLama 모델 로딩 완료 +2025-09-30 13:41:52,738 - app.models.simple_lama - INFO - 실제 SimpleLama 모델 로딩 완료 +INFO:app.models.simple_lama:Simple LAMA model loaded successfully +2025-09-30 13:41:52,739 - app.models.simple_lama - INFO - Simple LAMA model loaded successfully +INFO:app.core.session_pool:Successfully created session simple_lama_0 +2025-09-30 13:41:52,739 - app.core.session_pool - INFO - Successfully created session simple_lama_0 +INFO:app.core.session_pool:➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +INFO:app.core.session_pool:Successfully created session simple_lama_1 +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - Successfully created session simple_lama_1 +INFO:app.core.session_pool:➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - ➕ Session Created (simple_lama). Status -> simple_lama: 0, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.3%) +INFO:app.core.session_pool:Pre-loading 1 sessions for migan +2025-09-30 13:41:52,740 - app.core.session_pool - INFO - Pre-loading 1 sessions for migan +INFO:app.core.session_pool:Creating new session migan_0 for migan... +2025-09-30 13:41:52,741 - app.core.session_pool - INFO - Creating new session migan_0 for migan... +INFO:app.models.migan:Loading MIGAN ONNX model... +2025-09-30 13:41:52,761 - app.models.migan - INFO - Loading MIGAN ONNX model... +INFO:app.models.migan:MIGAN ONNX 런타임 세션 생성 시도... +2025-09-30 13:41:52,761 - app.models.migan - INFO - MIGAN ONNX 런타임 세션 생성 시도... +INFO:app.models.migan:MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:41:52,761 - app.models.migan - INFO - MIGAN ONNX providers 설정: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +INFO:app.models.migan:MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +2025-09-30 13:41:53,076 - app.models.migan - INFO - MIGAN ONNX 세션 생성 완료. Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] +INFO:app.models.migan:MIGAN ONNX model loaded successfully +2025-09-30 13:41:53,076 - app.models.migan - INFO - MIGAN ONNX model loaded successfully +INFO:app.core.session_pool:Successfully created session migan_0 +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Successfully created session migan_0 +INFO:app.core.session_pool:➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - ➕ Session Created (migan). Status -> simple_lama: 2, migan: 0, rembg: 0 | VRAM: 0.0/0.0 GB (7.7%) +INFO:app.core.session_pool:Pre-loading 1 sessions for rembg +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Pre-loading 1 sessions for rembg +INFO:app.core.session_pool:Creating new session rembg_0 for rembg... +2025-09-30 13:41:53,077 - app.core.session_pool - INFO - Creating new session rembg_0 for rembg... +INFO:app.models.bria_rmbg_onnx:BriaRMBGOnnxProcessor 초기화 완료 +2025-09-30 13:41:53,078 - app.models.bria_rmbg_onnx - INFO - BriaRMBGOnnxProcessor 초기화 완료 +INFO:app.models.bria_rmbg_onnx:Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +2025-09-30 13:41:53,078 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 중... path=app/models/onnx/BriaRMBG1.4_model_fp16.onnx +INFO:app.models.bria_rmbg_onnx:Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +2025-09-30 13:41:53,499 - app.models.bria_rmbg_onnx - INFO - Bria RMBG ONNX 세션 생성 완료, Providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'] | Input: input, Output: output +INFO:app.core.session_pool:Successfully created session rembg_0 +2025-09-30 13:41:53,501 - app.core.session_pool - INFO - Successfully created session rembg_0 +INFO:app.core.session_pool:➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (9.0%) +2025-09-30 13:41:53,501 - app.core.session_pool - INFO - ➕ Session Created (rembg). Status -> simple_lama: 2, migan: 1, rembg: 0 | VRAM: 0.0/0.0 GB (9.0%) +INFO:app.core.session_pool:Session pools initialized successfully +2025-09-30 13:41:53,502 - app.core.session_pool - INFO - Session pools initialized successfully +INFO:main:✅ 세션 풀 초기화 완료 +2025-09-30 13:41:53,502 - main - INFO - ✅ 세션 풀 초기화 완료 +INFO:app.core.worker_manager:Starting worker manager... +2025-09-30 13:41:53,502 - app.core.worker_manager - INFO - Starting worker manager... +INFO:app.core.worker_manager:Worker manager started with 2 workers +2025-09-30 13:41:53,503 - app.core.worker_manager - INFO - Worker manager started with 2 workers +INFO:main:✅ 워커 매니저 시작 완료 +2025-09-30 13:41:53,503 - main - INFO - ✅ 워커 매니저 시작 완료 +INFO:app.core.batch_manager:Starting BatchManager... +2025-09-30 13:41:53,503 - app.core.batch_manager - INFO - Starting BatchManager... +INFO:app.core.batch_manager:BatchManager started successfully. +2025-09-30 13:41:53,503 - app.core.batch_manager - INFO - BatchManager started successfully. +INFO:main:✅ 배치 관리자 시작 완료 +2025-09-30 13:41:53,503 - main - INFO - ✅ 배치 관리자 시작 완료 +INFO:main:🎉 인페인팅 서버 시작 완료! +2025-09-30 13:41:53,503 - main - INFO - 🎉 인페인팅 서버 시작 완료! +WARNING:app.utils.discord_notifier:Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +2025-09-30 13:41:53,504 - app.utils.discord_notifier - WARNING - Discord 웹훅 URL이 설정되지 않아 알림을 보낼 수 없습니다. +INFO:app.core.session_pool:Idle session reaper started. Timeout: 1800s, Check Interval: 60s +2025-09-30 13:41:53,505 - app.core.session_pool - INFO - Idle session reaper started. Timeout: 1800s, Check Interval: 60s +INFO: Application startup complete. +INFO: Uvicorn running on http://0.0.0.0:8008 (Press CTRL+C to quit) +INFO: 127.0.0.1:40950 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:40966 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 122.35.47.45:51827 - "GET /docs HTTP/1.1" 200 OK +INFO: 122.35.47.45:51827 - "GET /openapi.json HTTP/1.1" 200 OK +INFO: 122.35.47.45:51827 - "GET /docs HTTP/1.1" 200 OK +INFO: 122.35.47.45:51827 - "GET /openapi.json HTTP/1.1" 200 OK +INFO: 127.0.0.1:51770 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51772 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51786 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36330 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36338 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:36340 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36344 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36348 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36352 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36368 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36372 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42270 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42272 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42274 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42276 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42288 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:42292 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37120 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37128 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37142 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37154 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37164 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37180 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50422 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50426 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50428 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:50440 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50446 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50452 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50460 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39780 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39788 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39804 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39812 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39820 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39824 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39828 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34278 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34280 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34282 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34292 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34298 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34308 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43312 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43322 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43324 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:43328 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43332 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43342 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43356 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43368 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37340 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37354 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37356 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37366 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37370 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37380 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40926 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40936 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40938 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40944 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40948 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40952 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:54950 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:54958 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:54966 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:54972 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:54976 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:54988 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55002 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44864 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44868 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44874 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44888 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44902 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:44910 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59202 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59214 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59224 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59238 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59240 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59250 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40680 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40688 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40700 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:40706 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40710 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40714 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:40718 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55740 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55756 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55770 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55782 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55790 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55804 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41190 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41196 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41198 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41200 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41212 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41220 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41236 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57758 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57772 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57778 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:57794 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57800 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57806 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57816 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57826 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49716 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49718 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49726 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49742 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49754 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49764 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35094 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35098 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35108 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35124 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35140 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35150 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35162 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56620 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56630 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56646 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:56658 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56674 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56682 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56698 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59358 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59360 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59368 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59384 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59386 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59396 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59886 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59892 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59902 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59918 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59930 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:59936 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51650 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51666 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51676 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51690 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:51698 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51706 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51716 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56056 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56070 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56076 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56092 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56106 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56116 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56492 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56498 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56508 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56522 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56532 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56548 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57686 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57690 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57704 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57710 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57720 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:57736 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:57738 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41450 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41452 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41468 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41474 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41476 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41480 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35860 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35868 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35878 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35884 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35900 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35908 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:35916 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37996 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38004 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38008 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38016 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38030 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38036 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:38052 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38056 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52420 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52426 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52438 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52450 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52464 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52474 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49978 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49984 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49992 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50002 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50012 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50018 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37348 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37356 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37368 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37380 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37388 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37398 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37406 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:50410 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50420 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50424 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50436 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50446 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50456 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34512 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34520 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34530 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34540 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34542 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34546 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55372 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55382 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55394 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55398 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55410 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55422 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:55424 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:47164 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:47178 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:47180 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:47188 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:47198 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:47202 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48968 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48980 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48992 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49000 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49012 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49028 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:49038 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41792 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41806 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41822 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41828 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41832 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41848 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41860 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:41862 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:37968 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37982 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37994 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38002 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38014 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56402 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56418 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56434 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56438 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56450 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56462 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:56472 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36790 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36802 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36818 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36824 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36826 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36830 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36842 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:36856 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:38068 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38076 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38092 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38100 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38102 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38114 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43516 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43530 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43540 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43542 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43556 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:43568 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45942 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45958 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45972 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45974 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45986 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:45996 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:46000 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48010 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48026 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:48032 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48038 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48048 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48054 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48064 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48066 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37730 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37744 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37754 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37766 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37768 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37778 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51766 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51780 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51782 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51784 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51786 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:51788 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50002 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50016 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50020 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:50022 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50036 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50044 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50054 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:50070 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48460 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48462 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48472 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48480 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48496 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48512 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52154 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52164 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52178 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52184 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52186 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52200 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52630 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52634 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52638 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:52640 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52648 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52660 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:52674 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60092 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60102 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60106 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60114 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60124 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60126 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60136 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60790 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60800 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60806 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60820 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60836 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60848 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60160 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60162 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60178 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:60182 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60196 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60208 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:60218 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:37996 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38010 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38016 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38030 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38038 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38048 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58906 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58908 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58910 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58918 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58932 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:58934 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39180 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39182 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39196 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:39206 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39210 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39216 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:39228 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48208 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48210 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48220 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48226 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48232 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48240 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:48248 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34080 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34092 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34104 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34110 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34116 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:34130 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38284 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38294 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38308 - "GET /api/v1/health HTTP/1.1" 200 OK +INFO: 127.0.0.1:38316 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38328 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38330 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38342 - "GET /api/v1/stats HTTP/1.1" 200 OK +INFO: 127.0.0.1:38344 - "GET /api/v1/stats HTTP/1.1" 200 OK diff --git a/logs/main_server.pid b/logs/main_server.pid index d38be50..55b3adb 100644 --- a/logs/main_server.pid +++ b/logs/main_server.pid @@ -1 +1 @@ -841903 +8030 diff --git a/logs/monitoring.log b/logs/monitoring.log index 30d4302..ef5495f 100644 --- a/logs/monitoring.log +++ b/logs/monitoring.log @@ -1,18 +1,141 @@ -Failed to initialize jtop: The jtop.service is not active. Please run: -sudo systemctl restart jtop.service -INFO: Started server process [840568] +WARNING:root:jtop library not found. Jetson monitoring will be limited. Please run 'sudo pip install jetson-stats' +INFO: Started server process [8148] INFO: Waiting for application startup. -Fan control not available INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit) -INFO: 127.0.0.1:57182 - "GET /api/simple HTTP/1.1" 200 OK -Task exception was never retrieved -future: exception=AttributeError("module 'asyncio' has no attribute 'to_thread'")> -Traceback (most recent call last): - File "/home/ckh08045/work/inpaintServer/app/monitoring/dashboard.py", line 2094, in health_check_and_restart - response = await asyncio.to_thread(requests.get, health_url, timeout=10) -AttributeError: module 'asyncio' has no attribute 'to_thread' -INFO: Shutting down -INFO: Waiting for application shutdown. -INFO: Application shutdown complete. -INFO: Finished server process [840568] +INFO: 127.0.0.1:33342 - "GET /api/simple HTTP/1.1" 200 OK +INFO: 122.35.47.45:51860 - "GET / HTTP/1.1" 200 OK +INFO: 122.35.47.45:51865 - "WebSocket /ws" [accepted] +INFO: connection open +INFO: 122.35.47.45:51860 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:51861 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51867 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51866 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51868 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 122.35.47.45:51873 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51873 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51873 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51877 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51876 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:51875 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51878 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51895 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51895 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51895 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51918 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:51916 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51919 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51917 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51938 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51938 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51938 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51973 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:51974 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51975 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51972 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51986 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:51986 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:51986 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52008 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52005 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52007 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52006 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52025 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52025 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52025 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52046 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52047 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52049 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52048 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52054 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52054 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52054 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52061 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52060 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52058 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52059 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52069 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52069 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52069 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52082 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52084 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52081 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52083 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52087 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52087 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52087 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52112 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52114 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52115 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52113 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52113 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52113 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52113 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52131 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52130 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52129 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52132 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52144 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52144 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52144 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52154 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52151 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52153 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52152 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52164 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52164 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52164 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52170 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52169 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52171 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52172 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52177 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52183 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52182 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52184 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52185 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52195 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52194 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52194 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52214 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52213 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52216 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52215 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52225 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52225 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52234 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52235 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52236 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52237 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52238 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52245 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52245 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52245 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52257 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52259 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52256 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52258 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52261 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52261 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52261 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52268 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52265 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52266 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52267 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52272 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52272 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52272 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52276 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52278 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52275 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52277 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52290 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52290 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52290 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52307 - "GET /api/logs?lines=50 HTTP/1.1" 200 OK +INFO: 122.35.47.45:52309 - "GET /api/performance-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52308 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52306 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52316 - "GET /api/system-alerts HTTP/1.1" 200 OK +INFO: 122.35.47.45:52316 - "GET /api/model-usage-stats HTTP/1.1" 200 OK +INFO: 122.35.47.45:52316 - "GET /api/system-alerts HTTP/1.1" 200 OK diff --git a/logs/monitoring.pid b/logs/monitoring.pid index 16948d7..b2c1b23 100644 --- a/logs/monitoring.pid +++ b/logs/monitoring.pid @@ -1 +1 @@ -840568 +8148 diff --git a/main.py b/main.py index 9d6f0db..8a127b5 100644 --- a/main.py +++ b/main.py @@ -201,7 +201,7 @@ async def save_status_periodically(): import traceback logger.error(f"상세 오류: {traceback.format_exc()}") - await asyncio.sleep(1) + await asyncio.sleep(5) @asynccontextmanager async def lifespan(app: FastAPI): diff --git a/requirements_x86.txt b/requirements_x86.txt index 45a2f8c..9911f5d 100644 --- a/requirements_x86.txt +++ b/requirements_x86.txt @@ -1,33 +1,62 @@ +# ============================ +# requirements_x86.txt (Linux x86_64, CUDA 11.8) +# ============================ + +# PyTorch CUDA 11.8 휠 받기 (기본 PyPI + 추가 인덱스) +--extra-index-url https://download.pytorch.org/whl/cu118 + +######################## +# 서버/웹 기본 +######################## fastapi==0.104.1 uvicorn[standard]==0.24.0 python-multipart==0.0.6 -pillow==10.0.1 -numpy==1.23.5 -opencv-python==4.8.1.78 -psutil==5.9.6 -requests==2.31.0 - -# PyTorch - x86 시스템용 (CUDA 11.8 지원) -# Python 3.10 호환 버전 -torch==2.0.1+cu118 -torchvision==0.15.2+cu118 - -# CUDA 관련 (x86 전용) -pycuda==2022.2.2 - -# 인페인팅 모델들 -rembg==2.0.50 -simple-lama-inpainting==0.1.0 - -# 시스템 모니터링 -asyncio-throttle==1.0.2 aiofiles==23.2.1 +asyncio-throttle==1.0.2 +requests==2.31.0 +psutil==5.9.6 +websockets + +######################## +# 이미지/수치 +######################## +pillow==10.0.1 +# TensorFlow 2.12.0은 numpy<1.24 요구 → 충돌 방지 위해 범위 고정 +numpy==1.26.4 +opencv-python==4.8.1.78 + +######################## +# 설정/검증 +######################## pydantic==2.7.4 pydantic-settings==2.8.1 -# x86 GPU 모니터링 -pynvml==11.5.0 -nvidia-ml-py3==7.352.0 +######################## +# DL 프레임워크 +######################## +# TensorFlow (GPU 포함 단일 패키지) +# tensorflow==2.12.0 -# 추가 최적화 패키지들 (Python 3.10 호환) +# PyTorch (CUDA 11.8 휠) +torch==2.2.2 +torchvision==0.17.2 + +######################## +# 인페인팅/배경제거 +######################## +rembg==2.0.50 +simple-lama-inpainting + +# rembg 가속용 (CUDA 11.8 빌드) onnxruntime-gpu==1.16.3 + +######################## +# GPU 모니터링 +######################## +pynvml==11.5.0 +# nvidia-ml-py3==7.352.0 # ← 기능 중복이라 제거 권장 + +######################## +# (선택) CUDA 커널 직접 호출 시만 +######################## +#pycuda==2022.2.2 diff --git a/status.json b/status.json index b036afa..bd7087c 100644 --- a/status.json +++ b/status.json @@ -1,75 +1,19 @@ { "worker_status": { "running": true, - "total_workers": 10, + "total_workers": 2, "queue_size": 0, "workers_by_status": { "idle": [ { - "id": "worker_f70b814c", + "id": "worker_67ac071e", "status": "idle", "task_count": 0, "error_count": 0, "last_task_at": null }, { - "id": "worker_7ef5e684", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_63d0f5bb", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_9b7b1de3", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_7952c8ab", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_7af356b5", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_156f8680", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_e9ca4545", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_ad1a8fc2", - "status": "idle", - "task_count": 0, - "error_count": 0, - "last_task_at": null - }, - { - "id": "worker_3a52ecf2", + "id": "worker_99f585de", "status": "idle", "task_count": 0, "error_count": 0, @@ -91,53 +35,69 @@ "available": 2 }, "migan": { - "min": 2, + "min": 1, "max": 4, - "total": 2, + "total": 1, "in_use": 0, - "available": 2 + "available": 1 }, "rembg": { - "min": 2, - "max": 4, - "total": 2, + "min": 1, + "max": 3, + "total": 1, "in_use": 0, - "available": 2 + "available": 1 } }, "api_stats": { - "total_requests": 7, - "successful_requests": 7, + "total_requests": 400, + "successful_requests": 400, "failed_requests": 0, "success_rate": 100.0, "endpoint_usage": { - "GET /api/v1/health": 2, - "POST /api/v1/remove_bg": 5 + "GET /api/v1/health": 22, + "GET /docs": 2, + "GET /openapi.json": 2, + "GET /api/v1/stats": 374 }, "endpoint_stats": { "GET /api/v1/health": { - "count": 2, - "avg_time": 0.0023573637008666992, - "min_time": 0.0011353492736816406, - "max_time": 0.003579378128051758, + "count": 22, + "avg_time": 0.0008184367960149592, + "min_time": 0.0004703998565673828, + "max_time": 0.001514434814453125, "current_concurrent": 0 }, - "POST /api/v1/remove_bg": { - "count": 5, - "avg_time": 15.194099569320679, - "min_time": 0.29595065116882324, - "max_time": 74.70842432975769, + "GET /docs": { + "count": 2, + "avg_time": 0.0005669593811035156, + "min_time": 0.0005576610565185547, + "max_time": 0.0005762577056884766, + "current_concurrent": 0 + }, + "GET /openapi.json": { + "count": 2, + "avg_time": 0.0098419189453125, + "min_time": 0.0009410381317138672, + "max_time": 0.018742799758911133, + "current_concurrent": 0 + }, + "GET /api/v1/stats": { + "count": 374, + "avg_time": 0.0007271456718444824, + "min_time": 0.0005671977996826172, + "max_time": 0.0024929046630859375, "current_concurrent": 0 } }, - "average_response_time": 10.853601796286446, - "min_response_time": 0.0011353492736816406, - "max_response_time": 74.70842432975769, + "average_response_time": 0.0007895290851593018, + "min_response_time": 0.00044035911560058594, + "max_response_time": 0.018742799758911133, "current_concurrent": 0, "max_concurrent": 1, - "requests_per_second": 0.019528829012151992, - "uptime": 358.4444308280945, + "requests_per_second": 0.6403491471578444, + "uptime": 624.6592218875885, "recent_errors": [] }, - "timestamp": 1756730843.4636421 + "timestamp": 1759240334.0925634 } \ No newline at end of file diff --git a/tf_check.py b/tf_check.py new file mode 100644 index 0000000..becdeff --- /dev/null +++ b/tf_check.py @@ -0,0 +1,20 @@ +# tf_check.py +import os +print("PYTHON:", os.sys.version) + +try: + import tensorflow as tf + print("TF VERSION:", tf.__version__) + print("TF Built with CUDA:", tf.test.is_built_with_cuda()) + print("TF GPUs:", tf.config.list_physical_devices('GPU')) +except Exception as e: + print("TF CHECK ERROR:", e) + +try: + import torch + print("TORCH VERSION:", torch.__version__) + print("TORCH CUDA AVAILABLE:", torch.cuda.is_available()) + if torch.cuda.is_available(): + print("TORCH DEVICE:", torch.cuda.get_device_name(0)) +except Exception as e: + print("TORCH CHECK ERROR:", e) diff --git a/venv/lib64 b/venv/lib64 new file mode 120000 index 0000000..7951405 --- /dev/null +++ b/venv/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file