From the course: Hands-On AI: Computer Vision Projects with Ultralytics and OpenCV

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Training an object-detection model and inference

Training an object-detection model and inference - OpenCV Tutorial

From the course: Hands-On AI: Computer Vision Projects with Ultralytics and OpenCV

Training an object-detection model and inference

- [Instructor] In this video, we will work through how to train an object detection model using custom data. All the resources used in this video are located in the course code subdirectory 03-02. If you remember from chapter two, we annotated the data and created the data set along with its corresponding YAML file. We will use that same data set here to train our object detection model. First, let's open the data.yml file located inside 03-02 subdirectory. In chapter two, we defined this YML structure, but here we need to configure the correct paths for the train, val, and test directories since we will be using this YML file for model training. In line number one, we need to configure the path for the dataset route directory. Here we need to configure the absolute path. For this, right click on dataset directory and select Copy Path/Reference and then select Absolute Path. Paste here. Because I am using the Windows, I will need to use double backslash. However, in the case of Linux…

Contents