You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion: The naming of the "Training" control mode in the sync node is probably misleading #69
The following "issue" is not truly an issue but more a short discussion I would like to start.
As we know, the control mode can be set in the sync node. One of them is "Training" with the description "Train a model". However, the true meaning of this mode is that Godot is connecting to a (TCP-) server that is either a trainable agent or a non-trainable agent (aka: inference).
So with "Training" control mode, it is also possible to actually test a pretrained agent ("do inference"), same as for "Onnx Inference" mode.
Naming suggestions:
Client (Emphasizing that this is a client that is connecting to a Python server)
Python Server (Emphasizing that Godot is connecting to a Python server)
The description could be: "Connect to Python server for model training or inference" or "Connect to Python server for training or testing a model (inference)"
Brief background on the feature:
The feature was introduced in PR: #19
A few days later, a PR that added inference to SB3 example was made (I'm not sure that this order had any effect on the naming however, just for info): edbeeching/godot_rl_agents#135
Originally the naming was selected according to the main purpose, i.e. use training when training, human for manual control/heuristic, and onnx inference for using an exported model without Python.
In a later PR, this selection was extended to be overridable per AI Controller, so you could set a unique mode and onnx model as needed (e.g. run onnx inference on some AIControllers while training others, or have one be human controlled and another AI controlled via onnx inference).
As the training mode is used when training, I think that the name being misleading is slightly strong.
However, I fully agree that it's not a complete description of what can be done (e.g. Python inference which I do more frequently lately, you could also have a custom test/control script, etc.). For these purposes, the name could be confusing.
Options:
Modify the tooltip for this mode to explain that it is used to connect to the Python server and can be used for training or other purposes.
Modify the name and the tooltip.
Option 1:
There is a compatibility advantage if the name is mentioned somewhere in existing examples, guides, tutorials, etc. as it has been there for a while now.
For the specific use of training and a first time user, the name is perhaps even clearer than a more generic, albeit more correct one.
Option 2:
The main advantage is that it is more correct and covers all possible uses, also it highlights that you need a Python server to use it (however there is a warning message on timeout that mentions the need of a Python server already).
In both cases, as a first time user, you would still need to read the starting guides on how to setup the Python part and launch training.
Additional notes:
Human mode name was also chosen according to its main purpose (e.g. control the env by a human when testing or for AI + Player envs), but technically it can be used for an arbitrary control method (you could even write a training loop for a human controlled agent), so the names are simplifications for the main targeted/simplest use.
I am open to discussing future changes at any point to these names with the above considerations (compatibility, ease of understanding the main purpose for a first time user), and if we do change the names, something like "Python Server" and "Manual" control might be one option.
onnx inference does keep the onnx qualifier to not mix with e.g. Python inference.
Very good points. Thank you for your thoughts @Ivan-267.
As the training mode is used when training, I think that the name being misleading is slightly strong.
I certainly do not have hard feelings about it. Maybe this was caused by an inappropriate title of this issue ("... is probably misleading"). If so then I apologize kindly and I will gladly change this title. I merely brought this up because I have heard (from people using the plugin) that they do not realize they could do Python inference with the "Training" control mode. But I agree that all should read the documentation 👍
Option 1:
There is a compatibility advantage if the name is mentioned somewhere in existing examples, guides, tutorials, etc. as it has been there for a while now.
For the specific use of training and a first time user, the name is perhaps even clearer than a more generic, albeit more correct one.
True. How about to keep the name and change the tooltip as follows: "Connect to Python server for model training or inference"
As the training mode is used when training, I think that the name being misleading is slightly strong.
I certainly do not have hard feelings about it. Maybe this was caused by an inappropriate title of this issue ("... is probably misleading"). If so then I apologize kindly and I will gladly change this title. I merely brought this up because I have heard (from people using the plugin) that they do not realize they could do Python inference with the "Training" control mode. But I agree that all should read the documentation 👍
Please keep the title and of course no reason for apologies, the point is correct, that specific comment was only regarding the qualifier.
It's good you brought this up, as we can do some improvements. I agree that for Python inference, it would be confusing which mode exactly to pick.
I think this would be an opportunity to add a note there as well.
On the other hand, while Python Server for example is more correct and a potential future candidate, it still doesn't directly say any of the use cases without reading an additional tooltip + project guide (be it docs or some tutorial/etc).
True. How about to keep the name and change the tooltip as follows: "Connect to Python server for model training or inference"
I think that's a great starting point we can do now, and as mentioned we can always consider a future name change after considering more the compatibility and optimal name aspects.
How about this?
If you'd like, you can change the plugin tooltip, and I can add a note to the adv sb3 guide (it's a different repo so we need a separate PR anyway).
Activity
Ivan-267 commentedon Jul 10, 2026
Brief background on the feature:
The feature was introduced in PR: #19
A few days later, a PR that added inference to SB3 example was made (I'm not sure that this order had any effect on the naming however, just for info): edbeeching/godot_rl_agents#135
Originally the naming was selected according to the main purpose, i.e. use training when training, human for manual control/heuristic, and onnx inference for using an exported model without Python.
In a later PR, this selection was extended to be overridable per AI Controller, so you could set a unique mode and onnx model as needed (e.g. run onnx inference on some AIControllers while training others, or have one be human controlled and another AI controlled via onnx inference).
As the training mode is used when training, I think that the name being misleading is slightly strong.
However, I fully agree that it's not a complete description of what can be done (e.g. Python inference which I do more frequently lately, you could also have a custom test/control script, etc.). For these purposes, the name could be confusing.
Options:
Option 1:
There is a compatibility advantage if the name is mentioned somewhere in existing examples, guides, tutorials, etc. as it has been there for a while now.
For the specific use of training and a first time user, the name is perhaps even clearer than a more generic, albeit more correct one.
Option 2:
The main advantage is that it is more correct and covers all possible uses, also it highlights that you need a Python server to use it (however there is a warning message on timeout that mentions the need of a Python server already).
In both cases, as a first time user, you would still need to read the starting guides on how to setup the Python part and launch training.
Additional notes:
Human mode name was also chosen according to its main purpose (e.g. control the env by a human when testing or for AI + Player envs), but technically it can be used for an arbitrary control method (you could even write a training loop for a human controlled agent), so the names are simplifications for the main targeted/simplest use.
I am open to discussing future changes at any point to these names with the above considerations (compatibility, ease of understanding the main purpose for a first time user), and if we do change the names, something like "Python Server" and "Manual" control might be one option.
onnx inferencedoes keep theonnxqualifier to not mix with e.g. Python inference.stefanfausser commentedon Jul 10, 2026
Very good points. Thank you for your thoughts @Ivan-267.
I certainly do not have hard feelings about it. Maybe this was caused by an inappropriate title of this issue ("... is probably misleading"). If so then I apologize kindly and I will gladly change this title. I merely brought this up because I have heard (from people using the plugin) that they do not realize they could do Python inference with the "Training" control mode. But I agree that all should read the documentation 👍
True. How about to keep the name and change the tooltip as follows: "Connect to Python server for model training or inference"
Ivan-267 commentedon Jul 10, 2026
Please keep the title and of course no reason for apologies, the point is correct, that specific comment was only regarding the qualifier.
It's good you brought this up, as we can do some improvements. I agree that for Python inference, it would be confusing which mode exactly to pick.
This is the doc I usually point users to for using the SB3 training script:
https://github.com/edbeeching/godot_rl_agents/blob/main/docs/ADV_STABLE_BASELINES_3.md#run-inference-on-a-saved-model-for-100_000-steps
I think this would be an opportunity to add a note there as well.
On the other hand, while
Python Serverfor example is more correct and a potential future candidate, it still doesn't directly say any of the use cases without reading an additional tooltip + project guide (be it docs or some tutorial/etc).I think that's a great starting point we can do now, and as mentioned we can always consider a future name change after considering more the compatibility and optimal name aspects.
How about this?
If you'd like, you can change the plugin tooltip, and I can add a note to the adv sb3 guide (it's a different repo so we need a separate PR anyway).
stefanfausser commentedon Jul 10, 2026
Agreed. Will do the PR for the plugin soon (I aim for this evening)
Ivan-267 commentedon Jul 18, 2026
Just a status update:
#70 - Ready to merge.
edbeeching/godot_rl_agents#262 - Pending approval.
Once we merge those, the issue should be resolved and we can close it.