Skip to content

Conversation

@Nijco
Copy link
Contributor

@Nijco Nijco commented Apr 7, 2025

The current implementation of the onnx inference only takes into account the "obs" key from each agent's observation dictionary. The changes in this PR allow each aspect of the observation to be used as input to the onnx model.

For this change, the 'obs' parameter of ONNXInference.RunInference is changed from Godot Array to Godot Dictionary. This actually aligns the implementation with the current documentation in 'docs/ONNXInference.xml/Run' that states: "<param name="obs">Dictionary containing all observations.</param>".

This PR should be non-breaking and is related to this PR (but it is not depending on it to work): [edbeeching/godot_rl_agents/pull/231]

Please let me know if any changes or information are necessary to get this merged.

@Nijco Nijco changed the title onnx inference: support whole observation dictinoary as input to the onnx model onnx inference: support whole observation dictionary as input to the onnx model Apr 7, 2025
@Ivan-267
Copy link
Collaborator

Ivan-267 commented Apr 7, 2025

Thanks for this PR and the other PR on the main repository, just confirming I will check them when possible, but it might take me some days however.

Copy link
Collaborator

@Ivan-267 Ivan-267 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and the clarifications on the edbeeching/godot_rl_agents#231 PR, I performed a quick test.

@Ivan-267
Copy link
Collaborator

Ivan-267 commented May 5, 2025

@edbeeching should be ready to merge now.

@edbeeching edbeeching merged commit 585dec7 into edbeeching:main May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants