Below are some recommendations for training a custom model
After the Training for YoloV5 6.2 module is installed start the module
Next open CodeProject.AI Explorer
When on the Explorer page click on Train.
To train a custom model you need to create a dataset of image. The Training for YoloV5 6.2 module can create the dataset using images from Open Images Dataset V7 (see the below link for details on Open Images Dataset V7)
To see a list of the available classes in the Open Images Dataset V7 click on the exclamation point (there are 600 object classes to choose from)
Lets create a dataset named Pets with 10,000 image and the classes in this dataset will be Cat and Dog. To start creating the dataset click on Create Dataset. (creating the dataset will take some time to build, for me it took about 10 minutes)
The dataset will be saved in the below folder.
Now you have the dataset named Pets ready for training. Below are my typical training settings, to start the training click on Train Model. (I will add more details on each of the settings tomorrow)
- Stop using all other CodeProject.AI modules (Training a model needs all the resources it can get)
- Nvidia GPU with as much VRAM is recommended (You can train with a CPU but it will be extremely slow and can take days to have well performing model)
- Use over 1,000 images when training. (My custom models were trained with over 70,000 images)
After the Training for YoloV5 6.2 module is installed start the module
Next open CodeProject.AI Explorer
When on the Explorer page click on Train.
To train a custom model you need to create a dataset of image. The Training for YoloV5 6.2 module can create the dataset using images from Open Images Dataset V7 (see the below link for details on Open Images Dataset V7)
To see a list of the available classes in the Open Images Dataset V7 click on the exclamation point (there are 600 object classes to choose from)
Lets create a dataset named Pets with 10,000 image and the classes in this dataset will be Cat and Dog. To start creating the dataset click on Create Dataset. (creating the dataset will take some time to build, for me it took about 10 minutes)
The dataset will be saved in the below folder.
Now you have the dataset named Pets ready for training. Below are my typical training settings, to start the training click on Train Model. (I will add more details on each of the settings tomorrow)