Question 2
Read the following configuration file and code snippet related to training and annotations in a YOLO model, and answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’] A sample annotation in YOLO format is given below: 2 0.25 0.60 0.40 0.20 This represents: classid, xcenter, ycenter,width, height. Assume the corresponding image has dimensions: 640 (width) × 480 (height).
What is the x-coordinate (in pixels) of the center of the bounding box?