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

AttributeError: 'YOLO' object has no attribute 'yolo_model' #35

Open
zhjikoshlizhzc opened this issue Nov 4, 2020 · 2 comments
Open

Comments

@zhjikoshlizhzc
Copy link

Traceback (most recent call last):
File "yoloface_gpu.py", line 48, in
_main()
File "yoloface_gpu.py", line 42, in _main
detect_video(YOLO(args), args.video, args.output)
File "D:\real_time_face_detect\yolo_realtime\yoloface-master\yolo\yolo.py", line 36, in init
self.boxes, self.scores, self.classes = self._generate()
File "D:\real_time_face_detect\yolo_realtime\yoloface-master\yolo\yolo.py", line 65, in _generate
self.yolo_model.load_weights(self.model_path)
AttributeError: 'YOLO' object has no attribute 'yolo_model'

@Wojciech-A
Copy link

This error is caused by h5py. Do a downgrade to eg 2.10.0

@Akudor
Copy link

Akudor commented Oct 24, 2022

This error is caused by h5py. Do a downgrade to eg 2.10.0

Hello, I already downgraded h5py to 2.10.0. I still have this problem.

self.yolo_model.load_weights(self.model_path)
AttributeError: 'YOLO' object has no attribute 'yolo_model'

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

3 participants