Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
futureflsl opened this issue Oct 16, 2020 · 1 comment
Open

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

futureflsl opened this issue Oct 16, 2020 · 1 comment

Comments

@futureflsl
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants