import os import utils #display = utils.notebook_init() # checks os.environ['DATASET_DIRECTORY']="/content/palm_dataset" from roboflow import Roboflow rf = Roboflow(api_key="1k8Img1PtQsDD9xEaTJi") project = rf.workspace("detection-3bhfw").project("palm_detection-tbcor") dataset = project.version(4).download("yolov5") #file_name = 'test.jpg' #cmd = '!python /content/yolov5/detect.py --weights /content/yolov5/runs/train/exp/weights/best.pt --img 640 --conf 0.25 --source ' + file_name #os.system(cmd)