crapthings commited on
Commit
291fa50
1 Parent(s): dc33a4b

Create train.py

Browse files
Files changed (1) hide show
  1. train.py +7 -0
train.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from ultralytics import YOLO
2
+
3
+ # Load a model
4
+ model = YOLO('best.pt') # load a pretrained model (recommended for training)
5
+
6
+ # Train the model
7
+ results = model.train(data='./classify1', epochs=100, imgsz=640,batch=128)