Virtual on November 12-19, 2021
Team members
A workflow to train PyTorch OpenAI Gym (stable-baselines3 or SB3) model using Godot environment on Windows
The provided GymGodot is being tested ONLY on Linux & Godot 3.3
- We hacked the provided python script solution to make them work on Windows
- We learned that it was not trivial to simply export PyTorch model to ONNX due to no broadcast_tensors opperator support discussed here
- We follow the instruction and added extra pytorch codes and attached model_to_onnx.py to export the trained pytorch model to StarShipLander.ONNX
- We replace the provided python Gym_server with godot_net_server
- This removed dependency on python for RL inference.
- We removed the need of having two applications: a UI client and a (python/.NET) server serving RL inference by implementing a single application solution: GymRogueOne
Reference: the provided GymGodot's rocket model is replaced with a SpaceX Starship model by MartianDays under Creative Commons Attribution
A workflow to possibly make SEVEN OpenAI Gym RL algorithms accessible throgh ML.NET
For more information: mlnet_findings.pptx
- A2C: Asynchronous Advantage Actor Critic.
- DDPG: Deep Deterministic Policy Gradient.
- DQN: Deep Q Network.
- HER: Hindsight Experience Replay.
- PPO: Proximal Policy Optimization. e.g. GymRogueOne
- SAC: Soft Actor Critic. - tested
- TD3: Twin Delayed DDPG.
git clone https://github.com/JimFFM/ml-hackathon-2021
cd ml-hackathon-2021/GymRogueOne/StarShip/
Download the missing large size file: Starship.material into the StarShip folder, according to the link provided here
wget https://drive.google.com/file/d/1pekt-xm665w6h77tOVHtmUjPeRDq5jF4/view?usp=sharing
- Godot download page
- In our case, we downloaded the Godot Mono x86-64 bit zip file
- Unzip the Godot application (~81 MB)
- A window shows up to allow you to import the Godot project file
- Navigate to the folder ml-hackathon-2021/GymRogueOne/ and select project.godot
- Go to top right corner and click play