I am currently trying to get the bounding box coordinates from my image with my custom model by using my own script and not the detect.py . I would like to get the coordinates needed to draw bounding boxes on the image. Could someone help me please?
model = torch.hub.load('ultralytics/yolov5', 'custom', 'best.pt')
model = model.autoshape()
results = model(img, size=416)