cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
11.88k stars 2.9k forks source link

Error: Request failed with status code 500. "500 Server Error: Internal Server Error for url: http://nuclio:8070/api/function_invocations". #4785

Closed mandharsh38 closed 1 year ago

mandharsh38 commented 1 year ago

My actions before raising this issue

Read/searched the docs Searched past issues

Expected Behaviour

Should annotate automatically

Current Behaviour

Server Error Error: Request failed with status code 500. "500 Server Error: Internal Server Error for url: http://nuclio:8070/api/function_invocations".

Steps to Reproduce (for bugs)

1 run ./serverless/deploy_cpu.sh ./serverless/pytorch/ultralytics/yolov5/ 2 Create a task and try to auto-annotate using the detector yolo-v5

Context

Wanted to automatic annotate my custom dataset using yolov5 detector

Your Environment

22.08.01 15:49:30.787                 processor (I) Starting processor {"version": "Label: 1.5.16, Git commit: ae43a6a560c2bec42d7ccfdf6e8e11a1e3cc3774, OS: linux, Arch: amd64, Go version: go1.14.3"} 22.08.01 15:49:30.787                 processor (D) Read configuration {"config": "{\n    \"metadata\": {\n        \"name\": \"ultralytics-yolov5\",\n        \"namespace\": \"nuclio\",\n        \"labels\": {\n            \"nuclio.io/project-name\": \"cvat\"\n        },\n        \"annotations\": {\n            \"framework\": \"pytorch\",\n            \"name\": \"YOLO v5\",\n            \"spec\": \"[\n  { \\"id\\": 0, \\"name\\": \\"person\\" },\n  { \\"id\\": 1, \\"name\\": \\"bicycle\\" },\n  { \\"id\\": 2, \\"name\\": \\"car\\" },\n  { \\"id\\": 3, \\"name\\": \\"motorbike\\" },\n  { \\"id\\": 4, \\"name\\": \\"aeroplane\\" },\n  { \\"id\\": 5, \\"name\\": \\"bus\\" },\n  { \\"id\\": 6, \\"name\\": \\"train\\" },\n  { \\"id\\": 7, \\"name\\": \\"truck\\" },\n  { \\"id\\": 8, \\"name\\": \\"boat\\" },\n  { \\"id\\": 9, \\"name\\": \\"traffic light\\" },\n  { \\"id\\": 10, \\"name\\": \\"fire hydrant\\" },\n  { \\"id\\": 11, \\"name\\": \\"stop sign\\" },\n  { \\"id\\": 12, \\"name\\": \\"parking meter\\" },\n  { \\"id\\": 13, \\"name\\": \\"bench\\" },\n  { \\"id\\": 14, \\"name\\": \\"bird\\" },\n  { \\"id\\": 15, \\"name\\": \\"cat\\" },\n  { \\"id\\": 16, \\"name\\": \\"dog\\" },\n  { \\"id\\": 17, \\"name\\": \\"horse\\" },\n  { \\"id\\": 18, \\"name\\": \\"sheep\\" },\n  { \\"id\\": 19, \\"name\\": \\"cow\\" },\n  { \\"id\\": 20, \\"name\\": \\"elephant\\" },\n  { \\"id\\": 21, \\"name\\": \\"bear\\" },\n  { \\"id\\": 22, \\"name\\": \\"zebra\\" },\n  { \\"id\\": 23, \\"name\\": \\"giraffe\\" },\n  { \\"id\\": 24, \\"name\\": \\"backpack\\" },\n  { \\"id\\": 25, \\"name\\": \\"umbrella\\" },\n  { \\"id\\": 26, \\"name\\": \\"handbag\\" },\n  { \\"id\\": 27, \\"name\\": \\"tie\\" },\n  { \\"id\\": 28, \\"name\\": \\"suitcase\\" },\n  { \\"id\\": 29, \\"name\\": \\"frisbee\\" },\n  { \\"id\\": 30, \\"name\\": \\"skis\\" },\n  { \\"id\\": 31, \\"name\\": \\"snowboard\\" },\n  { \\"id\\": 32, \\"name\\": \\"sports ball\\" },\n  { \\"id\\": 33, \\"name\\": \\"kite\\" },\n  { \\"id\\": 34, \\"name\\": \\"baseball bat\\" },\n  { \\"id\\": 35, \\"name\\": \\"baseball glove\\" },\n  { \\"id\\": 36, \\"name\\": \\"skateboard\\" },\n  { \\"id\\": 37, \\"name\\": \\"surfboard\\" },\n  { \\"id\\": 38, \\"name\\": \\"tennis racket\\" },\n  { \\"id\\": 39, \\"name\\": \\"bottle\\" },\n  { \\"id\\": 40, \\"name\\": \\"wine glass\\" },\n  { \\"id\\": 41, \\"name\\": \\"cup\\" },\n  { \\"id\\": 42, \\"name\\": \\"fork\\" },\n  { \\"id\\": 43, \\"name\\": \\"knife\\" },\n  { \\"id\\": 44, \\"name\\": \\"spoon\\" },\n  { \\"id\\": 45, \\"name\\": \\"bowl\\" },\n  { \\"id\\": 46, \\"name\\": \\"banana\\" },\n  { \\"id\\": 47, \\"name\\": \\"apple\\" },\n  { \\"id\\": 48, \\"name\\": \\"sandwich\\" },\n  { \\"id\\": 49, \\"name\\": \\"orange\\" },\n  { \\"id\\": 50, \\"name\\": \\"broccoli\\" },\n  { \\"id\\": 51, \\"name\\": \\"carrot\\" },\n  { \\"id\\": 52, \\"name\\": \\"hot dog\\" },\n  { \\"id\\": 53, \\"name\\": \\"pizza\\" },\n  { \\"id\\": 54, \\"name\\": \\"donut\\" },\n  { \\"id\\": 55, \\"name\\": \\"cake\\" },\n  { \\"id\\": 56, \\"name\\": \\"chair\\" },\n  { \\"id\\": 57, \\"name\\": \\"sofa\\" },\n  { \\"id\\": 58, \\"name\\": \\"pottedplant\\" },\n  { \\"id\\": 59, \\"name\\": \\"bed\\" },\n  { \\"id\\": 60, \\"name\\": \\"diningtable\\" },\n  { \\"id\\": 61, \\"name\\": \\"toilet\\" },\n  { \\"id\\": 62, \\"name\\": \\"tvmonitor\\" },\n  { \\"id\\": 63, \\"name\\": \\"laptop\\" },\n  { \\"id\\": 64, \\"name\\": \\"mouse\\" },\n  { \\"id\\": 65, \\"name\\": \\"remote\\" },\n  { \\"id\\": 66, \\"name\\": \\"keyboard\\" },\n  { \\"id\\": 67, \\"name\\": \\"cell phone\\" },\n  { \\"id\\": 68, \\"name\\": \\"microwave\\" },\n  { \\"id\\": 69, \\"name\\": \\"oven\\" },\n  { \\"id\\": 70, \\"name\\": \\"toaster\\" },\n  { \\"id\\": 71, \\"name\\": \\"sink\\" },\n  { \\"id\\": 72, \\"name\\": \\"refrigerator\\" },\n  { \\"id\\": 73, \\"name\\": \\"book\\" },\n  { \\"id\\": 74, \\"name\\": \\"clock\\" },\n  { \\"id\\": 75, \\"name\\": \\"vase\\" },\n  { \\"id\\": 76, \\"name\\": \\"scissors\\" },\n  { \\"id\\": 77, \\"name\\": \\"teddy bear\\" },\n  { \\"id\\": 78, \\"name\\": \\"hair drier\\" },\n  { \\"id\\": 79, \\"name\\": \\"toothbrush\\" }\n]\n\",\n            \"type\": \"detector\"\n        }\n    },\n    \"spec\": {\n        \"description\": \"YOLO v5 via pytorch hub\",\n        \"handler\": \"main:handler\",\n        \"runtime\": \"python:3.6\",\n        \"resources\": {},\n        \"image\": \"cvat/ultralytics-yolov5:latest\",\n        \"targetCPU\": 75,\n        \"triggers\": {\n            \"myHttpTrigger\": {\n                \"class\": \"\",\n                \"kind\": \"http\",\n                \"name\": \"myHttpTrigger\",\n                \"maxWorkers\": 2,\n                \"workerAvailabilityTimeoutMilliseconds\": 10000,\n                \"attributes\": {\n                    \"maxRequestBodySize\": 33554432,\n                    \"port\": 1500\n                }\n            }\n        },\n        \"volumes\": [\n            {\n                \"volume\": {\n                    \"name\": \"volume-1\",\n                    \"hostPath\": {\n                        \"path\": \"/home/issamand/cvat/serverless/common\"\n                    }\n                },\n                \"volumeMount\": {\n                    \"name\": \"volume-1\",\n                    \"mountPath\": \"/opt/nuclio/common\"\n                }\n            }\n        ],\n        \"build\": {\n            \"image\": \"cvat/ultralytics-yolov5\",\n            \"baseImage\": \"ultralytics/yolov5:latest-cpu\",\n            \"directives\": {\n                \"preCopy\": [\n                    {\n                        \"kind\": \"USER\",\n                        \"value\": \"root\"\n                    },\n                    {\n                        \"kind\": \"RUN\",\n                        \"value\": \"apt update \u0026\u0026 apt install --no-install-recommends -y libglib2.0-0\"\n                    },\n                    {\n                        \"kind\": \"WORKDIR\",\n                        \"value\": \"/opt/nuclio\"\n                    }\n                ]\n            },\n            \"codeEntryType\": \"image\",\n            \"timestamp\": 1659368967\n        },\n        \"platform\": {\n            \"attributes\": {\n                \"mountMode\": \"volume\",\n                \"restartPolicy\": {\n                    \"maximumRetryCount\": 3,\n                    \"name\": \"always\"\n                }\n            }\n        },\n        \"readinessTimeoutSeconds\": 60,\n        \"securityContext\": {},\n        \"eventTimeout\": \"30s\"\n    },\n    \"PlatformConfig\": null\n}", "platformConfig": "{\n    \"kind\": \"local\",\n    \"webAdmin\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8081\"\n    },\n    \"healthCheck\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8082\"\n    },\n    \"logger\": {\n        \"sinks\": {\n            \"stdout\": {\n                \"kind\": \"stdout\"\n            }\n        },\n        \"system\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ],\n        \"functions\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ]\n    },\n    \"metrics\": {},\n    \"scaleToZero\": {},\n    \"autoScale\": {},\n    \"cronTriggerCreationMode\": \"processor\",\n    \"ingressConfig\": {},\n    \"kube\": {\n        \"defaultServiceType\": \"ClusterIP\"\n    },\n    \"imageRegistryOverrides\": {}\n}"} /usr/local/lib/python3.8/dist-packages/torch/hub.py:266: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour   warnings.warn( /usr/local/lib/python3.8/dist-packages/torch/hub.py:266: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour   warnings.warn( Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip YOLOv5 🚀 2022-8-1 Python-3.8.10 torch-1.12.0+cpu CPU

YOLOv5 🚀 2022-8-1 Python-3.8.10 torch-1.12.0+cpu CPU

Downloading https://github.com/ultralytics/yolov5/releases/download/v6.1/yolov5s.pt to yolov5s.pt... Downloading https://github.com/ultralytics/yolov5/releases/download/v6.1/yolov5s.pt to yolov5s.pt...

  0%|          | 0.00/14.1M [00:00<?, ?B/s]   0%|          | 0.00/14.1M [00:00<?, ?B/s]   0%|          | 64.0k/14.1M [00:00<00:22, 653kB/s]   0%|          | 64.0k/14.1M [00:00<00:24, 593kB/s]   2%|▏         | 224k/14.1M [00:00<00:12, 1.20MB/s]   1%|▏         | 208k/14.1M [00:00<00:14, 1.02MB/s]   3%|▎         | 368k/14.1M [00:00<00:10, 1.31MB/s]   2%|▏         | 336k/14.1M [00:00<00:12, 1.13MB/s]   4%|▍         | 544k/14.1M [00:00<00:09, 1.48MB/s]   3%|▎         | 480k/14.1M [00:00<00:11, 1.24MB/s]   5%|▌         | 768k/14.1M [00:00<00:08, 1.71MB/s]   4%|▍         | 640k/14.1M [00:00<00:10, 1.36MB/s]   5%|▌         | 776k/14.1M [00:00<00:11, 1.22MB/s]   6%|▋         | 936k/14.1M [00:00<00:10, 1.38MB/s]   6%|▋         | 904k/14.1M [00:00<00:12, 1.07MB/s]   7%|▋         | 1.05M/14.1M [00:00<00:11, 1.22MB/s]   9%|▊         | 1.20M/14.1M [00:00<00:10, 1.29MB/s]   8%|▊         | 1.06M/14.1M [00:00<00:11, 1.24MB/s]   9%|▉         | 1.34M/14.1M [00:01<00:10, 1.31MB/s]   8%|▊         | 1.19M/14.1M [00:01<00:11, 1.23MB/s]  11%|█         | 1.48M/14.1M [00:01<00:09, 1.37MB/s]  10%|▉         | 1.34M/14.1M [00:01<00:10, 1.33MB/s]  10%|█         | 1.48M/14.1M [00:02<00:37, 350kB/s]   12%|█▏        | 1.62M/14.1M [00:02<00:39, 334kB/s]   11%|█         | 1.57M/14.1M [00:02<00:33, 395kB/s]  13%|█▎        | 1.89M/14.1M [00:02<00:23, 547kB/s]  12%|█▏        | 1.73M/14.1M [00:02<00:23, 547kB/s]  15%|█▍        | 2.11M/14.1M [00:02<00:17, 740kB/s]  14%|█▍        | 2.00M/14.1M [00:02<00:14, 854kB/s]  16%|█▋        | 2.30M/14.1M [00:02<00:13, 897kB/s]  15%|█▌        | 2.17M/14.1M [00:02<00:12, 1.00MB/s]  17%|█▋        | 2.47M/14.1M [00:02<00:12, 976kB/s]  16%|█▋        | 2.33M/14.1M [00:02<00:11, 1.06MB/s]  19%|█▊        | 2.62M/14.1M [00:02<00:11, 1.07MB/s]  18%|█▊        | 2.48M/14.1M [00:02<00:10, 1.15MB/s]  20%|█▉        | 2.81M/14.1M [00:03<00:09, 1.23MB/s]  19%|█▉        | 2.66M/14.1M [00:03<00:09, 1.28MB/s]  21%|██        | 2.98M/14.1M [00:03<00:08, 1.33MB/s]  20%|█▉        | 2.81M/14.1M [00:03<00:09, 1.28MB/s]  23%|██▎       | 3.19M/14.1M [00:03<00:07, 1.51MB/s]  21%|██        | 2.95M/14.1M [00:03<00:09, 1.28MB/s]  24%|██▍       | 3.41M/14.1M [00:03<00:06, 1.66MB/s]  22%|██▏       | 3.11M/14.1M [00:03<00:08, 1.36MB/s]  26%|██▌       | 3.62M/14.1M [00:03<00:06, 1.75MB/s]  23%|██▎       | 3.25M/14.1M [00:03<00:08, 1.34MB/s]  27%|██▋       | 3.81M/14.1M [00:03<00:06, 1.74MB/s]  24%|██▍       | 3.39M/14.1M [00:03<00:08, 1.36MB/s]  28%|██▊       | 4.00M/14.1M [00:03<00:06, 1.76MB/s]  25%|██▌       | 3.56M/14.1M [00:03<00:07, 1.47MB/s]  30%|██▉       | 4.19M/14.1M [00:03<00:05, 1.76MB/s]  26%|██▋       | 3.71M/14.1M [00:03<00:07, 1.39MB/s]  31%|███       | 4.37M/14.1M [00:03<00:05, 1.78MB/s]  27%|██▋       | 3.85M/14.1M [00:03<00:07, 1.36MB/s]  32%|███▏      | 4.55M/14.1M [00:04<00:06, 1.50MB/s]  28%|██▊       | 3.98M/14.1M [00:04<00:08, 1.27MB/s]  33%|███▎      | 4.70M/14.1M [00:04<00:07, 1.38MB/s]  29%|██▉       | 4.11M/14.1M [00:04<00:09, 1.15MB/s]  34%|███▍      | 4.84M/14.1M [00:04<00:07, 1.25MB/s]  30%|██▉       | 4.23M/14.1M [00:04<00:10, 1.01MB/s]  36%|███▌      | 5.03M/14.1M [00:04<00:06, 1.42MB/s]  31%|███       | 4.36M/14.1M [00:04<00:09, 1.07MB/s]  37%|███▋      | 5.22M/14.1M [00:04<00:06, 1.53MB/s]  32%|███▏      | 4.47M/14.1M [00:04<00:09, 1.08MB/s]  38%|███▊      | 5.41M/14.1M [00:04<00:05, 1.62MB/s]  32%|███▏      | 4.58M/14.1M [00:04<00:09, 1.05MB/s]  39%|███▉      | 5.58M/14.1M [00:04<00:05, 1.63MB/s]  33%|███▎      | 4.70M/14.1M [00:04<00:09, 1.07MB/s]  41%|████▏     | 5.86M/14.1M [00:04<00:04, 1.93MB/s]  34%|███▍      | 4.84M/14.1M [00:04<00:08, 1.15MB/s]  43%|████▎     | 6.09M/14.1M [00:05<00:04, 2.05MB/s]  35%|███▌      | 4.97M/14.1M [00:05<00:08, 1.14MB/s]  45%|████▍     | 6.30M/14.1M [00:05<00:03, 2.07MB/s]  36%|███▌      | 5.11M/14.1M [00:05<00:07, 1.21MB/s]  46%|████▌     | 6.52M/14.1M [00:05<00:03, 2.05MB/s]  37%|███▋      | 5.23M/14.1M [00:05<00:07, 1.17MB/s]  48%|████▊     | 6.72M/14.1M [00:05<00:04, 1.79MB/s]  38%|███▊      | 5.35M/14.1M [00:05<00:08, 1.07MB/s]  49%|████▉     | 6.91M/14.1M [00:05<00:04, 1.81MB/s]  39%|███▊      | 5.46M/14.1M [00:05<00:08, 1.05MB/s]  50%|█████     | 7.09M/14.1M [00:05<00:04, 1.81MB/s]  40%|███▉      | 5.59M/14.1M [00:05<00:07, 1.14MB/s]  52%|█████▏    | 7.33M/14.1M [00:05<00:03, 2.00MB/s]  40%|████      | 5.71M/14.1M [00:05<00:07, 1.16MB/s]  53%|█████▎    | 7.52M/14.1M [00:05<00:03, 1.98MB/s]  41%|████▏     | 5.83M/14.1M [00:05<00:07, 1.17MB/s]  55%|█████▍    | 7.72M/14.1M [00:05<00:03, 1.85MB/s]  42%|████▏     | 5.95M/14.1M [00:05<00:07, 1.21MB/s]  56%|█████▌    | 7.92M/14.1M [00:06<00:03, 1.84MB/s]  43%|████▎     | 6.11M/14.1M [00:06<00:06, 1.25MB/s]  58%|█████▊    | 8.15M/14.1M [00:06<00:03, 1.98MB/s]  44%|████▍     | 6.28M/14.1M [00:06<00:05, 1.40MB/s]  59%|█████▉    | 8.34M/14.1M [00:06<00:03, 1.88MB/s]  46%|████▌     | 6.44M/14.1M [00:06<00:05, 1.44MB/s]  60%|██████    | 8.53M/14.1M [00:06<00:03, 1.89MB/s]  47%|████▋     | 6.61M/14.1M [00:06<00:05, 1.51MB/s]  48%|████▊     | 6.76M/14.1M [00:06<00:05, 1.52MB/s]  62%|██████▏   | 8.72M/14.1M [00:06<00:03, 1.82MB/s]  63%|██████▎   | 8.91M/14.1M [00:06<00:02, 1.83MB/s]  49%|████▉     | 6.92M/14.1M [00:06<00:04, 1.55MB/s]  50%|█████     | 7.09M/14.1M [00:06<00:04, 1.58MB/s]  64%|██████▍   | 9.09M/14.1M [00:06<00:02, 1.82MB/s]  51%|█████▏    | 7.25M/14.1M [00:06<00:04, 1.58MB/s]  66%|██████▌   | 9.27M/14.1M [00:06<00:02, 1.82MB/s]  52%|█████▏    | 7.41M/14.1M [00:07<00:10, 649kB/s]   67%|██████▋   | 9.45M/14.1M [00:07<00:06, 737kB/s]   54%|█████▍    | 7.66M/14.1M [00:07<00:07, 924kB/s]  69%|██████▉   | 9.72M/14.1M [00:07<00:04, 985kB/s]  59%|█████▉    | 8.34M/14.1M [00:07<00:03, 1.98MB/s]  70%|███████   | 9.89M/14.1M [00:07<00:04, 1.10MB/s]  71%|███████   | 10.0M/14.1M [00:07<00:03, 1.12MB/s]  61%|██████▏   | 8.66M/14.1M [00:07<00:03, 1.87MB/s]  72%|███████▏  | 10.2M/14.1M [00:07<00:03, 1.15MB/s]  63%|██████▎   | 8.92M/14.1M [00:08<00:03, 1.79MB/s]  73%|███████▎  | 10.3M/14.1M [00:08<00:03, 1.19MB/s]  65%|██████▍   | 9.16M/14.1M [00:08<00:02, 1.77MB/s]  74%|███████▍  | 10.5M/14.1M [00:08<00:03, 1.17MB/s]  75%|███████▌  | 10.6M/14.1M [00:08<00:03, 944kB/s]   66%|██████▋   | 9.37M/14.1M [00:08<00:03, 1.41MB/s]  76%|███████▌  | 10.7M/14.1M [00:08<00:04, 837kB/s]  68%|██████▊   | 9.54M/14.1M [00:08<00:03, 1.27MB/s]  77%|███████▋  | 10.8M/14.1M [00:08<00:03, 960kB/s]  69%|██████▊   | 9.70M/14.1M [00:08<00:03, 1.33MB/s]  78%|███████▊  | 11.0M/14.1M [00:08<00:03, 995kB/s]  70%|██████▉   | 9.85M/14.1M [00:08<00:03, 1.25MB/s]  78%|███████▊  | 11.1M/14.1M [00:08<00:03, 922kB/s]  71%|███████   | 9.99M/14.1M [00:08<00:03, 1.28MB/s]  79%|███████▉  | 11.2M/14.1M [00:09<00:02, 1.07MB/s]  72%|███████▏  | 10.2M/14.1M [00:09<00:02, 1.41MB/s]  81%|████████  | 11.4M/14.1M [00:09<00:02, 1.20MB/s]  73%|███████▎  | 10.3M/14.1M [00:09<00:02, 1.49MB/s]  82%|████████▏ | 11.5M/14.1M [00:09<00:02, 1.28MB/s]  75%|███████▍  | 10.5M/14.1M [00:09<00:02, 1.60MB/s]  83%|████████▎ | 11.7M/14.1M [00:09<00:01, 1.35MB/s]  76%|███████▌  | 10.7M/14.1M [00:09<00:02, 1.64MB/s]  84%|████████▍ | 11.8M/14.1M [00:09<00:01, 1.36MB/s]  77%|███████▋  | 10.9M/14.1M [00:09<00:02, 1.64MB/s]  85%|████████▌ | 12.0M/14.1M [00:09<00:01, 1.49MB/s]  78%|███████▊  | 11.0M/14.1M [00:09<00:02, 1.55MB/s]  86%|████████▋ | 12.2M/14.1M [00:09<00:01, 1.55MB/s]  79%|███████▉  | 11.2M/14.1M [00:09<00:02, 1.41MB/s]  88%|████████▊ | 12.4M/14.1M [00:09<00:01, 1.59MB/s]  80%|████████  | 11.3M/14.1M [00:09<00:02, 1.40MB/s]  81%|████████  | 11.5M/14.1M [00:09<00:02, 1.37MB/s]  89%|████████▊ | 12.5M/14.1M [00:10<00:01, 1.30MB/s]  82%|████████▏ | 11.6M/14.1M [00:10<00:01, 1.40MB/s]  90%|█████████ | 12.8M/14.1M [00:10<00:00, 1.58MB/s]  83%|████████▎ | 11.8M/14.1M [00:10<00:01, 1.34MB/s]  92%|█████████▏| 12.9M/14.1M [00:10<00:00, 1.55MB/s]  84%|████████▍ | 11.9M/14.1M [00:10<00:01, 1.29MB/s]  93%|█████████▎| 13.1M/14.1M [00:10<00:00, 1.47MB/s]  85%|████████▌ | 12.0M/14.1M [00:10<00:01, 1.15MB/s]  94%|█████████▎| 13.2M/14.1M [00:10<00:00, 1.27MB/s]  86%|████████▌ | 12.1M/14.1M [00:10<00:02, 1.00MB/s]  95%|█████████▍| 13.4M/14.1M [00:10<00:00, 1.19MB/s]  87%|████████▋ | 12.2M/14.1M [00:10<00:01, 994kB/s]   96%|█████████▌| 13.5M/14.1M [00:10<00:00, 1.17MB/s]  87%|████████▋ | 12.3M/14.1M [00:10<00:01, 984kB/s]  96%|█████████▋| 13.6M/14.1M [00:10<00:00, 1.12MB/s]  88%|████████▊ | 12.5M/14.1M [00:10<00:01, 1.04MB/s]  97%|█████████▋| 13.8M/14.1M [00:11<00:00, 1.19MB/s]  89%|████████▉ | 12.6M/14.1M [00:11<00:01, 1.10MB/s]  98%|█████████▊| 13.9M/14.1M [00:11<00:00, 1.22MB/s]  90%|█████████ | 12.7M/14.1M [00:11<00:01, 1.15MB/s]  99%|█████████▉| 14.0M/14.1M [00:11<00:00, 1.25MB/s] 100%|██████████| 14.1M/14.1M [00:11<00:00, 1.31MB/s]

 91%|█████████ | 12.8M/14.1M [00:11<00:01, 1.15MB/s]Fusing layers... 

 92%|█████████▏| 13.0M/14.1M [00:11<00:01, 1.15MB/s]  93%|█████████▎| 13.2M/14.1M [00:11<00:00, 1.48MB/s]  95%|█████████▍| 13.4M/14.1M [00:11<00:00, 1.61MB/s]  97%|█████████▋| 13.6M/14.1M [00:11<00:00, 1.84MB/s]  98%|█████████▊| 13.8M/14.1M [00:11<00:00, 1.87MB/s]  99%|█████████▉| 14.0M/14.1M [00:11<00:00, 1.86MB/s] 100%|██████████| 14.1M/14.1M [00:12<00:00, 1.23MB/s]

Fusing layers...  [W NNPACK.cpp:51] Could not initialize NNPACK! Reason: Unsupported hardware. YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients Adding AutoShape...  Init context...100% Replacing logger output [W NNPACK.cpp:51] Could not initialize NNPACK! Reason: Unsupported hardware. YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients Adding AutoShape...  Init context...100% Replacing logger output Run yolo-v5 model Exception caught in handler Run yolo-v5 model Exception caught in handler Run yolo-v5 model Run yolo-v5 model Run yolo-v5 model Run yolo-v5 model 22.08.01 15:49:30.788 cessor.healthcheck.server (I) Listening {"listenAddress": ":8082"} 22.08.01 15:49:30.788            processor.http (D) Creating worker pool {"num": 2} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cbjvc2kv77a95cqk96c0.sock"} 22.08.01 15:49:30.788 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cbjvc2kv77a95cqk96cg.sock"} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 22.08.01 15:49:30.788 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Using Python handler {"handler": "main:handler"} 22.08.01 15:49:30.788 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Using Python executable {"path": "/usr/bin/python3"} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"} 22.08.01 15:49:30.788 sor.http.w1.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-cbjvc2kv77a95cqk96c0.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger"} 22.08.01 15:49:30.788 sor.http.w0.python.logger (D) Using Python executable {"path": "/usr/bin/python3"} 22.08.01 15:49:30.788 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"} 22.08.01 15:49:30.789 sor.http.w0.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-cbjvc2kv77a95cqk96cg.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger"} 22.08.01 15:49:34.888 sor.http.w1.python.logger (I) Wrapper connected {"wid": 1, "pid": 13} 22.08.01 15:49:34.889 sor.http.w1.python.logger (D) Waiting for start l{"datetime": "2022-08-01 15:49:34,889", "level": "info", "message": "Init context...  0%", "with": {"worker_id": "1"}} l{"datetime": "2022-08-01 15:49:35,426", "level": "info", "message": "Init context...  0%", "with": {"worker_id": "0"}} 22.08.01 15:49:35.445 sor.http.w0.python.logger (I) Wrapper connected {"wid": 0, "pid": 14} 22.08.01 15:49:35.445 sor.http.w0.python.logger (D) Waiting for start l{"datetime": "2022-08-01 15:50:02,685", "level": "info", "message": "Init context...100%", "with": {"worker_id": "1"}} l{"datetime": "2022-08-01 15:50:02,685", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "1"}} 22.08.01 15:50:02.685 sor.http.w1.python.logger (D) Started l{"datetime": "2022-08-01 15:50:03,389", "level": "info", "message": "Init context...100%", "with": {"worker_id": "0"}} l{"datetime": "2022-08-01 15:50:03,389", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "0"}} 22.08.01 15:50:03.389 sor.http.w0.python.logger (D) Started 22.08.01 15:50:03.390                 processor (I) Starting event timeout watcher {"timeout": "30s"} 22.08.01 15:50:03.390 .webadmin.server.triggers (D) Registered custom route {"pattern": "/{id}/stats", "method": "GET"} 22.08.01 15:50:03.390 processor.webadmin.server (D) Registered resource {"name": "triggers"} 22.08.01 15:50:03.390                 processor (W) No metric sinks configured, metrics will not be published 22.08.01 15:50:03.390                 processor (D) Starting triggers {"triggers": [{"ID":"myHttpTrigger","Logger":{},"WorkerAllocator":{},"Class":"sync","Kind":"http","Name":"myHttpTrigger","Statistics":{"EventsHandledSuccessTotal":0,"EventsHandledFailureTotal":0,"WorkerAllocatorStatistics":{"WorkerAllocationCount":0,"WorkerAllocationSuccessImmediateTotal":0,"WorkerAllocationSuccessAfterWaitTotal":0,"WorkerAllocationTimeoutTotal":0,"WorkerAllocationWaitDurationMilliSecondsSum":0,"WorkerAllocationWorkersAvailablePercentage":0}},"Namespace":"nuclio","FunctionName":"ultralytics-yolov5"}]} 22.08.01 15:50:03.390            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "cors": null} 22.08.01 15:50:03.390 processor.webadmin.server (I) Listening {"listenAddress": ":8081"} 22.08.01 15:50:03.390                 processor (D) Processor started 22.08.01 15:51:07.745 sor.http.w0.python.logger (I) Run yolo-v5 model {"worker_id": "0"} 22.08.01 15:51:07.746 sor.http.w0.python.logger (E) Exception caught in handler {"exc": "'NoneType' object is not subscriptable", "traceback": "Traceback (most recent call last):\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 114, in serve_requests\n    self._handle_event(event)\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 262, in _handle_event\n    entrypoint_output = self._entrypoint(self._context, event)\n  File \"/opt/nuclio/main.py\", line 19, in handler\n    buf = io.BytesIO(base64.b64decode(data[\"image\"]))\nTypeError: 'NoneType' object is not subscriptable\n", "worker_id": "0"} 22.08.01 15:51:08.942 sor.http.w1.python.logger (I) Run yolo-v5 model {"worker_id": "1"} 22.08.01 15:51:08.942 sor.http.w1.python.logger (E) Exception caught in handler {"exc": "'NoneType' object is not subscriptable", "traceback": "Traceback (most recent call last):\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 114, in serve_requests\n    self._handle_event(event)\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 262, in _handle_event\n    entrypoint_output = self._entrypoint(self._context, event)\n  File \"/opt/nuclio/main.py\", line 19, in handler\n    buf = io.BytesIO(base64.b64decode(data[\"image\"]))\nTypeError: 'NoneType' object is not subscriptable\n", "worker_id": "1"} 22.08.01 16:13:17.083            processor.http (I) Run yolo-v5 model {"worker_id": "0"} 22.08.01 16:15:16.255            processor.http (I) Run yolo-v5 model {"worker_id": "1"} 22.08.01 16:15:27.077            processor.http (I) Run yolo-v5 model {"worker_id": "0"} 22.08.01 16:18:02.100            processor.http (I) Run yolo-v5 model {"worker_id": "1"}

