SqueezeWave icon indicating copy to clipboard operation
SqueezeWave copied to clipboard

convert squeezewave model to pytorch script for C++ inference.

Open alokprasad opened this issue 4 years ago • 4 comments

Any idea how to convert squeezewave model to pytorch script and relevant c++ code for loading and inferencing from same.

alokprasad avatar Mar 09 '20 11:03 alokprasad

You might try to use the script used to convert torch to onnx provided for WaveGlow, I tried before but fail to convert the onnx to caffe2.

BohanZhai avatar Mar 26 '20 20:03 BohanZhai

You might try to use the script used to convert torch to onnx provided for WaveGlow, I tried before but fail to convert the onnx to caffe2.

I try to export the model to onnx, but always got "of traced region did not have observable data dependence with trace inputs". Then I read the script used to convert torch to onnx provided for WaveGlow. I rewrite the script to handle squeezewave model, but failed. I think I mess the depthwise pointwise conv1d to conv2d. Can you give some suggestions?

chenht2021 avatar Apr 02 '20 06:04 chenht2021

Yes, that's the problem with pytorch , models are very difficult to convert to onnx/caffe or torch script. even if we are able to c/c++ code do not produces right output with that.

alokprasad avatar Apr 02 '20 07:04 alokprasad

@alokprasad why? Doesn't torch now have native methods to export ONNX models?

turian avatar Jan 06 '21 01:01 turian