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

Export in COCO format - error #45

Closed
YamenMHR opened this issue Jul 3, 2023 · 5 comments
Closed

Export in COCO format - error #45

YamenMHR opened this issue Jul 3, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@YamenMHR
Copy link

YamenMHR commented Jul 3, 2023

After annotating some data, I tried to export the annotation in COCO format, but I am getting the error:
'NoneType' object has no attribute 'filename

@0ssamaak0
Copy link
Owner

please provide me with the following:

  • what input mode did u use (Image/directory/video/video as frames)
  • what model did u use for annotation

@0ssamaak0 0ssamaak0 added the bug Something isn't working label Jul 3, 2023
@YamenMHR
Copy link
Author

YamenMHR commented Jul 3, 2023

  • As input, I tried using image and directory. Both options resulted in the same error.
  • I tried SAM vit_h and also creating a polygon manually.

@0ssamaak0
Copy link
Owner

I checked it now, This error happens when you try to export your annotations without having the annotation files ".json"

I think the senario was as following, and please correct me if I'm wrong:
"When you open an image, the export button is disabled by default ,when you press save it's enabled and you can export your annotations, the problem is that you pressed on save button, then closed the dialog without saving the annotation file, then you tried to export and got that error"

**For now: ** make sure you have the annotations saved in ".json" file, and we will fix this by preventing such a senario, thank you for your feedback.

@YamenMHR
Copy link
Author

YamenMHR commented Jul 3, 2023

That is exactly what happened. Thanks for the fast response.

@YamenMHR YamenMHR closed this as completed Jul 3, 2023
@0ssamaak0
Copy link
Owner

0ssamaak0 commented Jul 3, 2023

Fixed in 2a47b67, it will be released in the next version. Thanks again for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants