ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
49.78k stars 16.12k forks source link

If I want to use Yolov5 to train coco2017 data , do I need to turn JSON files into TXT files? #1143

Closed xinxin342 closed 3 years ago

xinxin342 commented 3 years ago

❔Question

If I want to use Yolov5 to train coco2017 data , do I need to turn JSON files into TXT files?

Additional context

melgor commented 3 years ago

This one convertion works for me: https://github.com/ssaru/convert2Yolo

glenn-jocher commented 3 years ago

@xinxin342 @melgor YOLOv5 will autodownload COCO 2017 data (in the correct format) on first use, there is no action required on your part.

python train.py --data coco.yaml
melgor commented 3 years ago

Thanks for pointing it out. I was using linked repo for converting my custom dataset.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

longswordinhand commented 2 years ago

There are two ways to convert json file to yolo label: https://github.com/ultralytics/COCO2YOLO https://github.com/ssaru/convert2Yolo