from ultralytics import YOLO model = YOLO('best.pt') image_path = input("Enter image path: ") results = model(image_path, device = 0, amp = 'True') # return a list of Results objects print(results)