waveglow: Cant load waveglow checkpoint into inference code even after convert
I have trained a new waveglow model for my language, but I cant load it into Tacotron2 inference.ipynb
file to run test. It return this error:
AttributeError: 'WN' object has no attribute 'cond_layers'
I tried convert the checkpoint using convert_model.py
file in waveglow folder but it still raise the same error
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 37
Sorry, what I wanted to say is that it will be good to focus on other issues like fp32 instead of reducing parameters. If you feel that I am rude, I apologize.
Update: I tried torch 1.0, the Tacotron inference time is slightly reduced, but Waveglow time is almost doubled
Sorry for late sharing⊠Yesterday, I change âconvert_model.pyâ into the codes below.
Since my model has not trained yet, I couldnât test this codes. Hope that this codes are helpful to you and plz let me know whether it works or not.
Explanation of code change) The problem is that the trained model (saved model) does not contain the number of ân_layersâ Conv modules, âcond_layersâ, but does have one integrated Conv module with (C_in=640, C_out = n_channels * n_layers). Thus, I separate one integrated Conv module into the number of ân_layersâ convolutions.
Thank you.
Changed code)