ultralytics / JSON2YOLO

Convert JSON annotations into YOLO format.
https://docs.ultralytics.com
GNU Affero General Public License v3.0
827 stars 229 forks source link

Convert the COCO RLE format to YOLOv5/v8 segmentation format. (Sourcery refactored) #62

Open sourcery-ai[bot] opened 10 months ago

sourcery-ai[bot] commented 10 months ago

Pull Request #61 refactored by Sourcery.

Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it.

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

    Incorporate changes via command line
    git fetch https://github.com/ultralytics/JSON2YOLO pull/61/head
    git merge --ff-only FETCH_HEAD
    git push

NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Help us improve this pull request!

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

📊 Key Changes

🎯 Purpose & Impact

The purpose of these changes is to enhance the JSON2YOLO conversion tool to support more complex annotation formats used in computer vision datasets, especially keypoints and segmentation masks. 🌐 This will allow developers and researchers who use the YOLO format for object detection and instance segmentation tasks to work with a broader range of datasets that may contain different types of annotations. For non-experts, these features make it easier to convert datasets without needing an in-depth understanding of annotation formats, potentially accelerating their AI/ML projects.

🌟 Summary

Now you can convert COCO dataset annotations with keypoints and segmentation to the YOLO format in a snap! 🎉 This update makes your data transformation tasks much simpler and supports more types of computer vision training escapades. 🚀