Traceback (most recent call last):
File "D:/speech_denoise/DPCRN_DNS3-main/real_time_processing/real_time_DPCRN.py", line 293, in
encoder_RT.load_weights('../pretrain_model/model_DPCRN_SNR+logMSE_causal_sinw.h5')
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 182, in load_weights
return super(Model, self).load_weights(filepath, by_name)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\engine\network.py", line 1373, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py", line 645, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last): File "D:/speech_denoise/DPCRN_DNS3-main/real_time_processing/real_time_DPCRN.py", line 293, in
encoder_RT.load_weights('../pretrain_model/model_DPCRN_SNR+logMSE_causal_sinw.h5')
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 182, in load_weights
return super(Model, self).load_weights(filepath, by_name)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\engine\network.py", line 1373, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py", line 645, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'