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

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

@jimeffry

Description

@jimeffry

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions