
Explore machine learning and artificial intelligence in Unity 3D, training neural networks with reinforcement and imitation learning through hands-on projects like 3D roller ball, Flappy Bird, and a self-driving car.
Set up the ml-agents toolkit by downloading the project from github, run a basic scene to train agents with reinforcement learning and rewards, and export the trained models.
Understand what a neural network is, from inputs and outputs to neurons, layers, weights, bias, and activation function. See how Unity trains these networks using reinforcement and imitation learning.
Explore the core ML-Agents components in Unity: learning environment, multiple agents, brains (player, heuristic, learning), and the academy with external communication to train neural networks.
Explore a simple 3d rollerball reinforcement learning project in Unity, where an agent ball seeks the shortest path to a target cube, then resets and re-spawns the cube for learning.
Create a Unity rollerball agent in a new scene with a floor, target, and rigidbody, then build academy and brains to collect observations, apply actions, and train via rewards.
Learn to train a neural network for a Unity ML-Agents project, adjust trainer settings, monitor rewards with TensorFlow dashboard, and export the trained model into the scene assets.
Explore a reinforcement learning project that trains a Flappy Bird clone to achieve an unlimited score in Unity3D. Train agents and test a pretty much perfect AI with the toolkit.
Explore a complete Flappy Bird clone in Unity3D, featuring a bird with a rigid body, a pipes spawner with colliders, and a scoring system that increments on passing pipes.
Learn how to set up ml agents components in Unity by building a Flappy Bird academy with agents and brains, configuring observations and actions, and preparing training with accelerated time.
Train the agent by creating multiple social environments to speed learning and run the training to maximize reward. Set the train config to 500000 steps to stop after that limit.
Demonstrate driving behavior through imitation learning to train a self-driving car, using human-provided inputs instead of trial-and-error. Explore reinforcement learning concepts and how human guidance steers the agent.
Import and run a Unity3D self-driving car scene, control the car with keyboard input, use colliders and standard assets, and train the car to complete a full lap.
Set up ml agents components in Unity to train a car agent with reinforcement learning, normalizing observations and actions via academy and brains to train neural network.
Train the car by recording demonstrations and creating a training demo file in the demonstrations folder. Configure the offline brain and run imitation learning to produce a trained model.
This crash-course is about machine Learning & Artificial Intelligence with Unity3D.
Why using Unity3D for Artificial Intelligence?
Unity3D is the perfect environment in order to train your own AIs. Let’s take the example of a Self-driving Car. What you need is complex environments where there are a lots of realistic physical interactions. You could provide these datas from interactions with the real world, but this is extreme inefficient and time consuming.
Since games become more and more realistic you can provide these informations from virtual environments. And for that Unity is perfectly positioned.
So, no matter if you are a game developer who wants to create AIs for games or if you are a hobby researcher who just want to play with machine Learning … The ML-Agents toolkit is the perfect start in order to create your own AIs.
What do we learn in this crash-course?
This course is structured into 4 major sections:
Introduction
This section covers everything in order to get a quick start with the ML-Agents Toolkit. You will learn:
-Set up of the ML-Agents toolkit with Tensorflow
-What is a neural-network?
-The Key Components of the Ml-Agents toolkit
3D Roller Ball AI
This lecture will give you a first impression of the Ml-Agents toolkit in practice. You will learn how to set up the environment and all the necessary components in order to train the AI.
A.I. learns to play Flappy Bird
Instead wasting your time with playing this game, we will code our own A.I. that learns to play Flappy Bird by using Reinforcement Learning.
After training the AI is able to achieve an unlimited score in this game.
Self-driving Car
The Self-driving Car is the probably the most famous example for Artificial Intelligence, so we will cover this as well. To train the Car we will use a technique called Imitation Learning.
Imitation Learning is special, because this method uses the inputs from a human Player in order to train the neural network.