JSON2YOLO icon indicating copy to clipboard operation
JSON2YOLO copied to clipboard

Support for YOLOv11 in the conversion script

Open ainayves opened this issue 10 months ago β€’ 4 comments

Hello,

Does this conversion script support YOLOv11, or is it still limited to YOLOv8?

Thanks in advance for your response! 😊

ainayves avatar Jan 31 '25 07:01 ainayves

πŸ‘‹ Hello @ainayves, thank you for submitting a ultralytics/JSON2YOLO πŸš€ Issue. To help us address your concern efficiently, please ensure you've provided the following information:

  1. For questions:

    • Provide as much context as possible about your question
    • Include any research you've already done on the topic
    • Specify which parts of the documentation, if any, you've already consulted
  2. For bug reports:

    • A clear and concise description of the bug
    • A minimum reproducible example MRE that demonstrates the issue
    • Your environment details (OS, Python version, package versions)
    • Expected behavior vs. actual behavior
    • Any error messages or logs related to the issue
  3. For feature requests:

    • A clear and concise description of the proposed feature
    • The problem this feature would solve
    • Any alternative solutions you've considered

Before proceeding, please ensure you've searched existing issues to avoid duplicates. If you have additional information or context to provide about your question regarding YOLOv11 support, kindly comment on this issue thread.

This is an automated response to help streamline issue management, but don’t worryβ€”a member of the Ultralytics team will assist you shortly! πŸš€βœ¨

Thank you for contributing and helping improve our project!

UltralyticsAssistant avatar Jan 31 '25 07:01 UltralyticsAssistant

@ainayves thanks for your question! The Ultralytics package supports YOLOv11, including model conversion/export to formats like ONNX and TensorRT. To use YOLOv11, simply specify model='yolov11' in your code. For details, see our Export documentation. Ensure you're using the latest ultralytics>=8.2.0 package.

pderrenger avatar Jan 31 '25 22:01 pderrenger

@pderrenger , Thank you for your response.

I realize my previous message was not very clear, and I apologize for that. My question is actually about the dataset format. If I’m not mistaken, this repository contains a script for converting COCO to YOLO. I would like to know if the dataset is converted to the YOLOv11 format, following a structure of this kind or another :

archive.zip/ β”œβ”€β”€ obj.data β”œβ”€β”€ obj.names β”œβ”€β”€ obj__data β”‚ β”œβ”€β”€ image1.txt β”‚ └── image2.txt └── train.txt # List of subset image paths

ainayves avatar Feb 04 '25 11:02 ainayves

@ainayves the Ultralytics YOLOv11 dataset format uses a simplified structure with a data.yaml file and organized image/label directories, not the legacy obj.data/obj.names format. The converted COCO dataset will follow this structure:

dataset/
β”œβ”€β”€ data.yaml
β”œβ”€β”€ train/
β”‚   β”œβ”€β”€ images/
β”‚   └── labels/
β”œβ”€β”€ val/
β”‚   β”œβ”€β”€ images/
β”‚   └── labels/

The convert_coco() function handles this conversion automatically. For details, see our Dataset Format Documentation and Converter Examples.

pderrenger avatar Feb 05 '25 04:02 pderrenger