Speech-enhancement
Speech-enhancement copied to clipboard
ValueError: Cannot feed value of shape (256, 9, 129) for Tensor 'model/labels:0', which has shape '(
When I ran the main.py , the following error occurred.
When I ran the main.py, the following error occurred.At this point, the model used is fnn.
Later, when I checked the fnn model in the trnmodle.py, I found the cause of the error.
However, I did not modify the parameters or commands in the datareader.py. and the same error occurred when I used the lstm model.
ValueError: Cannot feed value of shape (256, 9, 129, 1) for Tensor 'model/inputs:0', which has shape '(?, 129, 1, 1)'
However, my RAW file is made using the MATLAB program you gave, for example
Excuse me, what should I do to solve this problem?Is there any wrong operation when I am making RAW files? I made all the voices in the TRAIN folder in TIMIT into the RAW files needed in the SE, and did not set the verification file.
And I read your paper. The neural network used in the TSN algorithm you proposed in the paper is DNN. Is that right?
@jtkim-kaist
- The problem occurs from the mismatch of datareader and model's placeholder. According to your debugging, the datareader outputs the dnn's inputs but the model is set to lstm.
Please verify your log directory is clean, if not, the program automatically re-load previous model so that mismatch can occur.
- Yes, in partial. TSN consists of DNN (pri-NN) and CNN (post-NN).
I'm really sorry about your effort because of code problems. Cheer up and If you have another question, please tagging me again.
Also the first problem you mentioned is not the code problem, but some environmental problem. How about changing your environment to ubuntu 16.04 from window? Actually, all of my projects were run in ubuntu 16.04 so I cannot expect my project will run in window correctly. Also, my co-workers had not suffered from code problems to run this project in ubuntu environment.
Do you mean that the two mode models should be defined the same when I run the code? Is it the form in the picture below?
I will try to run your project in the ubantu environment, if I have any questions, I will ask you again. thanks for your help. @jtkim-kaist
Or, I need to modify the config.mode=="lstm" and config.mode=="tsn" commands in the datareader. In other words, when I use the following in the config.py file, do I need to ensure that the mode in config.py should be lstm instead of fnn?
in datareader.py is
At this time, mode is lstm
In config.py, do I need to change mode='fnn" to mode="lstm? such as,
@jtkim-kaist
Don't change the code and at first, just set mode='fnn' (basic mode) and in main.py try to set reset=True, train_reset=True, test_only=False
Also, clean your files in logs. and remove some .npy in your data directory (if .npy exists)