foamliu / Car-Recognition

Car Recognition with Deep Learning
MIT License
344 stars 135 forks source link

Error on running demo #16

Open aditya-droid opened 4 years ago

aditya-droid commented 4 years ago

Hi, Firsty, I would like to thank you for the awesome work you have been contributing towards open-source for car-model detection. I have been getting the following error while running the demo.py file:

image

Also, which model are you using for the this repo?

pikapikazhou commented 4 years ago

I met the problem too, and if you can tell me the solution if you solve this trouble . Thank you so much

aditya-droid commented 4 years ago

I still haven't found the solution. I am waiting for the developer's response.

pikapikazhou commented 4 years ago

I still haven't found the solution. I am waiting for the developer's response.

I solved the problem yesterday.
demo.py line24: os.path.isfile(os.path.join(test_path, f)) and f.endswith('.jpg')] #change the .jpg to .png

that's because in the images folder , the number of jpg pictures is less than 20

image hope it can help you

foamliu commented 4 years ago

Thanks @pikapikazhou , could you please create a PR to fix this? @aditya-droid Sorry, I've switched to PyTorch 1 year ago and don't have a keras/tf environement.