from ultralytics import YOLO model = YOLO("best_BCCM.pt") model.to('cuda') model.val(data="data.yaml")