import os com = "python detect.py --weights yolov5x.pt --conf 0.2 --source inference/images/" os.system(com)