Skip to content

Commit c38973c

Browse files
committed
Use webgpu for local development
Signed-off-by: Florian Vahl <florian@flova.de>
1 parent 55aad78 commit c38973c

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

pixi.lock

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ syrupy = ">=5.0.0, <6"
193193
exhale = ">=0.3.7, <0.4"
194194
mycroft-mimic3-tts = ">=0.2.4, <0.3"
195195
pyttsx3 = ">=2.99, <3"
196-
onnxruntime-gpu = ">=1.23.2, <2"
196+
onnxruntime-webgpu = ">=1.24.0.dev20251218001, <2"
197197

198198
[feature.robot.pypi-dependencies]
199199
# These are only needed on the robot

src/bitbots_vision/bitbots_vision/vision_modules/yoeo/yoeo_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def __init__(
229229
raise ImportError("Could not import onnxruntime. The selected handler requires this package.") from e
230230

231231
logger.debug(f"Loading file...\n\t{onnx_path}")
232-
self._inference_session = onnxruntime.InferenceSession(onnx_path)
232+
self._inference_session = onnxruntime.InferenceSession(onnx_path, providers=["WebGpuExecutionProvider"])
233233
self._input_layer = self._inference_session.get_inputs()[0]
234234

235235
self._img_preprocessor: utils.IImagePreProcessor = utils.DefaultImagePreProcessor(

0 commit comments

Comments
 (0)