Skip to content

No active session at get currentSessionId when run "Classify" again #78

Description

@ibelem

Since the following two PRs have been merged and available in https://www.npmjs.com/package/onnxruntime-web/v/1.22.0-dev.20250306-ccf8fdd9ea , I tried to build latest Transformers.js dist based on 1.22.0-dev.20250306-ccf8fdd9ea to verify #69 .

Tried the ibelem/transformers.js@6cb6a4d and ibelem@a4fc70f to use ORT Web 1.22.0-dev.20250306-ccf8fdd9ea and Transformers.js 3.4.0 , but the no active session at get currentSessionId error occurs in the demo.

Repro Steps:

  1. Enable WebNN on Chrome Canary
  2. Visit Image Classification demo https://ibelem.github.io/webnn-developer-preview/demos/image-classification/?provider=webnn&devicetype=gpu&model=mobilenet-v2&run=1
  3. Click Classify button

Actual Result

PASS

Repro Steps: (cont.)

  1. Click Classify button again

Actual Result

Uncaught (in promise) Error: No active session at get currentSessionId ( at dn.ensureTensor

Image

This issue is also reproducible when switching to another models and clicking Classify button after step 3.

Enrico Galli (@egalli) Could you please help to investigate this issue, or please let me know if I missed somthing. Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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