coremltools icon indicating copy to clipboard operation
coremltools copied to clipboard

Error computing NN outputs

Open adilnaut opened this issue 7 years ago • 9 comments

Setup: coremltools3.0b3, python 3.7.3 , MacOS 10.15, with Xcode12 beta installed, convertion of Tacotron model.

I converted the text-to-speech model which using the last coremltools beta, but when I try to call predict on that model, the following error is thrown:

Traceback (most recent call last):
  File "infer.py", line 26, in <module>
    predictions = model.predict(data, usesCPUOnly=True)
  File "/Users/adilettuleuov/.pyenv/versions/3.7.3/lib/python3.7/site-packages/coremltools/models/model.py", line 331, in predict
    return self.__proxy__.predict(data,useCPUOnly)
RuntimeError: {
    NSLocalizedDescription = "Error computing NN outputs.";
}

Any hints on how to debug the error? Also, I can't call visualize_spec function because infer_shapes for (gather, loadConstantND ) is not implemented.

adilnaut avatar Jul 29 '19 13:07 adilnaut

We would need to look at the model to find the cause of the error. Can you either attach the model, script for conversion or file a bug? Thank you.

aseemw avatar Jul 29 '19 17:07 aseemw

Here is the converted model: https://drive.google.com/drive/folders/1FN6MvFTHpwE3Do9Za7DYbwL5u3sjdxur?usp=sharing Original tensorflow model: https://github.com/keithito/tacotron

adilnaut avatar Jul 30 '19 13:07 adilnaut

Here is the converted model: https://drive.google.com/drive/folders/1FN6MvFTHpwE3Do9Za7DYbwL5u3sjdxur?usp=sharing Original tensorflow model: https://github.com/keithito/tacotron

Could you also share your convert script? We'll look into it. Thanks!

1duo avatar Jul 30 '19 22:07 1duo

I guess Upsamle / Resize has this issue when usesCPUOnly=false. When i turn usesCPUOnly as true, no error occurs.

sebkim avatar Nov 11 '19 01:11 sebkim

I'm going to close this issue since we have not received the requested information. @adilnaut - feel free to provide your conversion script and reopen this issue.

TobyRoseman avatar Oct 08 '21 20:10 TobyRoseman

I have this error now. would some one help me?

universalwow avatar May 18 '22 10:05 universalwow

We would need to look at the model to find the cause of the error. Can you either attach the model, script for conversion or file a bug? Thank you.

i have this error now, could help me?

universalwow avatar May 18 '22 10:05 universalwow

@universalwow - does it still happen in the latest version of coremltools? Can you give us steps to reproduce the issue?

TobyRoseman avatar Aug 23 '22 16:08 TobyRoseman

Hey @adilnaut, how did you trace the Tacotron model? Doesn't seem possible because of LSTM layer. Would be very helpful to know your approach.

Thanks, Rahul Bhalley

RahulBhalley avatar Apr 14 '23 06:04 RahulBhalley