Add task_size parameter to CVAT backend #1457
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #1448
The CVAT REST API imposes a limit on the size of requests. This can cause errors when uploading annotation runs for sample collections with many images or labels to CVAT.
In order to break an annotation run into smaller segments, this PR adds a
task_size
parameter that limits the number of samples that can be uploaded to a single task in CVAT. Due to the creation of multiple tasks whentask_size
is provided, we recommend providing aproject_name
to group the created tasks together.The
task_size
parameter can be used in conjunction withsegment_size
to both define the number of images per task and the number of images per job within the task.Example
Note: The CVAT maintainers are working on an update to resolve this issue natively.