当前位置:网站首页>Keras load history H5 format model error: attributeerror 'STR' object has no attribute 'decode‘
Keras load history H5 format model error: attributeerror 'STR' object has no attribute 'decode‘
2022-07-25 02:50:00 【Drinking wine under the lone shadow moon】
1. Error message
Traceback (most recent call last):
File "C:/Users/hbwhx/Desktop/GAN-RNN_Timeseries-imputation-master/main_train.py", line 120, in <module>
main()
File "C:/Users/hbwhx/Desktop/GAN-RNN_Timeseries-imputation-master/main_train.py", line 62, in main
Imputer = tf.keras.models.load_model(r'C:\Users\hbwhx\Desktop\GAN-RNN_Timeseries-imputation-master\saved_models\rebatch_1_00.h5').encode()
File "C:\develop\Anaconda3\envs\tf_2.1_py_3.6\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 146, in load_model
return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
File "C:\develop\Anaconda3\envs\tf_2.1_py_3.6\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py", line 166, in load_model_from_hdf5
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
2. resolvent
2.1 Reduce h5py edition
pip3 install h5py==2.10.0
In this question , Use the current method , Error information elimination .
Reference link :https://blog.csdn.net/weixin_45371989/article/details/109789132
边栏推荐
- Vulntarget vulnerability shooting range -vulntarget-b
- Wechat sports field reservation of the finished works of the applet graduation project (7) mid-term inspection report
- Picgo configuring Alibaba cloud OSS
- Object.defineproperty use
- BGP introduction
- JS written test question -- browser kernel
- Domestic edge computing organization and product research
- Technical experts from large factories: Thoughts on cloud nativity and software supply chain security
- Can PostgreSQL CDC only connect to the main database? Connection from the library reports an error logical decoden
- [TinyML]EfficientFormer:Vision Transformers at MobileNet Speed
猜你喜欢

JS foundation -- regular expression

Use pytest + allure to show the chart results (3)
![[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)](/img/b3/075ad2d555118272efede5a9969319.png)
[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)

Redis unauthorized access vulnerability recurrence (www.hetianlab.com)

Conceptual distinction between Po, Bo, VO, dto and POJO

SQL Server 2022 installation

YouTube Download and (batch) Download

R language one page and many pictures

Solution to the occupation of project startup port

Rolling division, Young's matrix and three-step flip
随机推荐
Solution to the occupation of project startup port
【C】 Advanced knowledge of file operation
It7259q-13, it7259ex-24 feature wearable devices
R language one page and many pictures
Is it necessary to increase the number of milliseconds and save several KB of memory in the program?
Domestic edge computing organization and product research
"Introduction to interface testing" punch in to learn day09: Micro service interface: how to use mock to solve chaotic call relationships
Explorer TSSD 2019 software installation package download and installation tutorial
List.stream common operations
Classic network learning RESNET code implementation
Failed to create data snapshot: lock file [/siyuan/data/assets/image- 2022070216332-jijwccs.png failed: open /siyuan/data/assets/image- 2022070216332-jijwccs.png: permission denied; unable to lock fil
Insertion of balanced binary tree (AVL tree)
Text reading end judgment
"Introduction to interface testing" punch in to learn day05: how can a testing framework support restful interfaces?
BGP introduction
Wechat sports field reservation of applet completion works applet graduation design (8) graduation design thesis template
Coal industry supply chain centralized mining system: digitalization to promote the transformation and upgrading of coal industry
Summary thinking caused by the function of a SMS verification code [easy to understand]
StrError and PERROR
QT realizes calendar beautification