Closed ib124 closed 2 years ago
@ib124 training YOLOv5 on VOC is very simple, dataset is autodownloaded and labels adapted automatically:
python train.py --data VOC.yaml
See VOC.yaml for conversion details: https://github.com/ultralytics/yolov5/blob/a1a9c6884c5cfda4c972f4087ad4d4b9c3da6518/data/VOC.yaml#L1-L80
@ib124 i am also confused about same. did you learn anything.
@glenn-jocher thank you forthe response. Actually the data is not pascal voc dataset it is in voc format so do you recommend any particular script to convert?
@ib124 i am also confused about same. did you learn anything.
Hi @engrjav, I found that I had no difficulty with my detections after running that script to convert Pascal to YOLO.
@engrjav @ib124 conversion script in https://github.com/ultralytics/yolov5/issues/6300#issuecomment-1013444521 is exact to numerical precision to the best of my knowledge (I implemented it myself based on a user's PR). Obviously raise a bug report if you discover any problems.
Search before asking
Question
Hi @glenn-jocher, I have more of an abstract question. I'm doing a study comparing various computer vision algorithms, and some of algorithms I am using require Pascal VOC annotations. Therefore, I found the following python script to convert my annotations to a YOLO format:
After running the script, the YOLO annotations come out looking like this:
Whereas, when labeling images using a tool such as LabelImg, there are not as many decimal places. For example, here is a LabelImg .txt file output:
The difference is that when using the python script, more decimals are added to the .txt file. Would this affect the results of the algorithm at all? I would hypothesize that it wouldn't but I just thought I would ask you to be sure.
Thanks!!
Additional
No response