ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C
解决:
pip install greenlet==1.1.3 gevent==22.8.0
keras保存的h5模型,在使用load_model函数时,出现“AttributeError: ‘str’ object has no attribute 'decode’”问题。
我的tensorflow是2.0.0版本,keras是2.3.1版本,h5py模块的版本不匹配,改用2.10版本,问题解决。
pip install h5py==2.10 -i https://pypi.doubanio.com/simple
小龙在山东
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C
mb5ff40c2b7824d
keras保存的h5模型加载时出现“AttributeError: ‘str’ object has no attribute ‘decode’”