Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Error: unrecognized input '' for node: Resize_61 #310

Open
jimeffry opened this issue Aug 11, 2021 · 1 comment
Open

Error: unrecognized input '' for node: Resize_61 #310

jimeffry opened this issue Aug 11, 2021 · 1 comment

Comments

@jimeffry
Copy link

In order to do inference in browser/JavaScript, I used torch.onnx.export() to get the onnx model. And the details are below.

torch.onnx.export(net,
                    dummy_input,
                    export_onnx_file,
                    opset_version=13,
                    input_names=["input"]
    )

However, I could not load the onnx model in onnx.js environment. The error is below.

Uncaught (in promise) Error: unrecognized input '' for node: Resize_61
    at t.buildGraph (graph.ts:313)
    at new t (graph.ts:139)
    at Object.from (graph.ts:77)
    at t.load (model.ts:25)
    at session.ts:85
    at t.event (instrument.ts:294)
    at e.initialize (session.ts:81)
    at e.<anonymous> (session.ts:63)
    at onnx.min.js:14
    at Object.next (onnx.min.js:14)

We look forward to your reply . Thank you!

@fs-eire
Copy link
Contributor

fs-eire commented Sep 10, 2021

Thanks for the feedback.

Currently we are working on migrating ONNX.js to ONNX Runtime Web which offers enhanced user experience and improved performance. Please visit ONNX Runtime Web to get more details.

ONNX Runtime Web has a full operator support in 'wasm' backend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants