Unexpected behaviour with task `meta`
See original GitHub issueMy actions before raising this issue
- Read/searched the docs
- Searched past issues
Steps to Reproduce (for bugs)
- Make
manifest.jsonl
with own order (not abc) on aws (2D images) - Add
manifest.jsonl
to cloud storage - Create tasks with same
manifest.jsonl
- In task creation form files in expected order (as in
manifest.jsonl
) - After creation file names show in abc order in “player”
- But files shown as it is in
manifest.jsonl
file
Export to COCO mess too – file names and order.
This endpoint shown files in expected order:
cloudstorages/{store_id}/content?manifest_path=manifest.jsonl
But tasks/{new-task-id}/data/meta
return abc order. (looks like abc)
I checked folder /home/django/data/storages/{store_id}/{name}/manifest.jsonl
it has expected order
Possible Solution
Let users make own order in manifest.jsonl
and use it as it is
And restore it from manifest or form request.data['server_files']
Steps:
- Remove all unexpected
sorted
from code
Found related:
- Fix order after
serializer
creation
and I don’t know why data['server_files']
income reversed?!!
now I know why it may come in any order, because find the root of this evil
https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/engine/views.py#L630
Because looks like serializer does not guaranties income order, is not it?
But it fixable there – just rebuild it if from request.data['server_files']
.
Your Environment
Author: Maria Khrustaleva <maya17grd@gmail.com>
Date: Wed Dec 1 16:57:31 2021 +0300
Remove key_file_path field (#3959)
* Remove key_file_path field
* fix
* Update comparison
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top GitHub Comments
@gHerzmann I removed all sorting from source code and fixed it in
request.data['server_files']
and rebuild imagesBecause do not understand why anybody need to setup it in another place than
manifest
When I try to use the predefined sorting method, I receive the following error:
Could not create the task on the server. Exception: It isn't supported to upload manifest file and use random sorting.
See: https://github.com/openvinotoolkit/cvat/blob/6fad1764efd922d99dbcda28c4ee72d071aa5a07/cvat/apps/engine/task.py#L374
It would be great if we could select a sorting method that would use the same order defined in the manifest file.