Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

German Traffic Sign Detection Benchmark - Annotations #203

Open
ItsCRC opened this issue Jan 13, 2021 · 0 comments
Open

German Traffic Sign Detection Benchmark - Annotations #203

ItsCRC opened this issue Jan 13, 2021 · 0 comments

Comments

@ItsCRC
Copy link

ItsCRC commented Jan 13, 2021

Hey there, I am using YOLOv4 for German Traffic Sign Detection Benchmark dataset. It has 900 images (divided in 600 training images and 300 evaluation images (PPM Images)). The size of images are 1360 width and 800 height. The annotation file have the format:

  • Filename: Filename of the image the annotations apply for
  • Traffic sign's region of interest (ROI) in the image:
    • leftmost image column of the ROI
    • upmost image row of the ROI
    • rightmost image column of the ROI
    • downmost image row of the ROI
  • ID providing the traffic sign's class
    For example: 00058.ppm;786;394;824;435;12
    Here filename = 00058.ppm, leftmost = 786, upmost = 394, rightmost = 824, downmost = 435, classid = 12.
    My issue is how to convert these into YOLOv4 annotation format?

Quoting @AlexeyAB in one of the issues ".txt-file for each .jpg-image-file - in the same directory and with the same name, but with .txt-extension, and put to file: object number and object coordinates on this image, for each object in new line: object-class x y width height"

Also I want to know that in my yolov4_custom_train.cfg, the width and height = 416. Will these affect the annotation file creation because I know x and y are calculated using image_width and image_height somehow.

Any help in how to create annotation file for each image using the above given values in example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant