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

Add arguments to cli to disabling copying image data in share #3544

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

shortcipher3
Copy link
Contributor

When importing data into CVAT from the share mount the user can uncheck copy_data and check use_cache to avoid creating multiple copies of the data on the server, this functionality wasn't available in the cli. So I added it. It was previously proposed in #2862 and is under the backlog of the project planning as work to be completed here

Motivation and context

When a user downloads images to their CVAT server, then imports into the CVAT application, it is not memory efficient to make 3 copies of the image (raw, original, and compressed) - this functionality allows the user to disable creating these copies.

How has this been tested?

I imported images with the code changes and verified that by default it does not cause the images to be duplicated and the hard drive space does not fill up nearly as rapidly. Issue #3542 goes into greater detail of copied file location as seen during testing.

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@nmanovic
Copy link
Contributor

@shortcipher3 , thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants