microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.56k stars 2.92k forks source link

Error: resize (packed) does not support mode: 'nearest' at WebGLInferenceHandler #12842

Open Drokoz opened 2 years ago

Drokoz commented 2 years ago

I got this error trying YoloV4 ONNX Model from de zoo models. (https://github.com/onnx/models/tree/main/vision/object_detection_segmentation/yolov4)

It works fine with "wasm" backend on the sessionOptions but with WebGl throw that.

fs-eire commented 2 years ago

[webgl] marked as 'feature request' for implementing 'nearest' mode for Resize operator.

Goldcat1996 commented 1 year ago

[webgl] 标记为“功能请求”,用于为操作员实现“最近”模式Resize。 We really need to provide the "nearest" resize for webgl

mtbhomer commented 1 year ago

Is there any plan to implement the 'nearest' mode for Resize operator in webgl? It's holding me back from using yolo models in onnx. Thanks! @fs-eire

qmalvido commented 1 year ago

Hi, I have the same issue. Trying to run Yolo models using webgl returns this error. WebAssembly works but it is painfully slow, which is a shame because this technology is very promising.

lyonbot commented 1 year ago

Same issue. Hope this could be supported someday