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

在运行deepsort_yolov4时候报错:str不需要被解码decode #109

Open
kkhuangzekai opened this issue Jan 12, 2022 · 3 comments
Open

Comments

@kkhuangzekai
Copy link

Traceback (most recent call last):
File "/content/drive/My Drive/Object-Detection-and-Tracking-master/OneStage/yolo/deep_sort_yolov4/main.py", line 199, in
main(YOLO())
File "/content/drive/My Drive/Object-Detection-and-Tracking-master/OneStage/yolo/deep_sort_yolov4/yolo.py", line 25, in init
self.boxes, self.scores, self.classes = self.generate()
File "/content/drive/My Drive/Object-Detection-and-Tracking-master/OneStage/yolo/deep_sort_yolov4/yolo.py", line 46, in generate
self.yolo_model = load_model(model_path, custom_objects={'Mish': Mish}, compile=False)
File "/usr/local/lib/python3.7/dist-packages/keras/engine/saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/keras/engine/saving.py", line 584, in load_model
model = _deserialize_model(h5dict, custom_objects, compile)
File "/usr/local/lib/python3.7/dist-packages/keras/engine/saving.py", line 273, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

@yuxiaokui
Copy link

python版本太高了

@xuyao91
Copy link

xuyao91 commented Oct 13, 2022

the problem related with h5py. Downgrade your h5py.

pipinstall 'h5py==2.10.0' --force-reinstall

it works for me

@Apokar
Copy link

Apokar commented Mar 10, 2023

works for me too ,thanks

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

4 participants