model = torch.hub.load('ultralytics/yolov5', 'custom', './best.pt', force_reload=True)
model = yolo.model("best.pt")
model."забыл функцию"("foto.png")
from yolo import YOLO
yolo = YOLO()
image_path = "foto.png"
detections = yolo.predict(image_path)
for detection in detections:
print(detection)