iArunava / YOLOv3-Object-Detection-with-OpenCV

This project implements a real-time image and video object detection classifier using pretrained yolov3 models.
MIT License
328 stars 172 forks source link

No such file or directory: './yolov3-coco/coco-labels' #4

Open bilalzaidi88 opened 5 years ago

bilalzaidi88 commented 5 years ago

Hi, i am using your codes on sublime text on Windows. I am getting this error. I m new to python so I would really appreciate if you could guide me on how to resolve this matter. My python directory is C:\Python37 and i have saved yolov3-coco folder there. I have also added C:\Python37\yolov3-coco to the path but i am still getting the following error. Please help me out. Thank you.

Traceback (most recent call last): File "C:\Python37\yolo.py", line 82, in labels = open(FLAGS.labels).read().strip().split('\n') FileNotFoundError: [Errno 2] No such file or directory: './yolov3-coco/coco-labels'

iArunava commented 5 years ago

When calling, you can add a -l /path/to/labels flag to specify the path in which the labels are stored.

But this is not required if you have made no changes and have just cloned the repo. So, I think, if you still have issues, maybe delete the repo. Clone it again. And cd into the repo. and then run the command in the README.md file.

Check it, if you still face issues, let me know.

grantjohnson13 commented 2 years ago

I am having this same problem, did you ever figure it out?