Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with data import using SharePath #9310

Closed
DP1701 opened this issue Apr 7, 2025 · 1 comment
Closed

Problems with data import using SharePath #9310

DP1701 opened this issue Apr 7, 2025 · 1 comment

Comments

@DP1701
Copy link

DP1701 commented Apr 7, 2025

Hello,

I have spent hours trying to achieve the following on macOS. Install CVAT and configure it so that data can be imported with a SharePath. However, the data should then be stored on an external hard disk. This is my docker-compose.override.yml:

services:
  cvat_server:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_import:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_export:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_annotation:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_chunks:
    volumes:
      - cvat_share:/home/django/share:ro

volumes:
  cvat_share:
    driver_opts:
      type: none
      device: /Volumes/Data4TB/CVAT/SHARE
      o: bind

I have changed this in docker-compose.yml:

volumes:
  cvat_db:
  cvat_data:
    driver_opts:
      type: none
      device: /Volumes/Data4TB/CVAT/DATA
      o: bind
  cvat_keys:
  cvat_logs:
  cvat_inmem_db:
  cvat_events_db:
  cvat_cache_db:

Now comes the strange behavior. If I do not run the following command in the terminal beforehand, CVAT does not show the SharePath folder when a new task is created.

find /Volumes/Data4TB/CVAT/SHARE \( -name '._*' -o -name '.DS_Store' \) -delete

It removes the metadata in the folder. But even if I then select the folder and choose the option “Copy data into CVAT”, I get the following error message in the console:

Image

When copying the images to the Data folder, there seem to be problems with the metadata being recreated. Does anyone have a solution to this problem?

macOS 15.3.1
CVAT v2.32.1

@DP1701
Copy link
Author

DP1701 commented Apr 7, 2025

I have found the reason and the solution. The external hard disk should be formatted to either APFS or HFS+. If it is exFAT or FAT, then macOS creates the metadata on these file systems alongside the original files, as it is needed for the Finder, tags, Spotlight and other things. Under APFS/HFS+ this information is also created, but stored differently and linked to the file. In any case, I no longer have these problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants