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)
this seemed to work for me:
In adition to @ChrisCurrin answer: Keep the
cvat_share:/home/django/share:roline as it is… as it’s referring to django and not your shared pathHi @dasmehdix. Here’s how I got it to work in docker-compose.override.yml:
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:
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.
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.