) Listening {"listenAddress": ":8082"}
2023-10-12 14:23:52 23.10.12 06:23:52.658 processor.http (D) Creating worker pool {"num": 1}
2023-10-12 14:23:52 23.10.12 06:23:52.658 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-ckjp1u200s0kejd449fg.sock"}
2023-10-12 14:23:52 23.10.12 06:23:52.659 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-ckjp1u200s0kejd449g0.sock"}
2023-10-12 14:23:52 23.10.12 06:23:52.659 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"}
2023-10-12 14:23:52 23.10.12 06:23:52.665 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"}
2023-10-12 14:23:52 23.10.12 06:23:52.666 sor.http.w0.python.logger (D) Using Python executable {"path": "/usr/bin/python3"}
2023-10-12 14:23:52 23.10.12 06:23:52.666 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"}
2023-10-12 14:23:52 23.10.12 06:23:52.666 sor.http.w0.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-ckjp1u200s0kejd449fg.sock --control-socket-path /tmp/nuclio-rpc-ckjp1u200s0kejd449g0.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"}
2023-10-12 14:23:38 /usr/local/lib/python3.10/dist-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only!
2023-10-12 14:23:38 warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")
2023-10-12 14:23:38 Traceback (most recent call last):
2023-10-12 14:23:38 File "/opt/nuclio/model_handler.py", line 23, in load_network
2023-10-12 14:23:38 self.model = load_model(model_config_path=model_config_path, model_checkpoint_path=model_checkpoint_path,
2023-10-12 14:23:38 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/inference.py", line 30, in load_model
2023-10-12 14:23:38 args = SLConfig.fromfile(model_config_path)
2023-10-12 14:23:38 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/slconfig.py", line 185, in fromfile
2023-10-12 14:23:38 cfg_dict, cfg_text = SLConfig._file2dict(filename)
2023-10-12 14:23:38 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/slconfig.py", line 90, in _file2dict
2023-10-12 14:23:38 mod = import_module(temp_module_name)
2023-10-12 14:23:38 File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
2023-10-12 14:23:38 return _bootstrap._gcd_import(name[level:], package, level)
2023-10-12 14:23:38 File "", line 1050, in _gcd_import
2023-10-12 14:23:38 File "", line 1027, in _find_and_load
2023-10-12 14:23:38 File "", line 1006, in _find_and_load_unlocked
2023-10-12 14:23:38 File "", line 688, in _load_unlocked
2023-10-12 14:23:38 File "", line 883, in exec_module
2023-10-12 14:23:38 File "", line 241, in _call_with_frames_removed
2023-10-12 14:23:38 File "/tmp/tmp8eh_wv58/tmpjrzsznt8.py", line 1, in
2023-10-12 14:23:38 NameError: name 'false' is not defined. Did you mean: 'False'?
2023-10-12 14:23:38
2023-10-12 14:23:38 During handling of the above exception, another exception occurred:
2023-10-12 14:23:38
2023-10-12 14:23:38 Traceback (most recent call last):
2023-10-12 14:23:38 File "/opt/nuclio/_nuclio_wrapper.py", line 480, in
2023-10-12 14:23:38 run_wrapper()
2023-10-12 14:23:38 File "/opt/nuclio/_nuclio_wrapper.py", line 468, in run_wrapper
2023-10-12 14:23:38 loop.run_until_complete(wrapper_instance.initialize())
2023-10-12 14:23:38 File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
2023-10-12 14:23:38 return future.result()
2023-10-12 14:23:38 File "/opt/nuclio/_nuclio_wrapper.py", line 165, in initialize
2023-10-12 14:23:38 await self._initialize_context()
2023-10-12 14:23:38 File "/opt/nuclio/_nuclio_wrapper.py", line 188, in _initialize_context
2023-10-12 14:23:38 init_context_result = getattr(self._entrypoint_module, 'init_context')(self._context)
2023-10-12 14:23:38 File "/opt/nuclio/main.py", line 21, in init_context
2023-10-12 14:23:38 model = ModelHandler(labels)
2023-10-12 14:23:38 File "/opt/nuclio/model_handler.py", line 14, in init
2023-10-12 14:23:38 self.load_network(model_config_path="GroundingDINO_SwinT_OGC.py", model_checkpoint_path="groundingdino_swint_ogc.pth")
2023-10-12 14:23:38 File "/opt/nuclio/model_handler.py", line 28, in load_network
2023-10-12 14:23:38 raise Exception(f"Cannot load model {model_checkpoint_path}: {e}")
2023-10-12 14:23:38 Exception: Cannot load model groundingdino_swint_ogc.pth: name 'false' is not defined
2023-10-12 14:23:38 Exception ignored in: <function _TemporaryFileCloser.del at 0x7f1ddd299750>
2023-10-12 14:23:38 Traceback (most recent call last):
2023-10-12 14:23:38 File "/usr/lib/python3.10/tempfile.py", line 589, in del
2023-10-12 14:23:38 File "/usr/lib/python3.10/tempfile.py", line 585, in close
2023-10-12 14:23:38 FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp8eh_wv58/tmpjrzsznt8.py'
2023-10-12 14:23:39 panic: Wrapper process for worker 0 exited unexpectedly with: exit status 1
2023-10-12 14:23:39
2023-10-12 14:23:39 goroutine 41 [running]:
2023-10-12 14:23:39 github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).watchWrapperProcess(0xc00039c0e0)
2023-10-12 14:23:39 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:639 +0x454
2023-10-12 14:23:39 created by github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).startWrapper
2023-10-12 14:23:39 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:296 +0x1fd
2023-10-12 14:23:48 /usr/local/lib/python3.10/dist-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only!
2023-10-12 14:23:48 warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")
2023-10-12 14:23:48 Traceback (most recent call last):
2023-10-12 14:23:48 File "/opt/nuclio/model_handler.py", line 23, in load_network
2023-10-12 14:23:48 self.model = load_model(model_config_path=model_config_path, model_checkpoint_path=model_checkpoint_path,
2023-10-12 14:23:48 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/inference.py", line 30, in load_model
2023-10-12 14:23:48 args = SLConfig.fromfile(model_config_path)
2023-10-12 14:23:48 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/slconfig.py", line 185, in fromfile
2023-10-12 14:23:48 cfg_dict, cfg_text = SLConfig._file2dict(filename)
2023-10-12 14:23:48 File "/usr/local/lib/python3.10/dist-packages/groundingdino/util/slconfig.py", line 90, in _file2dict
2023-10-12 14:23:48 mod = import_module(temp_module_name)
2023-10-12 14:23:48 File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
2023-10-12 14:23:48 return _bootstrap._gcd_import(name[level:], package, level)
2023-10-12 14:23:48 File "", line 1050, in _gcd_import
2023-10-12 14:23:48 File "", line 1027, in _find_and_load
2023-10-12 14:23:48 File "", line 1006, in _find_and_load_unlocked
2023-10-12 14:23:48 File "", line 688, in _load_unlocked
2023-10-12 14:23:48 File "", line 883, in exec_module
2023-10-12 14:23:48 File "", line 241, in _call_with_frames_removed
2023-10-12 14:23:48 File "/tmp/tmpuhmaw98f/tmpa5mm56vl.py", line 1, in
2023-10-12 14:23:48 NameError: name 'false' is not defined. Did you mean: 'False'?
2023-10-12 14:23:48
2023-10-12 14:23:48 During handling of the above exception, another exception occurred:
2023-10-12 14:23:48
2023-10-12 14:23:48 Traceback (most recent call last):
2023-10-12 14:23:48 File "/opt/nuclio/_nuclio_wrapper.py", line 480, in
2023-10-12 14:23:48 run_wrapper()
2023-10-12 14:23:48 File "/opt/nuclio/_nuclio_wrapper.py", line 468, in run_wrapper
2023-10-12 14:23:48 loop.run_until_complete(wrapper_instance.initialize())
2023-10-12 14:23:48 File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
2023-10-12 14:23:48 return future.result()
2023-10-12 14:23:48 File "/opt/nuclio/_nuclio_wrapper.py", line 165, in initialize
2023-10-12 14:23:48 await self._initialize_context()
2023-10-12 14:23:48 File "/opt/nuclio/_nuclio_wrapper.py", line 188, in _initialize_context
2023-10-12 14:23:48 init_context_result = getattr(self._entrypoint_module, 'init_context')(self._context)
2023-10-12 14:23:48 File "/opt/nuclio/main.py", line 21, in init_context
2023-10-12 14:23:48 model = ModelHandler(labels)
2023-10-12 14:23:48 File "/opt/nuclio/model_handler.py", line 14, in init
2023-10-12 14:23:48 self.load_network(model_config_path="GroundingDINO_SwinT_OGC.py", model_checkpoint_path="groundingdino_swint_ogc.pth")
2023-10-12 14:23:48 File "/opt/nuclio/model_handler.py", line 28, in load_network
2023-10-12 14:23:48 raise Exception(f"Cannot load model {model_checkpoint_path}: {e}")
2023-10-12 14:23:48 Exception: Cannot load model groundingdino_swint_ogc.pth: name 'false' is not defined
2023-10-12 14:23:48 Exception ignored in: <function _TemporaryFileCloser.del at 0x7f58d9e49750>
2023-10-12 14:23:48 Traceback (most recent call last):
2023-10-12 14:23:48 File "/usr/lib/python3.10/tempfile.py", line 589, in del
2023-10-12 14:23:48 File "/usr/lib/python3.10/tempfile.py", line 585, in close
2023-10-12 14:23:48 FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpuhmaw98f/tmpa5mm56vl.py'
2023-10-12 14:23:49 panic: Wrapper process for worker 0 exited unexpectedly with: exit status 1
2023-10-12 14:23:49
2023-10-12 14:23:49 goroutine 48 [running]:
2023-10-12 14:23:49 github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).watchWrapperProcess(0xc00039c0e0)
2023-10-12 14:23:49 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:639 +0x454
2023-10-12 14:23:49 created by github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).startWrapper
2023-10-12 14:23:49 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:296 +0x1fd