inpaintServer/logs/main.log

10497 lines
957 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 <lambda>
| 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 <lambda>
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 <lambda>
| 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 <lambda>
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 <lambda>
| 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 <lambda>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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): <lambda>
/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): <module>
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 <module>
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 <module>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 <module>
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 <module>
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 <module>
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 <module>
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 세션 확인 완료: <class 'rembg.sessions.birefnet_general_lite.BiRefNetSessionGeneralLite'>
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 세션 확인 완료: <class 'rembg.sessions.birefnet_general_lite.BiRefNetSessionGeneralLite'>
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 세션 확인 완료: <class 'rembg.sessions.birefnet_general_lite.BiRefNetSessionGeneralLite'>
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 세션 확인 완료: <class 'rembg.sessions.birefnet_general_lite.BiRefNetSessionGeneralLite'>
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 세션 확인 완료: <class 'rembg.sessions.birefnet_general_lite.BiRefNetSessionGeneralLite'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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 세션 확인 완료: <class 'rembg.sessions.u2net.U2netSession'>
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이 설정되지 않아 알림을 보낼 수 없습니다.