?keras.models.load_model(filepath,custom_objects=backbone(backbone_name).custom_objects) ? File "D:\Anaconda3\envs\std\lib\site-packages\keras\engine\saving.py", line 492, in load_wrapper ? ? return load_function(*args, **kwargs) ? File "D:\Anaconda3\envs\std\lib\site-packages\keras\engine\saving.py", line 584, in load_model ? ? model = _deserialize_model(h5dict, custom_objects, compile) ? File "D:\Anaconda3\envs\std\lib\site-packages\keras\engine\saving.py", line 273, in _deserialize_model ? ? model_config = json.loads(model_config.decode('utf-8'))
导入模型报错,h5py过新导致的
pip install h5py == 2.10.0? 即可
|