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

How do I use WebGL as executionProvider? #505

Closed
kwaroran opened this issue Jan 6, 2024 · 1 comment · Fixed by #545
Closed

How do I use WebGL as executionProvider? #505

kwaroran opened this issue Jan 6, 2024 · 1 comment · Fixed by #545
Labels
question Further information is requested

Comments

@kwaroran
Copy link

kwaroran commented Jan 6, 2024

Question

export const executionProviders = [
    // 'webgpu',
    'wasm'
];

I looked at src/backends/onnx.js and noticed that there was no webgl in the executionProviders.
Is there a way to use WebGL as executionProvider?

@kwaroran kwaroran added the question Further information is requested label Jan 6, 2024
@xenova
Copy link
Collaborator

xenova commented Jan 7, 2024

I disabled the WebGL EP because I couldn't reliably get the set of transformers.js models working with it... and seeing that WebGPU is its successor (which ORT is actively working on), I don't expect the WebGL EP to be well supported in future.

That said, if you would like to try with it, feel free to fork the library, add the webgl execution provider, and build the library yourself. If you do, let me know what models you try to run (and if they work) 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants