Describe how to use the model
#1
by
fendiprime
- opened
No description provided.
@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