Model training conversion

Model training conversion1. Model training2. Model conversionReferences

After completing the tutorial content of dataset annotation, we can use the motherboard to start training the model.

1. Model training

Use CLI command to train the model directly: copy the yolo11n.pt file to the directory where the configuration file is located, and then open the terminal in the directory where the configuration file is located:

data: Dataset configuration file

model: Pre-trained model file

epochs: Number of training rounds

imgsz: Enter the specified image size

image-20250102154708344

image-20250102154743659

image-20250102160400563

2. Model conversion

The final model will be generated in the runs folder: generally choose the best.pt file for use

Convert the PyTorch model to TensorRT:

image-20250102161426410

image-20250102161435503

References

https://docs.ultralytics.com/modes/train/