当前位置:网站首页>ImportError: `save_weights` requires h5py. Problem solved

ImportError: `save_weights` requires h5py. Problem solved

2022-08-01 21:36:00 iticker

insert image description here

Problem analysis: It is time to use h5py in conjunction with keras or tensorflow to save the model, so you need to install the library, and ensure that the h5py version matches the problem of keras or tensorflow

Problem resolution

Install h5py

pip install h5py

If the error is still reported, it may be that the h5py version matches keras or tensorflow. I installed tensorflow=1.6, and the installation command is as follows

pip install h5py==2.9.0

If you have any questions, welcome further communication and follow the official account
insert image description here

原网站

版权声明
本文为[iticker]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/213/202208012125161307.html