microsoft / webnn-developer-preview

MIT License
42 stars 10 forks source link

Update ONNX Runtime Web to 1.19 dev for Image Classification demos #12

Closed ibelem closed 4 months ago

ibelem commented 4 months ago

The CL #5494397 Remove support for passing MLActivations for op fusion landed in Chromium but the PR #20635 remove activation fusion was not included in ONNX Runtime Web 1.18.0 and it was unable to be cherry picked into 1.18.1.

It causes the ResNet50 fp16 demo failure on Canary and Beta of Chrome.

Chrome Browser Result Note
Canary 128.0.6554.0 FAIL Top 1 label - tench, Tinca tinca NaN
Beta 127.0.6533.17 FAIL Top 1 label - tench, Tinca tinca NaN
Stable 126.0.6478.115 PASS Top 1 label - tiger, Panthera tigris 0.9231255054473877

Changes

  1. This PR updated the ONNX Runtime Web to latest 1.19 dev and updated the Transformer.js built with 1.19 dev.
  2. Replaced "vite" by "http-server" for local test environment only since the Vite JS injection for Hot Module Replacement (HMR) support breaks the functionality of ORT Web 1.19, unless to change the code/folder structure. It will not impact the hosted site e.g. microsoft.github.io or forked github.io pages.

@fdwr @Adele101 PTAL

ibelem commented 4 months ago

@fdwr Thanks for the review comments, and fixed these issues. PTAL.