YunYang1994 / TensorFlow2.0-Examples

🙄 Difficult algorithm, Simple code.
MIT License
1.71k stars 676 forks source link

运行image_demo.py报错failed to read all data #110

Open futureflsl opened 3 years ago

futureflsl commented 3 years ago

utils.load_weights(model, "./yolov3.weights") File "/home/fut/Downloads/TensorFlow2.0-Examples-master/4-Object_Detection/YOLOV3/core/utils.py", line 59, in load_weights assert len(wf.read()) == 0, 'failed to read all data' AssertionError: failed to read all data

yolov3仔细检查没问题,官方都可以跑,你这个demo是不是有问题?

Taltalite commented 3 years ago

我之前因为config里的__C.YOLO.CLASSES路径设置错误触发了相同的报错。 可以检查一下该项是否正确设置 希望能有帮助