question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exporting Datumaro Project - no occluded and z_order shape attributes in the output

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhiltsov-maxcommented, Mar 14, 2020
  • Ensure you have the corresponding file in <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.
  • Ensure you have <project_dir> in your PYTHONPATH env. variable
  • Install cvat/util/cli/requirements.txt if you haven’t done this
0reactions
zhiltsov-maxcommented, Mar 16, 2020

If 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. The cvat package required should be taken from the <project_dir> by providing PYTHONPATH=<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 and z_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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found