Next steps

You may join our Gitter channel for community support.

dschoerk commented 1 year ago

looks like the body of the http request isn't delivering the image correctly. are you using google chrome? the docs state that it's the only supported browser.

i just tried with the develop branch on https://github.com/cvat-ai/cvat and spun up an instance within WSL with the CPU version of YOLOv5 ... and it worked fine.

dschoerk commented 1 year ago

logs for comparison

i'm not getting "[W NNPACK.cpp:51] Could not initialize NNPACK! Reason: Unsupported hardware." although that seems to be just a warning.


docker logs nuclio-nuclio-ultralytics-yolov5
22.08.03 12:20:00.342                 processor (I) Starting processor {"version": "Label: 1.9.3, Git commit: 0425d5958c6a6c3ab6508e83886d2867fe7bd82c, OS: linux, Arch: amd64, Go version: go1.17.10"}
22.08.03 12:20:00.342                 processor (D) Read configuration {"config": "{\n    \"metadata\": {\n        \"name\": \"ultralytics-yolov5\",\n        \"namespace\": \"nuclio\",\n        \"labels\": {\n            \"nuclio.io/project-name\": \"cvat\"\n        },\n        \"annotations\": {\n            \"framework\": \"pytorch\",\n            \"name\": \"YOLO v5\",\n            \"spec\": \"[\\n  { \\\"id\\\": 0, \\\"name\\\": \\\"person\\\" },\\n  { \\\"id\\\": 1, \\\"name\\\": \\\"bicycle\\\" },\\n  { \\\"id\\\": 2, \\\"name\\\": \\\"car\\\" },\\n  { \\\"id\\\": 3, \\\"name\\\": \\\"motorbike\\\" },\\n  { \\\"id\\\": 4, \\\"name\\\": \\\"aeroplane\\\" },\\n  { \\\"id\\\": 5, \\\"name\\\": \\\"bus\\\" },\\n  { \\\"id\\\": 6, \\\"name\\\": \\\"train\\\" },\\n  { \\\"id\\\": 7, \\\"name\\\": \\\"truck\\\" },\\n  { \\\"id\\\": 8, \\\"name\\\": \\\"boat\\\" },\\n  { \\\"id\\\": 9, \\\"name\\\": \\\"traffic light\\\" },\\n  { \\\"id\\\": 10, \\\"name\\\": \\\"fire hydrant\\\" },\\n  { \\\"id\\\": 11, \\\"name\\\": \\\"stop sign\\\" },\\n  { \\\"id\\\": 12, \\\"name\\\": \\\"parking meter\\\" },\\n  { \\\"id\\\": 13, \\\"name\\\": \\\"bench\\\" },\\n  { \\\"id\\\": 14, \\\"name\\\": \\\"bird\\\" },\\n  { \\\"id\\\": 15, \\\"name\\\": \\\"cat\\\" },\\n  { \\\"id\\\": 16, \\\"name\\\": \\\"dog\\\" },\\n  { \\\"id\\\": 17, \\\"name\\\": \\\"horse\\\" },\\n  { \\\"id\\\": 18, \\\"name\\\": \\\"sheep\\\" },\\n  { \\\"id\\\": 19, \\\"name\\\": \\\"cow\\\" },\\n  { \\\"id\\\": 20, \\\"name\\\": \\\"elephant\\\" },\\n  { \\\"id\\\": 21, \\\"name\\\": \\\"bear\\\" },\\n  { \\\"id\\\": 22, \\\"name\\\": \\\"zebra\\\" },\\n  { \\\"id\\\": 23, \\\"name\\\": \\\"giraffe\\\" },\\n  { \\\"id\\\": 24, \\\"name\\\": \\\"backpack\\\" },\\n  { \\\"id\\\": 25, \\\"name\\\": \\\"umbrella\\\" },\\n  { \\\"id\\\": 26, \\\"name\\\": \\\"handbag\\\" },\\n  { \\\"id\\\": 27, \\\"name\\\": \\\"tie\\\" },\\n  { \\\"id\\\": 28, \\\"name\\\": \\\"suitcase\\\" },\\n  { \\\"id\\\": 29, \\\"name\\\": \\\"frisbee\\\" },\\n  { \\\"id\\\": 30, \\\"name\\\": \\\"skis\\\" },\\n  { \\\"id\\\": 31, \\\"name\\\": \\\"snowboard\\\" },\\n  { \\\"id\\\": 32, \\\"name\\\": \\\"sports ball\\\" },\\n  { \\\"id\\\": 33, \\\"name\\\": \\\"kite\\\" },\\n  { \\\"id\\\": 34, \\\"name\\\": \\\"baseball bat\\\" },\\n  { \\\"id\\\": 35, \\\"name\\\": \\\"baseball glove\\\" },\\n  { \\\"id\\\": 36, \\\"name\\\": \\\"skateboard\\\" },\\n  { \\\"id\\\": 37, \\\"name\\\": \\\"surfboard\\\" },\\n  { \\\"id\\\": 38, \\\"name\\\": \\\"tennis racket\\\" },\\n  { \\\"id\\\": 39, \\\"name\\\": \\\"bottle\\\" },\\n  { \\\"id\\\": 40, \\\"name\\\": \\\"wine glass\\\" },\\n  { \\\"id\\\": 41, \\\"name\\\": \\\"cup\\\" },\\n  { \\\"id\\\": 42, \\\"name\\\": \\\"fork\\\" },\\n  { \\\"id\\\": 43, \\\"name\\\": \\\"knife\\\" },\\n  { \\\"id\\\": 44, \\\"name\\\": \\\"spoon\\\" },\\n  { \\\"id\\\": 45, \\\"name\\\": \\\"bowl\\\" },\\n  { \\\"id\\\": 46, \\\"name\\\": \\\"banana\\\" },\\n  { \\\"id\\\": 47, \\\"name\\\": \\\"apple\\\" },\\n  { \\\"id\\\": 48, \\\"name\\\": \\\"sandwich\\\" },\\n  { \\\"id\\\": 49, \\\"name\\\": \\\"orange\\\" },\\n  { \\\"id\\\": 50, \\\"name\\\": \\\"broccoli\\\" },\\n  { \\\"id\\\": 51, \\\"name\\\": \\\"carrot\\\" },\\n  { \\\"id\\\": 52, \\\"name\\\": \\\"hot dog\\\" },\\n  { \\\"id\\\": 53, \\\"name\\\": \\\"pizza\\\" },\\n  { \\\"id\\\": 54, \\\"name\\\": \\\"donut\\\" },\\n  { \\\"id\\\": 55, \\\"name\\\": \\\"cake\\\" },\\n  { \\\"id\\\": 56, \\\"name\\\": \\\"chair\\\" },\\n  { \\\"id\\\": 57, \\\"name\\\": \\\"sofa\\\" },\\n  { \\\"id\\\": 58, \\\"name\\\": \\\"pottedplant\\\" },\\n  { \\\"id\\\": 59, \\\"name\\\": \\\"bed\\\" },\\n  { \\\"id\\\": 60, \\\"name\\\": \\\"diningtable\\\" },\\n  { \\\"id\\\": 61, \\\"name\\\": \\\"toilet\\\" },\\n  { \\\"id\\\": 62, \\\"name\\\": \\\"tvmonitor\\\" },\\n  { \\\"id\\\": 63, \\\"name\\\": \\\"laptop\\\" },\\n  { \\\"id\\\": 64, \\\"name\\\": \\\"mouse\\\" },\\n  { \\\"id\\\": 65, \\\"name\\\": \\\"remote\\\" },\\n  { \\\"id\\\": 66, \\\"name\\\": \\\"keyboard\\\" },\\n  { \\\"id\\\": 67, \\\"name\\\": \\\"cell phone\\\" },\\n  { \\\"id\\\": 68, \\\"name\\\": \\\"microwave\\\" },\\n  { \\\"id\\\": 69, \\\"name\\\": \\\"oven\\\" },\\n  { \\\"id\\\": 70, \\\"name\\\": \\\"toaster\\\" },\\n  { \\\"id\\\": 71, \\\"name\\\": \\\"sink\\\" },\\n  { \\\"id\\\": 72, \\\"name\\\": \\\"refrigerator\\\" },\\n  { \\\"id\\\": 73, \\\"name\\\": \\\"book\\\" },\\n  { \\\"id\\\": 74, \\\"name\\\": \\\"clock\\\" },\\n  { \\\"id\\\": 75, \\\"name\\\": \\\"vase\\\" },\\n  { \\\"id\\\": 76, \\\"name\\\": \\\"scissors\\\" },\\n  { \\\"id\\\": 77, \\\"name\\\": \\\"teddy bear\\\" },\\n  { \\\"id\\\": 78, \\\"name\\\": \\\"hair drier\\\" },\\n  { \\\"id\\\": 79, \\\"name\\\": \\\"toothbrush\\\" }\\n]\\n\",\n            \"type\": \"detector\"\n        }\n    },\n    \"spec\": {\n        \"description\": \"YOLO v5 via pytorch hub\",\n        \"handler\": \"main:handler\",\n        \"runtime\": \"python:3.6\",\n        \"resources\": {\n            \"requests\": {\n                \"cpu\": \"25m\",\n                \"memory\": \"1Mi\"\n            }\n        },\n        \"image\": \"cvat/ultralytics-yolov5:latest\",\n        \"targetCPU\": 75,\n        \"triggers\": {\n            \"myHttpTrigger\": {\n                \"class\": \"\",\n                \"kind\": \"http\",\n                \"name\": \"myHttpTrigger\",\n                \"maxWorkers\": 2,\n                \"workerAvailabilityTimeoutMilliseconds\": 10000,\n                \"attributes\": {\n                    \"maxRequestBodySize\": 33554432\n                }\n            }\n        },\n        \"volumes\": [\n            {\n                \"volume\": {\n                    \"name\": \"volume-1\",\n                    \"hostPath\": {\n                        \"path\": \"/home/cvat/serverless/pytorch/common\"\n                    }\n                },\n                \"volumeMount\": {\n                    \"name\": \"volume-1\",\n                    \"mountPath\": \"/opt/nuclio/common\"\n                }\n            }\n        ],\n        \"build\": {\n            \"image\": \"cvat/ultralytics-yolov5\",\n            \"baseImage\": \"ultralytics/yolov5:latest-cpu\",\n            \"directives\": {\n                \"preCopy\": [\n                    {\n                        \"kind\": \"USER\",\n                        \"value\": \"root\"\n                    },\n                    {\n                        \"kind\": \"RUN\",\n                        \"value\": \"apt update \\u0026\\u0026 apt install --no-install-recommends -y libglib2.0-0\"\n                    },\n                    {\n                        \"kind\": \"WORKDIR\",\n                        \"value\": \"/opt/nuclio\"\n                    }\n                ]\n            },\n            \"codeEntryType\": \"image\",\n            \"timestamp\": 1659529198\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        \"eventTimeout\": \"30s\"\n    },\n    \"PlatformConfig\": null\n}", "platformConfig": "{\n    \"kind\": \"local\",\n    \"webAdmin\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8081\"\n    },\n    \"healthCheck\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8082\"\n    },\n    \"logger\": {\n        \"sinks\": {\n            \"stdout\": {\n                \"kind\": \"stdout\"\n            }\n        },\n        \"system\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ],\n        \"functions\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ]\n    },\n    \"metrics\": {},\n    \"scaleToZero\": {\n        \"multiTargetStrategy\": \"random\"\n    },\n    \"autoScale\": {},\n    \"cronTriggerCreationMode\": \"processor\",\n    \"functionReadinessTimeout\": \"2m0s\",\n    \"ingressConfig\": {},\n    \"kube\": {\n        \"defaultServiceType\": \"ClusterIP\",\n        \"defaultFunctionPodResources\": {\n            \"requests\": {},\n            \"limits\": {}\n        }\n    },\n    \"local\": {\n        \"FunctionContainersHealthinessEnabled\": false,\n        \"FunctionContainersHealthinessTimeout\": 5000000000,\n        \"FunctionContainersHealthinessInterval\": 30000000000\n    },\n    \"imageRegistryOverrides\": {},\n    \"opa\": {\n        \"address\": \"127.0.0.1:8181\",\n        \"clientKind\": \"nop\",\n        \"requestTimeout\": 10,\n        \"permissionQueryPath\": \"/v1/data/iguazio/authz/allow\",\n        \"permissionFilterPath\": \"/v1/data/iguazio/authz/filter_allowed\"\n    },\n    \"streamMonitoring\": {\n        \"webapiURL\": \"http://v3io-webapi:8081\",\n        \"v3ioRequestConcurrency\": 64\n    }\n}"}
22.08.03 12:20:00.342 cessor.healthcheck.server (I) Listening {"listenAddress": ":8082"}
22.08.03 12:20:00.342            processor.http (D) Creating worker pool {"num": 2}
22.08.03 12:20:00.342 sor.http.w1.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cbl6fs5isclmr04d3g7g.sock"}
22.08.03 12:20:00.342 sor.http.w1.python.logger (W) Python 3.6 runtime is deprecated and will soon not be supported. Please migrate your code and use Python 3.7 runtime (`python:3.7`) or higher
22.08.03 12:20:00.342 sor.http.w1.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"}
22.08.03 12:20:00.342 sor.http.w1.python.logger (D) Using Python handler {"handler": "main:handler"}
22.08.03 12:20:00.343 sor.http.w1.python.logger (D) Using Python executable {"path": "/usr/bin/python3"}
22.08.03 12:20:00.343 sor.http.w1.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"}
22.08.03 12:20:00.343 sor.http.w1.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-cbl6fs5isclmr04d3g7g.sock --platform-kind local --namespace nuclio --worker-id 1 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-cbl6fs5isclmr04d3g80.sock"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (W) Python 3.6 runtime is deprecated and will soon not be supported. Please migrate your code and use Python 3.7 runtime (`python:3.7`) or higher
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Using Python executable {"path": "/usr/bin/python3"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"}
22.08.03 12:20:00.343 sor.http.w0.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-cbl6fs5isclmr04d3g80.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"}
22.08.03 12:20:01.152 sor.http.w0.python.logger (I) Wrapper connected {"wid": 0, "pid": 16}
22.08.03 12:20:01.152 sor.http.w0.python.logger (D) Waiting for start
{"datetime": "2022-08-03 12:20:01,152", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "0"}}
22.08.03 12:20:01.152 sor.http.w1.python.logger (I) Wrapper connected {"wid": 1, "pid": 15}
22.08.03 12:20:01.152 sor.http.w1.python.logger (D) Waiting for start
22.08.03 12:20:01.152 sor.http.w0.python.logger (I) Init context...  0% {"worker_id": "0"}
{"datetime": "2022-08-03 12:20:01,152", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "1"}}
22.08.03 12:20:01.152 sor.http.w1.python.logger (I) Init context...  0% {"worker_id": "1"}
/usr/local/lib/python3.8/dist-packages/torch/hub.py:266: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour
  warnings.warn(
/usr/local/lib/python3.8/dist-packages/torch/hub.py:266: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour
  warnings.warn(
Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip
Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip
YOLOv5 🚀 2022-8-3 Python-3.8.10 torch-1.12.0+cpu CPU

YOLOv5 🚀 2022-8-3 Python-3.8.10 torch-1.12.0+cpu CPU

Downloading https://github.com/ultralytics/yolov5/releases/download/v6.1/yolov5s.pt to yolov5s.pt...
Downloading https://github.com/ultralytics/yolov5/releases/download/v6.1/yolov5s.pt to yolov5s.pt...
100%|██████████| 14.1M/14.1M [00:02<00:00, 5.78MB/s]

100%|██████████| 14.1M/14.1M [00:02<00:00, 5.76MB/s]

Fusing layers...
Fusing layers...
YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
Adding AutoShape...
Init context...100%
22.08.03 12:20:15.064 sor.http.w1.python.logger (I) Init context...100% {"worker_id": "1"}
22.08.03 12:20:15.064 sor.http.w1.python.logger (D) Started
YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
Adding AutoShape...
Init context...100%
22.08.03 12:20:15.079 sor.http.w0.python.logger (I) Init context...100% {"worker_id": "0"}
22.08.03 12:20:15.079 sor.http.w0.python.logger (D) Started
22.08.03 12:20:15.079                 processor (I) Starting event timeout watcher {"timeout": "30s"}
22.08.03 12:20:15.079 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
22.08.03 12:20:15.079 processor.webadmin.server (D) Registered resource {"name": "triggers"}
22.08.03 12:20:15.079                 processor (W) No metric sinks configured, metrics will not be published
22.08.03 12:20:15.079                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
22.08.03 12:20:15.080            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
22.08.03 12:20:15.081 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
22.08.03 12:20:15.081                 processor (D) Processor started
Run yolo-v5 model
22.08.03 13:28:00.849 sor.http.w0.python.logger (I) Run yolo-v5 model {"worker_id": "0"}
22.08.03 13:28:33.916 sor.http.w1.python.logger (I) Run yolo-v5 model {"worker_id": "1"}
Run yolo-v5 model
Run yolo-v5 model
22.08.03 13:34:12.713 sor.http.w0.python.logger (I) Run yolo-v5 model {"worker_id": "0"}
nmanovic commented 1 year ago

@dschoerk , thanks for sharing. We did a number of fixes for serverless functions in https://github.com/cvat-ai/cvat repo. Don't hestitate to update the nuclio version: https://cvat-ai.github.io/cvat/docs/administration/advanced/installation_automatic_annotation/. It was updated as well.

mandharsh38 commented 1 year ago

Works now..updated nuctl and running: docker bridge fixed it. Thanks for the help.. @dschoerk @nmanovic

matiassalriv1998 commented 1 year ago

Hello @mandharsh38 , I'm having problems to auto annotate my own model with Yolo and the tutorial only shows detectron, could you explain about the changes you made at the function.yaml (the default one, to adapt at your own model) also main.py. I'm having problems with that.

erenuito commented 12 months ago

I have same problem who can help me ? The link is broken.

automatic_annotation/. It was updated as well.