File size: 155 Bytes
3496472 |
1 2 3 4 5 6 7 8 9 |
from ultralytics import YOLO
import torch
def run_inference(image_path):
model = YOLO('model.pt')
results = model(image_path)
return results
|
3496472 |
1 2 3 4 5 6 7 8 9 |
from ultralytics import YOLO
import torch
def run_inference(image_path):
model = YOLO('model.pt')
results = model(image_path)
return results
|