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.75k stars 2.88k forks source link

SiamMask return 500 error #8038

Open ramelito opened 2 weeks ago

ramelito commented 2 weeks ago

Actions before raising this issue

Steps to Reproduce

  1. Git clone CVAT
  2. Start CVAT containers
  3. deploy_cpu.sh SiamMask
  4. Make tracking with SiamMask

Expected Behavior

Tracking with SiamMask expected to work without errors

Possible Solution

No response

Context

No response

Environment

commit 20888e69235d13b4de505201c0395369b5070741 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Boris Sekachev <boris.sekachev@yandex.ru>
Date:   Mon Jun 3 20:06:49 2024 +0300

    Update README.md (#7980)

docker version
Client:
 Cloud integration: v1.0.35+desktop.13
 Version:           26.1.1
 API version:       1.45
 Go version:        go1.21.9
 Git commit:        4cf5afa
 Built:             Tue Apr 30 11:46:57 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop
 Engine:
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:48:28 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Operating System : Windows 10 WSL2 Ubuntu

Docker logs from cvat_server

2024-06-17 08:22:12,536 DEBG 'uvicorn-1' stderr output:
[2024-06-17 08:22:12,536] ERROR django.request: Internal Server Error: /api/lambda/functions/pth-foolwood-siammask

2024-06-17 08:22:12,537 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.1:0 - "POST /api/lambda/functions/pth-foolwood-siammask?org= HTTP/1.0" 500 Internal Server Error

Docker logs from SiamMask container

24.06.17 08:21:00.704 (I) processor.webadmin.server Listening {"listenAddress": ":8081"}
24.06.17 08:21:00.704 (D)                 processor Processor started
24.06.17 08:22:11.059 (I) sor.http.w0.python.logger Run SiamMask model {"worker_id": "0"}
24.06.17 08:22:11.940 (I) sor.http.w1.python.logger Run SiamMask model {"worker_id": "1"}
/root/miniconda3/envs/siammask/lib/python3.9/site-packages/torch/nn/functional.py:3809: UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.
  warnings.warn("nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.")
24.06.17 08:22:12.531 (E) sor.http.w1.python.logger Exception caught in handler {"worker_id": "1", "exc": "not enough values to unpack (expected 3, got 2)", "traceback": "Traceback (most recent call last):\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 151, in serve_requests\n    await self._handle_event(event)\n  File \"/opt/nuclio/_nuclio_wrapper.py\", line 439, in _handle_event\n    entrypoint_output = self._entrypoint(self._context, event)\n  File \"/opt/nuclio/main.py\", line 30, in handler\n    shape, state = context.user_data.model.infer(image, shape, states[i] if i < len(states) else None)\n  File \"/opt/nuclio/model_handler.py\", line 60, in infer\n    state = siamese_track(state, image, mask_enable=True,\n  File \"/opt/nuclio/SiamMask/tools/test.py\", line 288, in siamese_track\n    _, contours, _ = cv2.findContours(target_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)\nValueError: not enough values to unpack (expected 3, got 2)\n"}
bsekachev commented 4 days ago

Hello, It would be easier to reproduce if you provide images where you perform tracking.