Describe how to use the model

#1
No description provided.
VAIV-TA-LAB org
edited Jul 15

@fendiprime
This model is available using the ultralytics package.
Sample code is below.

from ultralytics import YOLO

#Load YOLOv8 model (where 'best.pt' is the weight file of the trained model)
model = YOLO('weight/best.pt')

#Specify image path
img_path = 'path/to/your/image.jpg'

#Perform prediction
results = model(img_path)

#Output results
results.print() # Print results to console
results.show() # Visualize results in image
results.save() # Save result image

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment