[Web] custom wasm model location path for inference #22504
Labels
api:Javascript
issues related to the Javascript API
platform:web
issues related to ONNX Runtime web; typically submitted using template
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
we are using onnxruntime-web and want to know if there is a configuration to customize the nn inference location. the method now is getting from the root of the app build but we want to do a custom path.
anyone have idea on how to change so the wasm can be in own custom location?
Trying to find way to set custom wasm paths.
Unfortunately, direct configuration for custom WASM file paths via ONNX Runtime Web's API is not supported. Instead, the solution revolves around ensuring the files are served from the correct path that ONNX Runtime expects.
To reproduce
we are building the wasm but when we call the innference it only using the root location. we placed the wasm elsewhere.
And then our webpack, we do this:
Urgency
No response
Platform
Windows
OS Version
web
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1
ONNX Runtime API
JavaScript
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: