Exporting Datumaro Project - no occluded and z_order shape attributes in the output
See original GitHub issueI have annotated a video using interpolation mode in CVAT. I then exported the task as a datumaro dataset. I tried to output annotated frames using the following command:
datum project export -e "/item/annotation" --filter-mode "i+a" -f yolo
But I am having the following error:
2020-03-14 16:09:39,387 INFO: Loading the project...
2020-03-14 16:09:39,388 ERROR: 'cvat_rest_api_task_images'
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\*\*\.venv\Scripts\datum.exe\__main__.py", line 7, in <module>
File "c:\users\*\*\.venv\lib\site-packages\datumaro\cli\__main__.py", line 156, in main
return args.command(args)
File "c:\users\*\*\.venv\lib\site-packages\datumaro\cli\contexts\project\__init__.py", line 347, in export_command
dataset = project.make_dataset()
File "c:\users\*\*\.venv\lib\site-packages\datumaro\components\project.py", line 762, in make_dataset
return ProjectDataset(self)
File "c:\users\*\*\.venv\lib\site-packages\datumaro\components\project.py", line 473, in __init__
url, **options)
File "c:\users\*\*\.venv\lib\site-packages\datumaro\components\project.py", line 274, in make_extractor
return self.extractors.get(name)(*args, **kwargs)
File "c:\users\*\*\.venv\lib\site-packages\datumaro\components\project.py", line 64, in get
return self.items[key] # returns a class / ctor
KeyError: 'cvat_rest_api_task_images'
I tried to figure out the problem with no results.
I am working on windows 7. I installed datamaru as following:
pip install 'git+https://github.com/opencv/cvat#egg=datumaro&subdirectory=datumaro'
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
opencv-cvat/public - Gitter
I can't export polygon annotations. Every time I get the error: Error: Request failed with status code 500. "shapely.
Read more >docs/user_manual.md · ApulisPlatform/datumaro - Gitee.com
This command allows to convert a dataset from one format into another. In fact, this command is a combination of project import and...
Read more >datumaro Changelog - pyup.io
Prohibited calling `add`, `import` and `export` commands without a project (<https://github.com/openvinotoolkit/datumaro/pull/555>)
Read more >CHANGELOG.md · fix_linter · Palash Mishra / cvat - GitLab
The format is based on Keep a Changelog, and this project adheres to Semantic ... start resizing a shape and do not release...
Read more >datumaro - PyPI
Dataset filtering by a custom criteria: remove polygons of a certain class; remove images without annotations of a specific class; remove occluded annotations ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
<project_dir>/.datumaro/extractors
or<project_dir>/.datumaro/plugins
(depending on the CVAT version, the latter is for actual). If there is no such file for some reason, you can find it here.<project_dir>
in yourPYTHONPATH
env. variablecvat/util/cli/requirements.txt
if you haven’t done thisIf you haven’t found
config.yml
in.datumaro
, I believe you exported the task from an outdated version of CVAT, and installed the actual version from develop, where project layout has been changed a bit. The corresponding to CVAT version of Datumaro is available at<project_dir>
. It is installed as described in the readme there.Regarding
requests
package - it should have been installed from<project_dir>/cvat/utils/cli/requirements.txt
. This step is described in the README. Thecvat
package required should be taken from the<project_dir>
by providingPYTHONPATH=<project_dir>
, which is also mentioned in the readme.I’ve just rechecked if these steps work (on Ubuntu, though) - they did. However, I’ve found that some attributes were not being passed this way, specifically
occluded
andz_order
. This can be fixed by this patch (#1271). Meanwhile, exporting as CVAT xml and importing CVAT project in Datumaro should work without an issue.