GithubHelp home page GithubHelp logo

jimffm / ml-hackathon-2021 Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 5.0 146.29 MB

Virtual ML.NET 2021 Hackathon Submission

License: MIT License

C# 60.83% GDScript 20.90% Python 18.26%
godot machine-learning reinforcement-learning openai-gym ml-net onnx onnx-models pytorch python spacex starship gym

ml-hackathon-2021's Introduction

Virtual ML.NET 2021 Hackathon Submission

Virtual on November 12-19, 2021

Team members

What we have done:

Deliverable 1:

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

Deliverable 2:

A working example how to export SB3 ONNX

Deliverable 3:

A .NET WebSocket Server serving RL inference using SB3 ONNX applicable for e.g. Unity3D

  • We replace the provided python Gym_server with godot_net_server
  • This removed dependency on python for RL inference.

Deliverable 4:

An example how to integrate ML.NET in Godot

  • 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

Deliverable 5:

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.

How to run the GymRogueOne solution? (Quick Start)

Step 1 - Git clone and download the missing large size file

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

Step 2 - Download Godot

drawing

Step 3 - Select the project.godot file and click run

  • A window shows up to allow you to import the Godot project file

drawing

  • Navigate to the folder ml-hackathon-2021/GymRogueOne/ and select project.godot
  • Go to top right corner and click play

drawing

image

Step 4 Play with these parameters to achieve soft landing

drawing

drawing

uzYkLCgQH1

More: Longer starship landing video

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.