# Training

Once the dataset is ready, you can finally move on to training the models.

Models view
Models view
In the main menu, go to the Trainings tab and then click on Models. As you can see, the collection of models looks similar to the catalog with our datasets. Create a new model using Add new model.

Add new model
Add new model
Next, you need to decide what the purpose of your new model is. We support several frameworks for creating both Detection and Classification models.

# Classification

Move on to the configuration of the classification model. Select Classification.

Select 'Classification' and then 'New Accessories' dataset
Select 'Classification' and then 'New Accessories' dataset
Select the dataset called New Accessories. Continue by clicking Next.

Set the model training parameters
Set the model training parameters
Enter the name Classification Accessories and select the TensorFlow 2.5.0 Keras from the list of frameworks. Leave the Configure automatically option on as this will set the relevant training parameters. Click Next to proceed.

Keep in mind: Frameworks develop quite dynamically, so your version may differ from the one shown in the tutorial. If this is the case, use the latest version available on our website.

Set the accuracy
Set the accuracy
Thanks to Automatic Parametrization, you do not have to worry about model configuration. Set the accuracy at which you want your model to be trained, enter 80%.

Merging multiple datasets
Merging multiple datasets
The last step before training is to merge multiple datasets. As you are only using one dataset, you can skip this step. If necessary, you can also rename categories at this stage. Click on the Start training button to start training.

Current status and progress
Current status and progress
The training should now be initializing, you can see this in the Notifications or Tasks tab. Go back to the Models to see the current status and progress.

Keep in mind: Due to hardware reasons, our app can only handle a certain number of trainings. It is possible that your training may end up in the waiting queue, but do not worry. Your models will not disappear when you leave the page. As soon as the machine is available again, your trainings will be completed.

Statistics
Statistics
Once the training is complete, click on the gear icon and select details to check the results. As you can see, the model was trained in less than 2 minutes and achieved 100% accuracy. Unfortunately, our training dataset is not diverse, so the model reaches high accuracy very quickly. If you want to learn more about the meaning of other values, click on the tracking performance, where we will explain the labels. You can download your trained model by clicking on the Download model button at the top.

Re-train model
Re-train model
Remember that any model can be re-trained in case of failure or unsatisfactory results. To do this, go to the Models tab, click on the gear icon and select Re-train or click on the Re-train button at the top.

# Object detection

To train a model for detection, follow the same steps as when configuring a model for classification. This time when adding a model click Detection.

Select 'Detection'
Select 'Detection'
Select New Accessories dataset and click Next to proceed.

Enter name and select framework
Enter name and select framework
Enter the name Detection Accessories and select the Darknet framework. For detection, you will use the Configure manually option. Continue by clicking Next.

Select pretrained model
Select pretrained model
The default pretrained model yolov4.conv.137 in DARKNET takes a very long time to pretrain. Use its smaller version yolov4-tiny.conv.29 so that you can use the model after only a few minutes. Leave the other parameters unchanged and click Next.

Start training
Start training
Again, skip merging categories. Start the training by clicking on the Start training button.

Training process
Training process
Before you get any results, your detection model must always pass the first 1000 batches. Wait until you get accuracy.

Click Stop and select Stop with progress
Click Stop and select Stop with progress
After a few minutes, your model has passed the first batches and reached 74.94% Accuracy. In this case you do not need a very accurate model, so you can stop the training. Click Stop and select Stop with progress from the list that appears, this will stop the training at the earliest opportunity. You can also stop the training by clicking Stop immediately, but this will result in the loss of the created model.

Finished training
Finished training
The model has been instructed to end training. It will terminate its progress at the next validation. If the training is not stopped manually, the process will continue until 100% Accuracy is achieved or the Batch count limit is reached.

Model performance
Model performance
Once complete, you can click on your model and view its performance.