microsoft / microsoft/onnxruntime

[Web] Different results for WebGPU and WASM on LightGlue-ONNX

Open
#25,227 4 comments 0 reactions 2 assignees Assigned to @fs-eire View on GitHub
ep:WebGPU ep:WebNN platform:web
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

I am trying to run this superpoint + lightglue onnx model from this repository: https://github.com/fabio-sim/LightGlue-ONNX in onnxruntime-web with gpu acceleration.

When I test the model with the wasm ep, I get the expected results with keypoints, matches, and scores. When running with webgpu, I get keypoints, but no matches. When trying webnn, I get the same results as wasm.

I've also included a log file from turning on verbose logging, but I'm unsure of how to make sense of it to determine what is causing the issue, so insight on how to debug this with the logs would be helpful.

The first result is running with wasm, the second is webgpu.
![Image](https://github.com/user-attachments/assets/e83f3de4-301d-4e80-9873-8fef14131c1d)

Small snippet of the logs after the model is loaded.
![Image](https://github.com/user-attachments/assets/2c6d0194-c225-4fca-8e1a-4272a0cf747c)

### To reproduce

Model, images, test code, and logs: https://drive.google.com/drive/folders/1_vrhMIwPnakonMR97c8tdLvHfYFK__ef?usp=drive_link

### Urgency

_No response_

### ONNX Runtime Installation

Released Package

### ONNX Runtime Version or Commit ID

1.22.0

### Execution Provider

'webgpu' (WebGPU)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.