Skip to content
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

ORT Web: Uncaught (in promise) 12768952 #2065

Closed
josephrocca opened this issue Oct 20, 2022 · 2 comments
Closed

ORT Web: Uncaught (in promise) 12768952 #2065

josephrocca opened this issue Oct 20, 2022 · 2 comments
Labels
bug An unexpected problem or unintended behavior

Comments

@josephrocca
Copy link

josephrocca commented Oct 20, 2022

Accidentally posted this to the wrong repository 🤦 Moved to here: microsoft/onnxruntime#13383

Describe the bug
The error message "Uncaught (in promise) 12768952" is logged to the console when running inference on a model with ORT Web.

Urgency
Not urgent. Just trying to get Google's new Lyra V2 model working in the browser.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04*): Converted from tflite model in 20.04, and tested inference in Chrome and Firefox.
  • TensorFlow Version: 2.9.2
  • Python version: 3.7.15
  • ONNX version (if applicable, e.g. 1.11*): 1.12.1
  • ONNXRuntime version (if applicable, e.g. 1.11*): 1.12.1

To Reproduce
Minimal example: https://jsbin.com/finulodeji/edit?html,output

Full code from that example, for quick reference:

  <script src="https://cdn.jsdelivr.net/npm/onnxruntime-web@1.12.1/dist/ort.js"></script>
  <script>
    async function start() {
      console.log("Loading model...")
      let session = await ort.InferenceSession.create("https://huggingface.co/rocca/lyra-v2-soundstream/resolve/main/onnx/soundstream_encoder.onnx", { executionProviders: ["wasm"] });
      console.log("Running inference");
      let feeds = {"serving_default_input_audio:0": new ort.Tensor('float32', new Float32Array(320).fill(0), [1,320])};
      let results = await session.run(feeds);
      console.log("Results:", results);
    }
    start();
  </script>

Screenshots
image

Additional Context
This model was converted from a tflite model using this notebook - there were no errors or warnings. There were some initial conversion troubles, but after some fixes (see that issue for details), the conversion process appears to be fixed.

@josephrocca josephrocca added the bug An unexpected problem or unintended behavior label Oct 20, 2022
@josephrocca
Copy link
Author

josephrocca commented Oct 20, 2022

I'm wondering if it's possible for a "debug" build to be published which makes error messages like this more informative? Just something like:

https://cdn.jsdelivr.net/npm/onnxruntime-web@1.12.1/dist/ort-debug.js

so it's easy to switch in and out of debug mode. That is, assuming it's possible to configure build flags to make error messages like these more informative.

@josephrocca
Copy link
Author

josephrocca commented Oct 20, 2022

Oh, woops! Wrong repository 🤦 Correct issue here: microsoft/onnxruntime#13383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant