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

SessionError #193

Open
lhohoz opened this issue Nov 4, 2023 · 0 comments
Open

SessionError #193

lhohoz opened this issue Nov 4, 2023 · 0 comments

Comments

@lhohoz
Copy link

lhohoz commented Nov 4, 2023

Describe the bug
I have tried to run inference with an onnx formatted text detection model but was unable to create a session.

import init, { Session } from "@webonnx/wonnx-wasm";
 // Start webonnx
const webonnxWasm = chrome.runtime.getURL("/static/files/wonnx_bg.wasm");
const webonnx = await init(webonnxWasm);
const reply = await fetch(model);
const blob = await reply.arrayBuffer();
const arr = new Uint8Array(blob);
const wonnxSession = await Session.fromBytes(arr); ---> SessionError

model: en_PP-OCRv3_det(onnx formatted) https://github.com/frotms/PaddleOCR2Pytorch/blob/main/doc/doc_en/models_list_en.md


Screenshots
image (2)
image (1)

Desktop (please complete the following information):

  • OS: Windows + DX12
  • Browser Chrome
  • Version Latest version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant