Views
No views yet
[ 'c', 'ch', 't', 'th' ]1# load Yolo
2from ultralytics import YOLO
3
4# Load a pretrained YOLO model
5model = YOLO(r'weights\yolov**_cs2.pt')
6
7# Run inference on 'image.png' with arguments
8model.predict(
9 'image.png',
10 save=True,
11 device=0
12 )

