How to use from the
Use from the
ml-agents library
mlagents-load-from-hf --repo-id="foleymon/ppo-SnowballTarget" --local-dir="./downloads"

ppo Agent playing SnowballTarget

This is a trained model of a ppo agent playing SnowballTarget using the Unity ML-Agents Library.

Trained for the Hugging Face Deep Reinforcement Learning Course, Unit 5. Training: PPO, 200,000 steps on a Tesla T4 GPU. Final mean reward 25.27 +/- 2.40 (result 22.87).

Usage (with ML-Agents)

The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/

We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:

Resume the training

mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume

Watch your Agent play

You can watch your agent playing directly in your browser

  1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
  2. Step 1: Find your model_id: foleymon/ppo-SnowballTarget
  3. Step 2: Select your .nn /.onnx file
  4. Click on Watch the agent play
Downloads last month
85
Video Preview
loading

Evaluation results

  • mean_reward on ML-Agents-SnowballTarget
    self-reported
    25.27 +/- 2.40