Closed wojung closed 5 years ago
RuntimeError: Only tuples, lists and Variables supported as JIT inputs, but got int
But max_len is int:
max_len = 163
Try wrapping it into a list and changing the remainder of the code that interacts with max_len
i think tacotron seems to want an int as an input. i will try thank you so much
@wojung are you able to successfully transfer the model to onnx?
nope. i failed to transfer to onnx sorry
waveglow_path = './waveglow_256channels.pt' waveglow = torch.load(waveglow_path)['model']
mel_extra=torch.tensor(np.full((1,80,222),-10.0)).float() dummy_input=torch.autograd.Variable(mel_extra).cuda().float()
audio = torch.tensor(np.full((1,222), -0.5)).float() audio_input = torch.autograd.Variable(audio).cuda().float() torch.onnx.export(waveglow, ((dummy_input, audio_input),), "./waveglow.onnx")
It can start to run export, but since logdet operator is not supported, export failed.
/home/user/anaconda3/envs/pytts/lib/python3.6/site-packages/torch/onnx/utils.py:501: UserWarning: ONNX export failed on ATen operator logdet because torch.onnx.symbolic.logdet does not exist ...... RuntimeError: ONNX export failed: Couldn't export operator aten::logdet
@rafaelvalle same problem with waveglow model beacuse lodget operator is not supported. any idea
@wojung max_len = torch.tensor(163) I used this and the error you mentioned was solved. I got another error
TypeError Traceback (most recent call last)
finally solved? @wojung
i want to transfer pre-trained tacotron2 model to onnx
first load model
and i set input like this
and try to transfer model to onnx
but there is an error
Is the input value wrong??? ㅠㅠ