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

When importing labelled images in "Datumaro 1.0" format they are downloaded in point cloud format #8700

Closed
2 tasks done
ganindu7 opened this issue Nov 14, 2024 · 7 comments · Fixed by #7125
Closed
2 tasks done
Labels
bug Something isn't working need info Need more information to investigate the issue

Comments

@ganindu7
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

when I try to import the dataset to cvat I get

"{
	"name": "MediaTypeError",
	"message": "Unexpected media type of a dataset item '000000'. Expected '<class 'datumaro.components.media.Image'>', actual '<class 'datumaro.components.media.PointCloudFromFile'>' ",
	"stack": "---------------------------------------------------------------------------

......
......

MediaTypeError: Unexpected media type of a dataset item '000000'. Expected '<class 'datumaro.components.media.Image'>', actual '<class 'datumaro.components.media.PointCloudFromFile'>' "
}

This is the same if I used the API or the Web GUI

Expected Behavior

the dataset be in "datumaro.components.media.Image" format. instead of Pointcloud

Possible Solution

Use the correct Datumaro version in CVAT or fix the bug.

Context

I updated to CAT 2.22.0 Yesterday but the issue still persists. not sure if the bit need for this needs to be updated separately or because the annotations were done before the update was made and was saved in the old format. I re exported few times after the update but in the downloaded annotation file I still get

...
[],"attr":{"frame":23},"point_cloud":{"path":""}},{"id":"000024","annotations":[]...
...

This issue is referenced #5924 but the solution is noted as updating CVAT (which I did) not sure if I'm doing it incorrectly or some residual issue.

Environment

No response

@ganindu7 ganindu7 added the bug Something isn't working label Nov 14, 2024
@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Nov 14, 2024

Hi, it's not clear how you get such an error message, if you're uploading data into CVAT. There is no such name as PointCloudFromFile in the CVAT or Datumaro (our fork) codebases. If it's about the exported data, it was possible to get such a problem if annotations were exported without images before cvat-ai/datumaro#34 / CVAT 2.12.0. If you just upgraded to a version after 2.12.0, but exported the dataset before upgrading, try to change something in the task (e.g. name) and export one more time. CVAT caches exported datasets, so maybe this is causing the problem.

@bsekachev bsekachev added the need info Need more information to investigate the issue label Nov 14, 2024
@ganindu7
Copy link
Author

ganindu7 commented Nov 15, 2024 via email

@zhiltsov-max
Copy link
Contributor

Hi, could you try to export the dataset with images?

@ganindu7
Copy link
Author

ganindu7 commented Nov 15, 2024 via email

@zhiltsov-max
Copy link
Contributor

I also tried downloading in "annotations-only" mode after downloading "with images" (that also gave the right type)

This looks suspicious. Did the second file include only annotations?

I can see now there is actually a problem, which can be reproduced on the online platform. For this reason it makes sense to me to keep the issue open. There was another PR that was supposed to fix this, but it hasn't been merged yet.

@ganindu7
Copy link
Author

ganindu7 commented Nov 15, 2024 via email

@zhiltsov-max
Copy link
Contributor

Let's keep it until the PR mentioned is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need info Need more information to investigate the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants