cvat: Can't mount data (share_path)

Hi. I am newbie about docker usage. I have a dataset with lots of photos. I want to label them into CVAT. As mentioned in doc, I should mount my dataset into docker. I tried multiple things. I edit and rebuilded docker-compose.yml and docker-composo.override.yml but still docker can’t acces my dataset. My OS is Windows 10 with WSL2. In the example share_path, the path is /mnt/share. Do I need to give path of my dataset like C:/Users/Desktop/.../ or do I need to give path of WSL2 for windows?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

this seemed to work for me:

  1. create a volume
docker volume create --name cvat_share --opt type=none --opt device=/home/cbc/my_shared_folder --opt o=bind
  1. tell docker to search for a volume created externally
# docker-compose.override.yml
version: "3.3"

services:
  cvat:
    environment:
      CVAT_SHARE_URL: ""
    volumes:
      - cvat_share:/home/django/share:ro

volumes:
  cvat_share:
    external: true

In adition to @ChrisCurrin answer: Keep the cvat_share:/home/django/share:ro line as it is… as it’s referring to django and not your shared path

Hi @dasmehdix. Here’s how I got it to work in docker-compose.override.yml:

version: “2.3” services: cvat: environment: CVAT_SHARE_URL: “Mounted from the e:\VoTT host directory” volumes: - type: bind source: “e:\VoTT” target: /home/django/share

just replace with your source location. and make sure your indentation is right since github is flattening them

“cbc” is just my linux username.

If you’re on windows, it may be “device=/mnt/c/share”

On Thu, 7 Oct 2021 at 11:59, c00lcoder @.***> wrote:

this seemed to work for me:

  1. create a volume

docker volume create --name cvat_share --opt type=none --opt device=/home/cbc/my_shared_folder --opt o=bind

  1. tell docker to search for a volume created externally

docker-compose.override.yml

version: “3.3”

services: cvat: environment: CVAT_SHARE_URL: “” volumes: - cvat_share:/home/django/share:ro

volumes: cvat_share: external: true

What is the cbc in the path /home/cbc/my_shared_folder? I have a folder called “share” located at /c/share but can’t get it to work…so troubleshooting

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openvinotoolkit/cvat/issues/2263#issuecomment-937640236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6RZ7RNCI3EO3WQLAY34YTUFVVPBANCNFSM4SF2PDRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I tried what is documented in https://github.com/openvinotoolkit/cvat/blob/master/cvat/apps/documentation/installation.md#share-path and got “no data” in the Web UI when I picked the Connected File Share tab.

After excessive staring, head scratching, and ruling out other possible issues, I got the documented method to work. I simply had a service mixup (cvat vs cvat_proxy)… no error gets generated if you put a def in the wrong service, it just fails to work.

One thing that would be helpful is that https://github.com/openvinotoolkit/cvat/blob/master/cvat/apps/documentation/installation.md#share-path should mention that there must be some files in order for it to appear in the web UI.

do I need to give path of WSL2 for windows

I suppose, yes. Since you run docker under WSL, you need to provide path in WSL. BTW, we updated docker-compose version to 3.3 in develop branch, just for your information.