Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Test #23

Open
panhu opened this issue Jun 15, 2022 · 12 comments
Open

About Test #23

panhu opened this issue Jun 15, 2022 · 12 comments

Comments

@panhu
Copy link

panhu commented Jun 15, 2022

Hi, when i want to test the model:
"conv_1 = Conv2D(32, (2,5),(1,2),name = name+'_conv_1',padding = [[0,0],[1,0],[0,2],[0,0]])(input_complex_spec)
File "/root/anaconda3/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/root/anaconda3/lib/python3.9/site-packages/tensorflow/python/training/tracking/data_structures.py", line 677, in hash
raise TypeError("unhashable type: 'ListWrapper'")
TypeError: unhashable type: 'ListWrapper'
"
Can you help me?

@Le-Xiaohuai-speech
Copy link
Owner

Le-Xiaohuai-speech commented Jun 15, 2022 via email

@panhu
Copy link
Author

panhu commented Jun 15, 2022

i have changed the padding like (((0,0),(0,1),(0,2),(0,0))).but got the same error:
conv_1 = Conv2D(32, (2,5),(1,2),name = name+'_conv_1',padding = [[0,0],[0,1],[0,2],[0,0]])(input_complex_spec)
File "/root/anaconda3/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/root/anaconda3/lib/python3.9/site-packages/tensorflow/python/training/tracking/data_structures.py", line 677, in hash
raise TypeError("unhashable type: 'ListWrapper'")
TypeError: unhashable type: 'ListWrapper'

@Le-Xiaohuai-speech
Copy link
Owner

please check the versions of tensorflow and keras

@panhu
Copy link
Author

panhu commented Jun 28, 2022

Tanks,beacuase of versions of tensorflow!
Now i want to train the data of myself,but i don't konw how to organize my data.i have many clean and noise data.Using the RIRs,but when i want to train,happend some errors. like this:
File "/home/DPCRN_DNS3/data_loader.py", line 191, in generator
clean_s,noise_s,noisy_s,_ = mk_mixture(clean_s,noise_s,SNR,eps = 1e-8)
File "/home/DPCRN_DNS3/data_loader.py", line 45, in mk_mixture
mix = norm_sig2 + alpha*norm_sig1
ValueError: operands could not be broadcast together with shapes (0,) (39908,)

@panhu
Copy link
Author

panhu commented Jun 28, 2022

this is my data structure:
datasets:
clean:
clnsp_1.wav
....
noise:
noise1_SNRdb_10.0.wav
...
rirs:
pointsource_noises:
...
real_rirs_isotropic_noises:
...
simulated_rirs:
...

@Le-Xiaohuai-speech
Copy link
Owner

Le-Xiaohuai-speech commented Jun 29, 2022 via email

@VaneYb
Copy link

VaneYb commented Aug 24, 2022

Hi, when i want to test the model:
"conv_1 = Conv2D(32, (2,5),(1,2),name = name+'_conv_1',padding = [[0,0],[1,0],[0,2],[0,0]])(input_complex_spec)
File "/root/anaconda3/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/root/anaconda3/lib/python3.9/site-packages/tensorflow/python/training/tracking/data_structures.py", line 677, in hash
raise TypeError("unhashable type: 'ListWrapper'")
TypeError: unhashable type: 'ListWrapper'
"
Can you help me?

It may because the parameter 'padding' of Conv2D in keras.layer must be 'same' or 'valid', not the explicit format as in here.
I tried
conv_1 = Conv2D(32, (2,5),(1,2),name = name+'_conv_1')(tf.pad(input_complex_spec, [[0,0],[1,0],[0,2],[0,0]]))
instead of
conv_1 = Conv2D(32, (2,5),(1,2),name = name+'_conv_1',padding = [[0,0],[1,0],[0,2],[0,0]])(input_complex_spec)
for each conv_x, and run successfully.

@bigcash
Copy link

bigcash commented Sep 20, 2022

Tanks,beacuase of versions of tensorflow! Now i want to train the data of myself,but i don't konw how to organize my data.i have many clean and noise data.Using the RIRs,but when i want to train,happend some errors. like this: File "/home/DPCRN_DNS3/data_loader.py", line 191, in generator clean_s,noise_s,noisy_s,_ = mk_mixture(clean_s,noise_s,SNR,eps = 1e-8) File "/home/DPCRN_DNS3/data_loader.py", line 45, in mk_mixture mix = norm_sig2 + alpha*norm_sig1 ValueError: operands could not be broadcast together with shapes (0,) (39908,)

which version of tensorflow is correct? i tryed 2.8 and 2.9, raise this error at all

@bigcash
Copy link

bigcash commented Sep 21, 2022

Tanks,beacuase of versions of tensorflow! Now i want to train the data of myself,but i don't konw how to organize my data.i have many clean and noise data.Using the RIRs,but when i want to train,happend some errors. like this: File "/home/DPCRN_DNS3/data_loader.py", line 191, in generator clean_s,noise_s,noisy_s,_ = mk_mixture(clean_s,noise_s,SNR,eps = 1e-8) File "/home/DPCRN_DNS3/data_loader.py", line 45, in mk_mixture mix = norm_sig2 + alpha*norm_sig1 ValueError: operands could not be broadcast together with shapes (0,) (39908,)

which version of tensorflow is correct? i tryed 2.8 and 2.9, raise this error at all

i try tensorflow-gpu==1.15, and success, hope can help others.(tensorflow==2.4.4, failed with this error too)

@Le-Xiaohuai-speech
Copy link
Owner

Le-Xiaohuai-speech commented Oct 11, 2022 via email

@Le-Xiaohuai-speech
Copy link
Owner

Le-Xiaohuai-speech commented Oct 11, 2022 via email

@wangsheng3
Copy link

请检查 TensorFlow 和 Keras 的版本

Can you release a complete version of these packages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants