Question 1
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).
Based on the YAML configuration file, what is the total number of object classes the model is trained to detect?
