Reinforcement Learning
ml-agents
TensorBoard
ONNX
SnowballTarget
deep-reinforcement-learning
ML-Agents-SnowballTarget
Eval Results (legacy)
Instructions to use foleymon/ppo-SnowballTarget with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use foleymon/ppo-SnowballTarget with ml-agents:
mlagents-load-from-hf --repo-id="foleymon/ppo-SnowballTarget" --local-dir="./downloads"
- Notebooks
- Google Colab
- Kaggle
Rewrite README cleanly with model-index
Browse files
README.md
CHANGED
|
@@ -47,54 +47,3 @@ You can watch your agent **playing directly in your browser**
|
|
| 47 |
2. Step 1: Find your model_id: foleymon/ppo-SnowballTarget
|
| 48 |
3. Step 2: Select your *.nn /*.onnx file
|
| 49 |
4. Click on Watch the agent play
|
| 50 |
-
%%writefile /content/README_snowball.md
|
| 51 |
-
---
|
| 52 |
-
library_name: ml-agents
|
| 53 |
-
tags:
|
| 54 |
-
- SnowballTarget
|
| 55 |
-
- deep-reinforcement-learning
|
| 56 |
-
- reinforcement-learning
|
| 57 |
-
- ML-Agents-SnowballTarget
|
| 58 |
-
model-index:
|
| 59 |
-
- name: ppo-SnowballTarget
|
| 60 |
-
results:
|
| 61 |
-
- task:
|
| 62 |
-
type: reinforcement-learning
|
| 63 |
-
name: Reinforcement Learning
|
| 64 |
-
dataset:
|
| 65 |
-
type: ML-Agents-SnowballTarget
|
| 66 |
-
name: ML-Agents-SnowballTarget
|
| 67 |
-
metrics:
|
| 68 |
-
- type: mean_reward
|
| 69 |
-
value: 25.27 +/- 2.40
|
| 70 |
-
name: mean_reward
|
| 71 |
-
verified: false
|
| 72 |
-
---
|
| 73 |
-
|
| 74 |
-
# **ppo** Agent playing **SnowballTarget**
|
| 75 |
-
This is a trained model of a **ppo** agent playing **SnowballTarget**
|
| 76 |
-
using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
|
| 77 |
-
|
| 78 |
-
Trained for the Hugging Face Deep Reinforcement Learning Course, Unit 5.
|
| 79 |
-
Training: PPO, 200,000 steps on a Tesla T4 GPU. Final mean reward 25.27 +/- 2.40 (result 22.87).
|
| 80 |
-
|
| 81 |
-
## Usage (with ML-Agents)
|
| 82 |
-
The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/
|
| 83 |
-
|
| 84 |
-
We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
|
| 85 |
-
- A *short tutorial* where you teach Huggy the Dog to fetch the stick and then play with him directly in your browser: https://huggingface.co/learn/deep-rl-course/unitbonus1/introduction
|
| 86 |
-
- A *longer tutorial* to understand how works ML-Agents: https://huggingface.co/learn/deep-rl-course/unit5/introduction
|
| 87 |
-
|
| 88 |
-
### Resume the training
|
| 89 |
-
```bash
|
| 90 |
-
mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
|
| 91 |
-
```
|
| 92 |
-
|
| 93 |
-
### Watch your Agent play
|
| 94 |
-
You can watch your agent **playing directly in your browser**
|
| 95 |
-
|
| 96 |
-
1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
|
| 97 |
-
2. Step 1: Find your model_id: foleymon/ppo-SnowballTarget
|
| 98 |
-
3. Step 2: Select your *.nn /*.onnx file
|
| 99 |
-
4. Click on Watch the agent play
|
| 100 |
-
|
|
|
|
| 47 |
2. Step 1: Find your model_id: foleymon/ppo-SnowballTarget
|
| 48 |
3. Step 2: Select your *.nn /*.onnx file
|
| 49 |
4. Click on Watch the agent play
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|