AttributeError: ‘str’ object has no attribute ‘decode 原因: tensorflow2.x自带的h5py版本太高,需降级处理。 pip install h5py==2.10.0