[Web] Upgrading from 1.20.1 to 1.21.* breaks Segment Anything models on WebGPU #23183
Labels
ep:WebGPU
ort-web webgpu provider
model:transformer
issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.
.NET
Pull requests that update .net code
platform:web
issues related to ONNX Runtime web; typically submitted using template
Describe the issue
After upgrading to onnxruntime-web version 1.21.0-dev.20241205-d27fecd3d3 in this commit, Segment Anything models no longer work on WebGPU. WASM is correct (albeit slow). You can use https://huggingface.co/Xenova/slimsam-77-uniform for testing, as shown below.
Correct behaviour:
Incorrect behaviour:
To reproduce
https://cdn.jsdelivr.net/npm/@huggingface/[email protected]
and see that everything works correctly.https://cdn.jsdelivr.net/npm/@huggingface/[email protected]
and see that the output is incorrect.Urgency
Since Segment Anything is quite a popular Transformers.js model, this is pretty important.
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.21.0-dev.20241205-d27fecd3d3
Execution Provider
'webgpu' (WebGPU)
The text was updated successfully, but these errors were encountered: