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.

Wrong Annotation Per Category using COCO Json

See original GitHub issue

Hello

I finish to annotate a tiny dataset. This dataset has 4 classes. I dump the annotations as a MS-COCO json format.

Using pycocotools I ask to access the annotations related to 1 of the 4 classes. What I got does not correspond to what I ask, In the annotations returned I got annotations that does cover other annotations as well as the one I asked.

I used pycocotools before with different dataset without issues.

----Edit---- I pushed further my investigations… the whole convertion is wrong. I labeled 200 images only, the number of images id is right but the only image that as been converted is the first one and that for each classe.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
azhavorocommented, Nov 6, 2019

@JSharp4273 Thanks, I’ll take a look.

0reactions
JulienRichardFleuret42673commented, Nov 28, 2019

Hello I made the trial I am talking about in my last post. I observed that when I dump the annotation as MS-COCO JSON the annotations fit with the image. The issue I reported in here does not exist anylonger. I observed another error but minor, I labeled for this trial a set of 200 images but only have 199 image ids in the MS-COCO JSON. However this is another error. Thank you very much for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong "-1 background" annotations loaded from Custom ...
I'm working using Mmdetection to train a Deformable DETR model using a custom COCO Dataset. Meaning a Custom Dataset using the COCO format...
Read more >
How to work with object detection datasets in COCO format
Case 1: I have annotated data​​ If your data is not stored in a supported format, then it is still easy to load...
Read more >
Create COCO Annotations From Scratch - Immersive Limit
This tutorial will teach you how to create a simple COCO-like dataset from scratch. It gives example code and example JSON annotations.
Read more >
2: Train with customized datasets
The annotation is a JSON file where each key indicates an image's all annotations. The code to convert the balloon dataset into coco...
Read more >
COCO Export Missing Category IDs Even with Dropdown ...
Go to Annotation > Export Annotations (COCO Format), resulting JSON should have same malformed category ids. Specifications. Version: VIA v2.
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