markjay4k / YOLO-series

A series of notebooks describing how to use YOLO (darkflow) in python
248 stars 171 forks source link

where i should save the .py script? #6

Open mursyidinadnan opened 6 years ago

mursyidinadnan commented 6 years ago

i try using other python application and i save the .py file in the same directory of darkflow, but the load model is always filed and always get error like this

AssertionError: bin/yolo.weights not found Traceback (most recent call last): File "C:\Users\Mladen Stokev\Anaconda3\pkgs\pywin32-222-py36hfa6e2cd_0\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript exec(codeObject, main.dict) File "C:\dark\darkflow\ngetestpy.py", line 6, in tfnet = TFNet(options) File "C:\dark\darkflow\darkflow\net\build.py", line 58, in init darknet = Darknet(FLAGS) File "C:\dark\darkflow\darkflow\dark\darknet.py", line 13, in init self.get_weight_src(FLAGS) File "C:\dark\darkflow\darkflow\dark\darknet.py", line 47, in get_weight_src '{} not found'.format(FLAGS.load) AssertionError: bin/yolo.weights not found

where i should place the .py file? please if you have answer thankyou

markjay4k commented 6 years ago

the error is for the weights not being found. You should have a bin directory in the darkflow-master directory. the weights need to go in there. The weights need to be downloaded from the yolo website.