I want to train a YOLOv8n object detection model using a custom dataset with around 30,000 images. I ran the following script to begin training:
from ultralytics import YOLO
model = YOLO(‘yolov8n.pt’)
model.train(
data=‘path/to/data.yaml’, # Path to the data config file
epochs=100, # Number of epochs
imgsz=640, # Image size
batch=2, # Batch size
save = True, #saves training checkpoints - useful for resuming training
workers=4, # Number of workers for data loading
device=0, # Use GPU for training, use 1 to force CPU usage
project=‘runs/train’, # Save results to ‘runs/train’
name=‘exp’, # Name of the experiment
exist_ok=True # Overwrite existing results
)
However it is currently estimating around 50-55 minutes per epoch. This is too slow for me, How can I make it train faster? I believe the training should be much faster due to the Jetson Orin Nano being capable of 40 TOPS