Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

SessionError #193

@lhohoz

Description

@lhohoz

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

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