-
Notifications
You must be signed in to change notification settings - Fork 161
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
ValueError: trying to load 500h file h5 with 10 layers but model architecture has 9 layers #55
Comments
I just ran
Thought I would give it a go as sat here scratching my head on how to create a state-full model for a custom real-time tflite whats run_evaluation_file.py ?
tf2.7.1 |
Oh thanks it works for me now, I've modified something in the code. The second problem is when I want to evaluate the model with the metric STOI, I don't have the same length of data between the processed soundfile and the not clear voice. |
Hi Nicolas, I will also look into the other error. |
The length issue should be fixed now. |
Yes it is ! |
Hi to all,
I think there is a problem in the class definition of the model for 2 reasons.
First, i can load the classical model.h5 but not the DTLN_norm_500h.h5
when I want to use the 500h model I have the following error by running this command :
python3.8 DTLN/run_evaluation_file.py -i input_folder -o output_folder -m DTLN/pretrained_model/DTLN_norm_40h.h5
or
python3.8 DTLN/run_evaluation_file.py -i input_folder -o output_folder -m DTLN/pretrained_model/DTLN_norm_500h.h5
but no problem with classical model
python3.8 DTLN/run_evaluation_file.py -i input_folder -o output_folder -m DTLN/pretrained_model/model.h5
Secondly, when I use the classical model It runs perfectly but the shapes of the denoised soundile is truncated
I think you may missed the definition of the last layer of the model in the class DTLN_model in the file DTLN_model.py but I do not know where.
Can you help me ?
I listened to the denoised soundfile and it seems to be better than lots of models in this field so congrats !
The text was updated successfully, but these errors were encountered: