Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] Error: using ceil() in shape computation is not yet supported for AveragePool #21206

Open
xenova opened this issue Jun 28, 2024 · 4 comments
Labels
ep:WebGPU ort-web webgpu provider model:transformer issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc. platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@xenova
Copy link

xenova commented Jun 28, 2024

Describe the issue

When attempting to run https://huggingface.co/onnx-community/rtdetr_r50vd on WebGPU, I receive the following error:
image

To reproduce

JSFiddle: https://jsfiddle.net/j8uc3k91/

const url = 'https://huggingface.co/onnx-community/rtdetr_r18vd_coco_o365/resolve/main/onnx/model.onnx?download=true';
const session = await ort.InferenceSession.create(url, {
  executionProviders: ['webgpu'],
});

const dims = [1, 3, 640, 640];
const input = new ort.Tensor(
  'float32',
  new Float32Array(dims.reduce((acc, x) => acc * x, 1)),
  dims,
)

// prepare feeds. use model input names as keys.
const feeds = { pixel_values: input };

// feed inputs and run
const results = await session.run(feeds);
console.log(results)

Urgency

Blocks RT-DETR use in Transformers.js w/ WebGPU

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.18.0

Execution Provider

'webgpu' (WebGPU)

@xenova xenova added the platform:web issues related to ONNX Runtime web; typically submitted using template label Jun 28, 2024
@github-actions github-actions bot added the model:transformer issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc. label Jun 28, 2024
@xenova
Copy link
Author

xenova commented Jun 28, 2024

cc @guschmue @fs-eire

@guschmue guschmue added the ep:WebGPU ort-web webgpu provider label Jun 28, 2024
@guschmue
Copy link
Contributor

guschmue commented Jul 1, 2024

ok, we'll fix this. I think there is another issue on this too.

Copy link
Contributor

github-actions bot commented Aug 1, 2024

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Aug 1, 2024
@xenova
Copy link
Author

xenova commented Aug 2, 2024

bump :) will be fixed by #21231 I assume?

@github-actions github-actions bot removed the stale issues that have not been addressed in a while; categorized by a bot label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:WebGPU ort-web webgpu provider model:transformer issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc. platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants