Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inference when action names are not alphabetic #159

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion godot_rl/core/godot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from typing import Optional
from godot_rl.core.utils import ActionSpaceProcessor, convert_macos_path

from collections import OrderedDict

class GodotEnv:
MAJOR_VERSION = "0" # Versioning for the environment
Expand Down Expand Up @@ -319,7 +320,7 @@ def _get_env_info(self):

# actions can be "single" for a single action head
# or "multi" for several outputeads
action_spaces = {}
action_spaces = OrderedDict()
print("action space", json_dict["action_space"])
for k, v in json_dict["action_space"].items():
if v["action_type"] == "discrete":
Expand Down