当前位置:网站首页>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
边栏推荐
- After six years of precipitation, new consumption has found a digital transformation paradigm
- After working for two months in the summer vacation, I understood three routing schemes of keepalived high availability
- Sequence diagram of UML diagram series
- [circular array] JS method collection of circular array
- Redux best practices "Redux toolkit"
- JS foundation -- hijacking of this keyword
- Inheritance (prototype)
- H5 common positioning function package
- On Calc optimization of calcite
- Remote sensing image classification tool and visualization application of WebGIS
猜你喜欢

Is it necessary to increase the number of milliseconds and save several KB of memory in the program?

Use unicloud cloud function to decode wechat motion steps in applet

@Retryable @backoff @recover retry the use of annotations

Wechat sports field reservation of the finished works of the applet graduation project (5) assignment

Componentization and modularization

Case analysis of building exhibition service management system with low code development platform

Cookies and sessions

Read and upgrade st-link chip information and SWD burning media through STM32 stlink utility tool

Beginners must see the markdown User Guide

Wechat sports field reservation of the finished works of the applet graduation project (7) mid-term inspection report
随机推荐
Go multiplexing
Arduino + si5351 square wave generator
Tp5.1 paging (with parameter transfer)
Flume's study notes
YouTube Download and (batch) Download
IO (1) -io layering
Vite dynamically loads static resource pictures, and fixes the 404 problem of pictures after packaging.
How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen
Read and upgrade st-link chip information and SWD burning media through STM32 stlink utility tool
Beginners must see the markdown User Guide
# CF #808 Div.2(A - C)
Wechat sports field reservation of the finished works of the applet graduation project (6) opening defense ppt
Pypi counts the number of Downloads
Daily three questions 7.15
Coal industry supply chain centralized mining system: digitalization to promote the transformation and upgrading of coal industry
Go common standard library -time
Ten year structure and five-year Life-03 trouble as a technical team leader
Creating elements of DOM series
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
Custom types in C language