2024-07-05 08:48:39 24.07.05 01:48:39.569 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:48:39 24.07.05 01:48:39.570 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:48:39 24.07.05 01:48:39.574 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l1ts13p54ea4lkel0.sock"} 2024-07-05 08:48:39 24.07.05 01:48:39.575 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l1ts13p54ea4lkem0.sock"} 2024-07-05 08:48:39 24.07.05 01:48:39.575 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:48:39 24.07.05 01:48:39.575 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:48:39 24.07.05 01:48:39.575 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l1ts13p54ea4lkelg.sock"} 2024-07-05 08:48:39 24.07.05 01:48:39.576 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l1ts13p54ea4lkemg.sock"} 2024-07-05 08:48:39 24.07.05 01:48:39.576 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:48:39 24.07.05 01:48:39.576 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:48:39 24.07.05 01:48:39.584 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:48:39 24.07.05 01:48:39.584 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:48:39 24.07.05 01:48:39.584 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l1ts13p54ea4lkel0.sock --control-socket-path /tmp/nuclio-rpc-cq3l1ts13p54ea4lkem0.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:48:39 24.07.05 01:48:39.585 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:48:39 24.07.05 01:48:39.588 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:48:39 24.07.05 01:48:39.588 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l1ts13p54ea4lkelg.sock --control-socket-path /tmp/nuclio-rpc-cq3l1ts13p54ea4lkemg.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:48:44 24.07.05 01:48:44.941 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 11} 2024-07-05 08:48:44 24.07.05 01:48:44.941 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:48:44 24.07.05 01:48:44.942 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:48:44 24.07.05 01:48:44.942 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:48:44 24.07.05 01:48:44.942 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:48:44 24.07.05 01:48:44.943 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:48:44 24.07.05 01:48:44.943 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:48:44 24.07.05 01:48:44.943 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:48:44 24.07.05 01:48:44.943 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:48:44 24.07.05 01:48:44.944 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:48:52 24.07.05 01:48:52.929 (W) sor.http.w0.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:48:52 24.07.05 01:48:52.935 (E) sor.http.w0.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:48:54 24.07.05 01:48:54.667 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:48:54 24.07.05 01:48:54.671 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:48:54 24.07.05 01:48:54.671 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:48:54 24.07.05 01:48:54.672 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:48:54 24.07.05 01:48:54.676 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l21k13p54ea45rsm0.sock"} 2024-07-05 08:48:54 24.07.05 01:48:54.676 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l21k13p54ea45rsmg.sock"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l21k13p54ea45rsn0.sock"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l21k13p54ea45rsng.sock"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:48:54 24.07.05 01:48:54.677 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:48:54 24.07.05 01:48:54.684 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:48:54 24.07.05 01:48:54.685 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:48:54 24.07.05 01:48:54.685 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l21k13p54ea45rsm0.sock --control-socket-path /tmp/nuclio-rpc-cq3l21k13p54ea45rsn0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:48:54 24.07.05 01:48:54.684 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:48:54 24.07.05 01:48:54.685 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:48:54 24.07.05 01:48:54.685 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l21k13p54ea45rsmg.sock --control-socket-path /tmp/nuclio-rpc-cq3l21k13p54ea45rsng.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:48:59 24.07.05 01:48:59.490 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 11} 2024-07-05 08:48:59 24.07.05 01:48:59.490 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:48:59 24.07.05 01:48:59.490 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 12} 2024-07-05 08:48:59 24.07.05 01:48:59.490 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:48:59 24.07.05 01:48:59.491 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:48:59 24.07.05 01:48:59.491 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:48:59 24.07.05 01:48:59.491 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:48:59 24.07.05 01:48:59.492 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:48:59 24.07.05 01:48:59.492 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:48:59 24.07.05 01:48:59.493 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:49:07 24.07.05 01:49:07.692 (W) sor.http.w1.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:49:07 24.07.05 01:49:07.699 (D) sor.http.w1.python.logger Control connection was closed 2024-07-05 08:49:07 24.07.05 01:49:07.676 (W) sor.http.w1.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:49:07 24.07.05 01:49:07.684 (E) sor.http.w1.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:49:09 24.07.05 01:49:09.436 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:49:09 24.07.05 01:49:09.439 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:49:09 24.07.05 01:49:09.439 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:49:09 24.07.05 01:49:09.441 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:49:09 24.07.05 01:49:09.445 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l25c13p54ea133ijg.sock"} 2024-07-05 08:49:09 24.07.05 01:49:09.445 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l25c13p54ea133ik0.sock"} 2024-07-05 08:49:09 24.07.05 01:49:09.445 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l25c13p54ea133ikg.sock"} 2024-07-05 08:49:09 24.07.05 01:49:09.446 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l25c13p54ea133il0.sock"} 2024-07-05 08:49:09 24.07.05 01:49:09.446 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:09 24.07.05 01:49:09.446 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:09 24.07.05 01:49:09.446 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:09 24.07.05 01:49:09.446 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:09 24.07.05 01:49:09.453 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:09 24.07.05 01:49:09.454 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:09 24.07.05 01:49:09.454 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l25c13p54ea133ik0.sock --control-socket-path /tmp/nuclio-rpc-cq3l25c13p54ea133ikg.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:49:09 24.07.05 01:49:09.453 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:09 24.07.05 01:49:09.454 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:09 24.07.05 01:49:09.454 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l25c13p54ea133ijg.sock --control-socket-path /tmp/nuclio-rpc-cq3l25c13p54ea133il0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:49:24 24.07.05 01:49:24.597 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 11} 2024-07-05 08:49:24 24.07.05 01:49:24.597 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:49:24 24.07.05 01:49:24.597 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:49:24 24.07.05 01:49:24.598 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:49:24 24.07.05 01:49:24.598 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:49:24 24.07.05 01:49:24.598 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:49:24 24.07.05 01:49:24.598 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:49:24 24.07.05 01:49:24.598 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:49:24 24.07.05 01:49:24.604 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:49:24 24.07.05 01:49:24.605 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:49:32 24.07.05 01:49:32.601 (W) sor.http.w0.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:49:32 24.07.05 01:49:32.607 (D) sor.http.w0.python.logger Control connection was closed 2024-07-05 08:49:32 24.07.05 01:49:32.592 (W) sor.http.w0.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:49:32 24.07.05 01:49:32.596 (E) sor.http.w0.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:49:34 24.07.05 01:49:34.374 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:49:34 24.07.05 01:49:34.377 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:49:34 24.07.05 01:49:34.377 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:49:34 24.07.05 01:49:34.378 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:49:34 24.07.05 01:49:34.382 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2bk13p54ea35hk9g.sock"} 2024-07-05 08:49:34 24.07.05 01:49:34.382 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2bk13p54ea35hka0.sock"} 2024-07-05 08:49:34 24.07.05 01:49:34.382 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2bk13p54ea35hkag.sock"} 2024-07-05 08:49:34 24.07.05 01:49:34.382 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2bk13p54ea35hkb0.sock"} 2024-07-05 08:49:34 24.07.05 01:49:34.382 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:34 24.07.05 01:49:34.383 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:34 24.07.05 01:49:34.383 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:34 24.07.05 01:49:34.383 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:34 24.07.05 01:49:34.389 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:34 24.07.05 01:49:34.389 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:34 24.07.05 01:49:34.389 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:34 24.07.05 01:49:34.389 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:34 24.07.05 01:49:34.389 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2bk13p54ea35hka0.sock --control-socket-path /tmp/nuclio-rpc-cq3l2bk13p54ea35hkag.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:49:34 24.07.05 01:49:34.390 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2bk13p54ea35hk9g.sock --control-socket-path /tmp/nuclio-rpc-cq3l2bk13p54ea35hkb0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:49:39 24.07.05 01:49:39.480 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:49:39 24.07.05 01:49:39.480 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:49:39 24.07.05 01:49:39.481 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:49:39 24.07.05 01:49:39.481 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:49:39 24.07.05 01:49:39.483 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:49:39 24.07.05 01:49:39.486 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 11} 2024-07-05 08:49:39 24.07.05 01:49:39.486 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:49:39 24.07.05 01:49:39.487 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:49:39 24.07.05 01:49:39.487 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:49:39 24.07.05 01:49:39.487 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:49:57 24.07.05 01:49:52.566 (W) sor.http.w1.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:49:57 24.07.05 01:49:53.420 (D) sor.http.w1.python.logger Control connection was closed 2024-07-05 08:49:57 24.07.05 01:49:52.706 (E) sor.http.w1.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:49:57 24.07.05 01:49:52.631 (W) sor.http.w1.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:49:58 24.07.05 01:49:58.809 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:49:58 24.07.05 01:49:58.812 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:49:58 24.07.05 01:49:58.812 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:49:58 24.07.05 01:49:58.813 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:49:58 24.07.05 01:49:58.816 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2hk13p54ea7lu11g.sock"} 2024-07-05 08:49:58 24.07.05 01:49:58.816 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2hk13p54ea7lu120.sock"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2hk13p54ea7lu12g.sock"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2hk13p54ea7lu130.sock"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:49:58 24.07.05 01:49:58.817 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:49:58 24.07.05 01:49:58.823 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:58 24.07.05 01:49:58.823 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:58 24.07.05 01:49:58.823 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2hk13p54ea7lu120.sock --control-socket-path /tmp/nuclio-rpc-cq3l2hk13p54ea7lu130.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:49:58 24.07.05 01:49:58.823 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:49:58 24.07.05 01:49:58.824 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:49:58 24.07.05 01:49:58.824 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2hk13p54ea7lu11g.sock --control-socket-path /tmp/nuclio-rpc-cq3l2hk13p54ea7lu12g.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:50:03 24.07.05 01:50:03.843 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:50:03 24.07.05 01:50:03.843 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:50:03 24.07.05 01:50:03.843 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 13} 2024-07-05 08:50:03 24.07.05 01:50:03.843 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:50:03 24.07.05 01:50:03.844 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:50:03 24.07.05 01:50:03.844 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:50:03 24.07.05 01:50:03.844 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:50:03 24.07.05 01:50:03.844 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:50:03 24.07.05 01:50:03.844 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:50:03 24.07.05 01:50:03.845 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:50:31 24.07.05 01:50:31.942 (E) sor.http.w1.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:50:31 24.07.05 01:50:31.936 (W) sor.http.w1.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:50:31 24.07.05 01:50:31.929 (W) sor.http.w1.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:50:33 24.07.05 01:50:33.555 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:50:33 24.07.05 01:50:33.557 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:50:33 24.07.05 01:50:33.557 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:50:33 24.07.05 01:50:33.558 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:50:33 24.07.05 01:50:33.562 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2qc13p54ea1j2qb0.sock"} 2024-07-05 08:50:33 24.07.05 01:50:33.562 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2qc13p54ea1j2qag.sock"} 2024-07-05 08:50:33 24.07.05 01:50:33.562 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2qc13p54ea1j2qbg.sock"} 2024-07-05 08:50:33 24.07.05 01:50:33.563 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:50:33 24.07.05 01:50:33.563 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:50:33 24.07.05 01:50:33.563 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2qc13p54ea1j2qc0.sock"} 2024-07-05 08:50:33 24.07.05 01:50:33.563 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:50:33 24.07.05 01:50:33.563 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:50:33 24.07.05 01:50:33.571 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:50:33 24.07.05 01:50:33.572 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:50:33 24.07.05 01:50:33.572 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2qc13p54ea1j2qb0.sock --control-socket-path /tmp/nuclio-rpc-cq3l2qc13p54ea1j2qbg.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:50:33 24.07.05 01:50:33.571 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:50:33 24.07.05 01:50:33.572 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:50:33 24.07.05 01:50:33.572 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2qc13p54ea1j2qag.sock --control-socket-path /tmp/nuclio-rpc-cq3l2qc13p54ea1j2qc0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 13} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 14} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:50:39 24.07.05 01:50:39.124 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:50:39 24.07.05 01:50:39.125 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:50:39 24.07.05 01:50:39.125 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:50:52 24.07.05 01:50:52.192 (W) sor.http.w0.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:50:52 24.07.05 01:50:52.208 (D) sor.http.w0.python.logger Control connection was closed 2024-07-05 08:50:52 24.07.05 01:50:52.200 (W) sor.http.w0.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:50:52 24.07.05 01:50:52.199 (E) sor.http.w0.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:50:53 24.07.05 01:50:53.920 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:50:53 24.07.05 01:50:53.924 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:50:53 24.07.05 01:50:53.924 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:50:53 24.07.05 01:50:53.925 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:50:53 24.07.05 01:50:53.929 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2vc13p54ea35ieag.sock"} 2024-07-05 08:50:53 24.07.05 01:50:53.929 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2vc13p54ea35ieb0.sock"} 2024-07-05 08:50:53 24.07.05 01:50:53.930 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2vc13p54ea35iebg.sock"} 2024-07-05 08:50:53 24.07.05 01:50:53.931 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l2vc13p54ea35iec0.sock"} 2024-07-05 08:50:53 24.07.05 01:50:53.931 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:50:53 24.07.05 01:50:53.931 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:50:53 24.07.05 01:50:53.931 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:50:53 24.07.05 01:50:53.931 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2vc13p54ea35ieb0.sock --control-socket-path /tmp/nuclio-rpc-cq3l2vc13p54ea35iec0.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:50:53 24.07.05 01:50:53.938 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l2vc13p54ea35ieag.sock --control-socket-path /tmp/nuclio-rpc-cq3l2vc13p54ea35iebg.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:50:59 24.07.05 01:50:59.109 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:50:59 24.07.05 01:50:59.110 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:50:59 24.07.05 01:50:59.110 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 11} 2024-07-05 08:50:59 24.07.05 01:50:59.110 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:50:59 24.07.05 01:50:59.110 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:50:59 24.07.05 01:50:59.110 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:50:59 24.07.05 01:50:59.111 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:50:59 24.07.05 01:50:59.111 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:50:59 24.07.05 01:50:59.111 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:50:59 24.07.05 01:50:59.112 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:51:10 24.07.05 01:51:10.377 (W) sor.http.w1.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:51:10 24.07.05 01:51:10.402 (W) sor.http.w1.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:51:10 24.07.05 01:51:10.403 (D) sor.http.w1.python.logger Control connection was closed 2024-07-05 08:51:10 24.07.05 01:51:10.401 (E) sor.http.w1.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:51:11 24.07.05 01:51:11.978 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:51:11 24.07.05 01:51:11.981 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:51:11 24.07.05 01:51:11.981 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:51:11 24.07.05 01:51:11.982 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:51:11 24.07.05 01:51:11.984 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l33s13p54ea3j2rd0.sock"} 2024-07-05 08:51:11 24.07.05 01:51:11.985 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l33s13p54ea3j2rcg.sock"} 2024-07-05 08:51:11 24.07.05 01:51:11.985 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l33s13p54ea3j2rdg.sock"} 2024-07-05 08:51:11 24.07.05 01:51:11.985 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:11 24.07.05 01:51:11.985 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:11 24.07.05 01:51:11.986 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l33s13p54ea3j2re0.sock"} 2024-07-05 08:51:11 24.07.05 01:51:11.987 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:11 24.07.05 01:51:11.987 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l33s13p54ea3j2rd0.sock --control-socket-path /tmp/nuclio-rpc-cq3l33s13p54ea3j2rdg.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:11 24.07.05 01:51:11.990 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l33s13p54ea3j2rcg.sock --control-socket-path /tmp/nuclio-rpc-cq3l33s13p54ea3j2re0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:16 24.07.05 01:51:16.815 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 11} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:51:16 24.07.05 01:51:16.816 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 12} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:51:16 24.07.05 01:51:16.816 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:51:16 24.07.05 01:51:16.816 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:51:16 24.07.05 01:51:16.817 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:51:34 24.07.05 01:51:34.174 (E) sor.http.w0.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:51:35 24.07.05 01:51:35.975 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:51:35 24.07.05 01:51:35.978 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:51:35 24.07.05 01:51:35.978 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:51:35 24.07.05 01:51:35.981 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:51:35 24.07.05 01:51:35.985 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l39s13p54ea2uki70.sock"} 2024-07-05 08:51:35 24.07.05 01:51:35.985 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l39s13p54ea2uki6g.sock"} 2024-07-05 08:51:35 24.07.05 01:51:35.986 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l39s13p54ea2uki7g.sock"} 2024-07-05 08:51:35 24.07.05 01:51:35.986 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l39s13p54ea2uki80.sock"} 2024-07-05 08:51:35 24.07.05 01:51:35.987 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:35 24.07.05 01:51:35.987 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:35 24.07.05 01:51:35.987 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:35 24.07.05 01:51:35.987 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l39s13p54ea2uki70.sock --control-socket-path /tmp/nuclio-rpc-cq3l39s13p54ea2uki80.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:35 24.07.05 01:51:35.995 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l39s13p54ea2uki6g.sock --control-socket-path /tmp/nuclio-rpc-cq3l39s13p54ea2uki7g.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (I) sor.http.w0.python.logger Wrapper connected {"wid": 0, "pid": 12} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (D) sor.http.w0.python.logger Creating control connection {"wid": 0} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (I) sor.http.w1.python.logger Wrapper connected {"wid": 1, "pid": 13} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (D) sor.http.w1.python.logger Creating control connection {"wid": 1} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (D) sor.http.w1.python.logger Control connection created {"wid": 1} 2024-07-05 08:51:40 24.07.05 01:51:40.871 (D) sor.http.w1.python.logger Waiting for start 2024-07-05 08:51:40 24.07.05 01:51:40.872 (D) sor.http.w0.python.logger Control connection created {"wid": 0} 2024-07-05 08:51:40 24.07.05 01:51:40.872 (D) sor.http.w0.python.logger Waiting for start 2024-07-05 08:51:40 24.07.05 01:51:40.873 (I) sor.http.w0.python.logger Init context... 0% {"worker_id": "0"} 2024-07-05 08:51:40 24.07.05 01:51:40.873 (I) sor.http.w1.python.logger Init context... 0% {"worker_id": "1"} 2024-07-05 08:51:55 24.07.05 01:51:55.077 (W) sor.http.w0.python.logger Failed to read control message {"errRootCause": "EOF"} 2024-07-05 08:51:55 24.07.05 01:51:55.081 (D) sor.http.w0.python.logger Control connection was closed 2024-07-05 08:51:55 24.07.05 01:51:55.070 (W) sor.http.w0.python.logger Failed to read from event connection {"err": "EOF"} 2024-07-05 08:51:55 24.07.05 01:51:55.088 (E) sor.http.w0.python.logger Unexpected termination of child process {"error": null, "status": "signal: killed"} 2024-07-05 08:51:56 24.07.05 01:51:56.934 (I) processor Starting processor {"version": "Label: 1.13.0, Git commit: c4422eb772781fb50fbf017698aae96199d81388, OS: linux, Arch: amd64, Go version: go1.21.7"} 2024-07-05 08:51:56 24.07.05 01:51:56.937 (D) processor Read configuration {"config": "{\n \"metadata\": {\n \"name\": \"pth-facebookresearch-sam-vit-h\",\n \"namespace\": \"nuclio\",\n \"labels\": {\n \"nuclio.io/project-name\": \"cvat\"\n },\n \"annotations\": {\n \"animated_gif\": \"https://raw.githubusercontent.com/cvat-ai/cvat/develop/site/content/en/images/hrnet_example.gif\",\n \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n \"min_neg_points\": \"0\",\n \"min_pos_points\": \"1\",\n \"name\": \"Segment Anything\",\n \"spec\": \"\",\n \"type\": \"interactor\",\n \"version\": \"2\"\n }\n },\n \"spec\": {\n \"description\": \"Interactive object segmentation with Segment-Anything\",\n \"handler\": \"main:handler\",\n \"runtime\": \"python:3.8\",\n \"env\": [\n {\n \"name\": \"PYTHONPATH\",\n \"value\": \"/opt/nuclio/sam\"\n }\n ],\n \"resources\": {\n \"requests\": {\n \"cpu\": \"25m\",\n \"memory\": \"1Mi\"\n }\n },\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n \"targetCPU\": 75,\n \"triggers\": {\n \"myHttpTrigger\": {\n \"class\": \"\",\n \"kind\": \"http\",\n \"name\": \"myHttpTrigger\",\n \"numWorkers\": 2,\n \"workerAvailabilityTimeoutMilliseconds\": 10000,\n \"attributes\": {\n \"maxRequestBodySize\": 33554432\n },\n \"maxWorkers\": 2\n }\n },\n \"build\": {\n \"functionConfigPath\": \"./serverless/pytorch/facebookresearch/sam//nuclio/function.yaml\",\n \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n \"baseImage\": \"ubuntu:22.04\",\n \"directives\": {\n \"preCopy\": [\n {\n \"kind\": \"ENV\",\n \"value\": \"DEBIAN_FRONTEND=noninteractive\"\n },\n {\n \"kind\": \"WORKDIR\",\n \"value\": \"/opt/nuclio/sam\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"apt-get update \\u0026\\u0026 apt-get -y install curl git python3 python3-pip ffmpeg libsm6 libxext6\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install torch torchvision torchaudio pycocotools matplotlib onnxruntime onnx\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"pip3 install git+https://github.com/facebookresearch/segment-anything.git\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\"\n },\n {\n \"kind\": \"RUN\",\n \"value\": \"ln -s /usr/bin/pip3 /usr/local/bin/pip \\u0026\\u0026 ln -s /usr/bin/python3 /usr/bin/python\"\n }\n ]\n },\n \"codeEntryType\": \"image\",\n \"timestamp\": 1720091621\n },\n \"platform\": {\n \"attributes\": {\n \"mountMode\": \"volume\",\n \"restartPolicy\": {\n \"maximumRetryCount\": 3,\n \"name\": \"always\"\n }\n }\n },\n \"readinessTimeoutSeconds\": 120,\n \"securityContext\": {},\n \"disableDefaultHTTPTrigger\": false,\n \"eventTimeout\": \"30s\"\n },\n \"PlatformConfig\": null\n}"} 2024-07-05 08:51:56 24.07.05 01:51:56.937 (I) cessor.healthcheck.server Listening {"listenAddress": ":8082"} 2024-07-05 08:51:56 24.07.05 01:51:56.938 (D) processor.http Creating worker pool {"num": 2} 2024-07-05 08:51:56 24.07.05 01:51:56.942 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l3f413p54ea4kk12g.sock"} 2024-07-05 08:51:56 24.07.05 01:51:56.942 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l3f413p54ea4kk120.sock"} 2024-07-05 08:51:56 24.07.05 01:51:56.943 (D) sor.http.w0.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l3f413p54ea4kk130.sock"} 2024-07-05 08:51:56 24.07.05 01:51:56.943 (D) sor.http.w1.python.logger Creating listener socket {"path": "/tmp/nuclio-rpc-cq3l3f413p54ea4kk13g.sock"} 2024-07-05 08:51:56 24.07.05 01:51:56.943 (D) sor.http.w0.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:56 24.07.05 01:51:56.944 (D) sor.http.w0.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:56 24.07.05 01:51:56.944 (D) sor.http.w1.python.logger Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 2024-07-05 08:51:56 24.07.05 01:51:56.944 (D) sor.http.w1.python.logger Using Python handler {"handler": "main:handler"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w0.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w0.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w0.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l3f413p54ea4kk12g.sock --control-socket-path /tmp/nuclio-rpc-cq3l3f413p54ea4kk130.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w1.python.logger Using Python executable {"path": "/usr/bin/python3"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w1.python.logger Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"} 2024-07-05 08:51:56 24.07.05 01:51:56.951 (D) sor.http.w1.python.logger Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --event-socket-path /tmp/nuclio-rpc-cq3l3f413p54ea4kk120.sock --control-socket-path /tmp/nuclio-rpc-cq3l3f413p54ea4kk13g.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"} 2024-07-05 08:51:10 panic: Wrapper process for worker 1 exited unexpectedly with: signal: killed 2024-07-05 08:51:10 2024-07-05 08:51:10 goroutine 21 [running]: 2024-07-05 08:51:10 github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).watchWrapperProcess(0xc0001d61c0) 2024-07-05 08:51:10 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:663 +0x434 2024-07-05 08:51:10 created by github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).startWrapper in goroutine 20 2024-07-05 08:51:10 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:318 +0x1f1 2024-07-05 08:51:34 panic: Wrapper process for worker 0 exited unexpectedly with: signal: killed 2024-07-05 08:51:34 2024-07-05 08:51:34 goroutine 21 [running]: 2024-07-05 08:51:34 github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).watchWrapperProcess(0xc0006b2000) 2024-07-05 08:51:34 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:663 +0x434 2024-07-05 08:51:34 created by github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).startWrapper in goroutine 10 2024-07-05 08:51:34 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:318 +0x1f1 2024-07-05 08:51:55 panic: Wrapper process for worker 0 exited unexpectedly with: signal: killed 2024-07-05 08:51:55 2024-07-05 08:51:55 goroutine 8 [running]: 2024-07-05 08:51:55 github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).watchWrapperProcess(0xc0001cac40) 2024-07-05 08:51:55 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:663 +0x434 2024-07-05 08:51:55 created by github.com/nuclio/nuclio/pkg/processor/runtime/rpc.(*AbstractRuntime).startWrapper in goroutine 23 2024-07-05 08:51:55 /home/runner/work/nuclio/nuclio/pkg/processor/runtime/rpc/abstract.go:318 +0x1f1