코랩에서 계속 작업하던 똑같은 파일을 얼마 전에 돌려보니까 이런 에러가 발생하면서 작동이 안 되더라고요
/tensorflow-1.15.2/python3.7/keras/engine/saving.py in _deserialize_model(h5dict, custom_objects, compile)
271 if model_config is None:
272 raise ValueError('No model found in config.')
--> 273 model_config = json.loads(model_config.decode('utf-8'))
274 model = model_from_config(model_config, custom_objects=custom_objects)
275 model_weights_group = h5dict['model_weights']
AttributeError: 'str' object has no attribute 'decode'
그래서 pip list로 확인해 보니까 h5py의 버전이 3.1.0으로 업데이트되어서 호환이 안되는 것 같더군요
h5py 3.1.0
코드 제일 위에 아래 코드를 넣어 버전을 2점대로 낮추니까 다시 잘 작동하는 걸 볼 수 있었습니다.
!pip install h5py==2.10.0