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

Images are copied into the docker FS though using the "Connected file share" option #3763

Closed
yohayonyon opened this issue Oct 3, 2021 · 4 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@yohayonyon
Copy link

My actions before raising this issue

Expected Behaviour

When using the "Connected file share" option Images files will not be copied into the docker FS.

Current Behaviour

Images are copied into the docker FS though using the "Connected file share" option. Checking or unchecking "Copy data into CVAT" just changed the location.

Possible Solution

Use the given files...

Steps to Reproduce (for bugs)

  1. Follow the instructions here: https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/#share-path to mount a shared folder.
  2. Use the "Connected file share" on the create task screen (or by CLI).
  3. Check or uncheck "Copy data into CVAT" from GUI just changes the location of the copied files.
  4. The following images show where the files are located on the system here. Tasks 2 and 3 there were created with check and unchecked "Copy data into CVAT".

Screenshot-from-2021-09-22-19-31-46

Screenshot-from-2021-09-22-19-28-59

Screenshot-from-2021-09-22-19-30-21

Context

A lot of old data is planned to be accessed and not copied by CVAT for annotation and viewing. Creating light tasks without images seemed like a simple solution.

Your Environment

  • Git hash commit (git log -1): v1.6.0
  • Docker version docker version (e.g. Docker 17.0.05): 20.10.8
  • Are you using Docker Swarm or Kubernetes? None
  • Operating System and version (e.g. Linux, Windows, MacOS): Linux
  • Other diagnostic information / logs: Refer to the images.
@Marishka17
Copy link
Contributor

@yohayonyon , Hi, as you mentioned, you used a tar file, right? Unfortunately, in the current implementation, it's impossible to use archive from a mounted share without coping because CVAT uses unzipped images and of course we cannot unzip files to mounted share. However, you can use a dataset with images or video from mounted share, and in this case, files aren't copied into CVAT. (if the Copy data into CVAT checkbox is unchecked)

@yohayonyon
Copy link
Author

yohayonyon commented Oct 4, 2021

@Marishka17, thank you for your answer.
Do you think that with the current design it will be not too complicated to implement untar on demand?
I am asking as I am not familiar with code and want to know if this direction worth my time.

@Marishka17
Copy link
Contributor

As I mentioned early, CVAT use extracted images and there is a certain reason for that. I can suppose that there isn't one tool/module for work with archives like ffmpeg for videos. I think it isn't very simple task, but we welcome any ideas and contributions.
@azhavoro , Could you please correct me If I'm wrong?

@nmanovic
Copy link
Contributor

@yohayonyon , in theory it is possible to mount tar archives using archivemount but we are not going to invest resources into the direction. I will recommend just untar your archive.

Thanks for you time. If you like contribute, we are happy to accept your code. For now I will close the report.

@nmanovic nmanovic added the wontfix This will not be worked on label Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants