Negative Coordinates in JSON Annotations – How Should I Handle This?

Hi team,

I’m preparing to upload a dataset to Roboflow, but I’ve noticed that some of the bounding box annotations in my JSON files contain negative coordinates (e.g., x = -1, y = -1). These appear in the earlier frames of the dataset and seem to indicate missing or invalid detections.

Here’s a sample snippet:

json

CopyEdit

"5": [[-1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 0]]

What’s the best practice here?

  • Should I remove these entries entirely before uploading?
  • Is there a way to let Roboflow ignore or handle them during upload?
  • Could these entries cause issues with annotation visualization or training?

Appreciate any guidance or recommendations you might have!

Thanks in advance,
Robin[quote=“Tixtor710, post:1, topic:10402, full:true”]
Hi team,

I’m preparing to upload a dataset to Roboflow, but I’ve noticed that some of the bounding box annotations in my JSON files contain negative coordinates (e.g., x = -1, y = -1). These appear in the earlier frames of the dataset and seem to indicate missing or invalid detections.

Here’s a sample snippet:

json

CopyEdit

"5": [[-1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 0]]

What’s the best practice here?

  • Should I remove these entries entirely before uploading?
  • Is there a way to let Roboflow ignore or handle them during upload?
  • Could these entries cause issues with annotation visualization or training?

Appreciate any guidance or recommendations you might have!

Thanks in advance,
Robin

Hi @Tixtor710!
Great question! It all depends on the coordinate system you implement. I’m curious, what annotation format are you using? At Roboflow, we pride ourselves on accepting every format, so if its something we haven’t seen before, I’d love to get it in front of our team.

Thank you and happy building!!