Hyuto / yolov10-onnxruntime-web

YOLOv10 right in your browser with onnxruntime-web
https://hyuto.github.io/yolov10-onnxruntime-web/
2 stars 3 forks source link

[QUESTION] Specifying WebGL #2

Open theRealestAEP opened 3 weeks ago

theRealestAEP commented 3 weeks ago

If I were to enforce using WebGL I.e. const session = await ort.InferenceSession.create('./yolov10n_web.onnx', { executionProviders: ['webgl'], graphOptimizationLevel: 'all', }); I hit a weird error regarding Split being an invalid operation - this doesn't happen if I specify wasm ... out of curiosity do you how I could get it working with WebGL?

Hyuto commented 2 weeks ago

Hello, currently not all operators in onnx is supported on WEBGL or WEBGPU EP. So if you encounter that type of error especially if it works on WASM ep and fail on other EP then it mostly because there's not supported operators in the model itself.