Multi-Camera-Live-Object-Tracking icon indicating copy to clipboard operation
Multi-Camera-Live-Object-Tracking copied to clipboard

Unable to open file yolov4.h5

Open AlexDeLara opened this issue 4 years ago • 2 comments

Hi,

First of all, cogratulations on your project. I'm trying to run it streaming my android camera. However, after running both files and opening localhost:5000, this error pops up in the app.py console. I've already modified it to use just one camera. GPU is enabled and already increased the time in base_camera.py to prevent YOLO threat from shutting down. Did you face something similar? I would appretiate your advice.

Stopping YOLO thread for device 0 due to error.
Unable to open file (unable to open file: name = 'model_data/yolo4.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Thank you in advance, -Alex

AlexDeLara avatar Jan 07 '21 18:01 AlexDeLara

请问你解决了吗?我现在跟你遇到了同样的问题

xd905 avatar Jan 23 '21 04:01 xd905

You have to download yolov4.weights as indicated here (https://github.com/Ma-Dan/keras-yolo4) and follow the conversion instructions, so you will get the .h5 file.

joelmap avatar Jan 27 '21 16:01 joelmap