edbeeching / godot_rl_agents_examples

Example Environments for the Godot RL Agents library
MIT License
37 stars 13 forks source link

- Update SessionConfigurator.cs to fix inference error when running onnx model #6

Closed Ivan-267 closed 1 year ago

Ivan-267 commented 1 year ago

Fixes the inference issue when running an onnx model on Windows (issue encountered with RX 570 and RTX 3060) and MacOS (https://github.com/edbeeching/godot_rl_agents/issues/115). Set the inference to run on CPU for all cases (including Intel GPUs, as they may show the same error), until issues with using DirectML are solved. Also auto-aligned the code.

Ivan-267 commented 1 year ago

Hello,

Automatically updating the plugin so that examples use the latest plugin from the repo sounds good to me, the only part I'm not sure of is the .csproj file, since that one needs to have the name of the example project (unless they are all named the same as the plugin project). A similar issue exists when installing the plugin in a new Godot project, you get the .csproj file but you have to do some copying or editing to use it in the project.