lightly-ai / lightly-ai/labelformat
"filename" did not include file extension from LabelBox to COCO in object detection
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 91
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
-
"filename" in COCO JSON Images should include extensions.
Seems not explicitly specified in COCO Data Format page, but did used in practice in COCO dataset examples like this.
This issue leads to problems that images cannot be found when trying to train a model from the converted dataset.
-
"filename" parsed from LabelBoxObjectDetectionInput at _image_from_data_row() does not include a file extension, as there is no proper image filename can be parsed from LabelBox v2 labels.
I am not sure if there's an ideal solution, probably labelformat could handle downloading images as well, then it would use the correct image filenames/paths in conversion.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/labelformat/formats/labelbox.py, especially LabelBoxObjectDetectionInput and _image_from_data_row(), and inspect how the converted COCO JSON image filename is produced. Compare that value with the LabelBox v2 data described in the issue and determine how an extension or usable image path should be represented. Done means converted COCO image filenames let training tools locate the corresponding images.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100