yash42828 / YOLO-object-detection-with-OpenCV

Object detection using YOLO object detector
112 stars 78 forks source link

File Not found Error #2

Open hamzanaeem1999 opened 3 years ago

hamzanaeem1999 commented 3 years ago

File "yolo.py", line 22, in LABELS = open(labelsPath).read().strip().split("\n") FileNotFoundError: [Errno 2] No such file or directory: 'yolo-coco\coco.names' Why is it occuring ?

efaguy27 commented 3 years ago

@hamzanaeem1999 For Windows you should change labelPath = '..//yolo-coco//coco.names' and will need to do the same for weightsPath = '..//yolo-coco//yolov3.weights' configPath = '..//yolo-coco//yolov3.cfg'