All Projects → dhyeythumar → ML-Agents-with-Google-Colab

dhyeythumar / ML-Agents-with-Google-Colab

Licence: MIT license
Train reinforcement learning agent using ML-Agents with Google Colab.

Programming Languages

Jupyter Notebook
11667 projects
ASP.NET
160 projects

Projects that are alternatives of or similar to ML-Agents-with-Google-Colab

SNAC
Simultaneous Navigation and Construction
Stars: ✭ 13 (-51.85%)
Mutual labels:  reinforcement-learning-environments
Trendr App
Twitter Trends history explorer app. Trending topics can be explored by date and location. Backend served with Lambda Function (NodeJS) from AWS. Frontend made with VueJS. Twitter API queried with a Python script from Google Colab. MongoDB database.
Stars: ✭ 17 (-37.04%)
Mutual labels:  google-colab
SRGAN-Keras-Implementation
Photo Realistic Single Image Super-Resolution Using a Generative Adversarial Network implemented in Keras
Stars: ✭ 25 (-7.41%)
Mutual labels:  google-colab
rlss-2019
Materials for the Practical Sessions of the Reinforcement Learning Summer School 2019: Bandits, RL & Deep RL (PyTorch).
Stars: ✭ 79 (+192.59%)
Mutual labels:  google-colab
TensorFlow20-Notes
TensorFlow 2.0 Various notes and tutorials
Stars: ✭ 14 (-48.15%)
Mutual labels:  google-colab
pyunity
A pure Python 3D Game Engine that was inspired by the structure of the Unity Game Engine
Stars: ✭ 187 (+592.59%)
Mutual labels:  unity-engine
ZeroSimROSUnity
Robotic simulation in Unity with ROS integration.
Stars: ✭ 112 (+314.81%)
Mutual labels:  reinforcement-learning-environments
carla-colab
How to run CARLA simulator on colab
Stars: ✭ 81 (+200%)
Mutual labels:  google-colab
avatars4all
Live real-time avatars from your webcam in the browser. No dedicated hardware or software installation needed. A pure Google Colab wrapper for live First-order-motion-model, aka Avatarify in the browser. And other Colabs providing an accessible interface for using FOMM, Wav2Lip and Liquid-warping-GAN with your own media and a rich GUI.
Stars: ✭ 187 (+592.59%)
Mutual labels:  google-colab
blender-colab
Render Blender 3.x and 2.9x scenes with Google Colaboratory
Stars: ✭ 78 (+188.89%)
Mutual labels:  google-colab
bark-ml
Gym environments and agents for autonomous driving.
Stars: ✭ 68 (+151.85%)
Mutual labels:  reinforcement-learning-environments
TF RL
Eagerly Experimentable!!!
Stars: ✭ 22 (-18.52%)
Mutual labels:  google-colab
DA-RetinaNet
Official Detectron2 implementation of DA-RetinaNet of our Image and Vision Computing 2021 work 'An unsupervised domain adaptation scheme for single-stage artwork recognition in cultural sites'
Stars: ✭ 31 (+14.81%)
Mutual labels:  google-colab
digit recognizer
CNN digit recognizer implemented in Keras Notebook, Kaggle/MNIST (0.995).
Stars: ✭ 27 (+0%)
Mutual labels:  google-colab
simple-playgrounds
Simulator for Reinforcement Learning and AI. 2D environments with physics and interactive entities. Agents with rich sensors and actuators.
Stars: ✭ 18 (-33.33%)
Mutual labels:  reinforcement-learning-environments
gym-cartpole-swingup
A simple, continuous-control environment for OpenAI Gym
Stars: ✭ 20 (-25.93%)
Mutual labels:  reinforcement-learning-environments
self-driving-car
Implementation of the paper "End to End Learning for Self-Driving Cars"
Stars: ✭ 54 (+100%)
Mutual labels:  google-colab
Transformer-ocr
Handwritten text recognition using transformers.
Stars: ✭ 92 (+240.74%)
Mutual labels:  google-colab
rl-bigwatermelon
用深度强化学习玩合成大西瓜
Stars: ✭ 22 (-18.52%)
Mutual labels:  reinforcement-learning-environments
magical
The MAGICAL benchmark suite for robust imitation learning (NeurIPS 2020)
Stars: ✭ 60 (+122.22%)
Mutual labels:  reinforcement-learning-environments

ML-Agents with Google Colab

Training Unity's built environment in server/headless mode with ML-Agents on Google Colab.

Important details about this repository:

  • Unity engine version used to build the environment = 2019.3.15f1 (Different versions will work but make sure that you don't get errors while generating the binaries)
  • ML-Agents branch = release_1
  • Environment name = 3dball (sample environment provided in ML-Agents repo) (Upload all the files )

Environment in this repo is build for Linux with server/headless mode enabled using the Unity engine.

Upload all the files which are generated for the environment binary. Check out this link to get an idea.


Try Google Colab Notebook

colab link


What’s In This Document

Introduction

After struggling, on a particular question (How to run ML-Agents on Google Colab?) for days, I thought it would be great to create a github repo to share my findings on this topic as there is little to no information on the internet. This repo gives information on the above question by testing an example environment on colab. (This example environment is taken from ML-Agents repo)

So when I started working on Reinforcement Learning with ML-Agents (an interface provided by Unity, which is used to communicate with the learning environment made using the Unity engine). I felt the need to have one more PC because training requires hours to get completed and also using my RAM to its full potential (until it is exhausted 🙁). So I decided to shift the training process to Google Colab. And here I am gonna tell how I did this.

Prerequisites Tools

  • Unity Game Engine : It is used to create, modify, and build the training environment in server/headless mode for the Linux system. Get the latest version of this software here.

Setup Instructions

Run this python notebook on Google Colab. This will clone the release_1 branch from ML-Agents github repo to colab. For the next step, it will clone this repo to get the example environment and provides the appropriate permissions to the Linux executable i.e. (.x86_64). And after this, it will enable the tensorboard and start the training process.

In the end, you can download the .nn file from the /content/models/${run_id} folder to embed that in your Unity environment for the inference process.

Extra Information

The above-mentioned notebook only gives the trained (.nn) file and no visual observation while training, which I personally think has no fun at all. So after hunting down this question on the internet (i.e How to live stream the training process to twitch from Google Colab?) now I can observe and find any errors or new behavior in agents. So if you are interested then keep reading, or else you are good to go with the above settings.

video stats

Check out the above youtube video as an example that I have trained on google colab and live-streamed the whole training visuals to twitch and then export to youtube (because twitch only saves the video for 14 days).

To explain the process on how to live stream from colab, I have written an article on Medium.

License

Licensed under the MIT License.

Acknowledgements

  1. Unity ML-Agents Toolkit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].