# Object Detection STM32 Model Training This readme shows how to train from scratch or apply transfer learning on an object detection model using a custom dataset. As an example, we will demonstrate the workflow on the Pascal VOC 2012 dataset, which can be downloaded directly in [YOLO Darknet TXT](https://roboflow.com/formats/yolo-darknet-txt) format from [here](https://public.roboflow.com/object-detection/pascal-voc-2012/1/download/darknet):
1. Prepare the dataset After downloading and extracting the dataset files, the dataset directory tree should look as below: ```bash dataset_directory/ ...train/ ......train_image_1.jpg ......train_image_1.txt ......train_image_2.jpg ......train_image_2.txt ...val/ ......val_image_1.jpg ......val_image_1.txt ......val_image_2.jpg ......val_image_2.txt ``` Please note that YOLO Darknet only supports this specific directory structure for the dataset, and other formats are not compatible.
2. Create your training configuration file