Downloads · 30 days
9
2% of all-time downloads
ThomasSimonini/ML-Agents-SnowballFight-1vs1
ML-Agents-SnowballFight-1vs1 is a reinforcement learning model from ThomasSimonini. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for ml-agents. The card lists the license as apache-2.0.
A multi-agent environment using Unity ML-Agents Toolkit where two agents compete in a 1vs1 snowball fight game.
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
500
Public
Repo size
—
Likes
10
Public
Click a slice to open those files.
.onnx2.6 MB · 47%
From the Hugging Face model README
A multi-agent environment using Unity ML-Agents Toolkit where two agents compete in a 1vs1 snowball fight game.
👉 You can play it online at this link.
⚠️ You need to have some skills in ML-Agents if you want to use it if it's not the case check the documentation
Ray-casts:
Vector Observations:
git clone https://huggingface.co/ThomasSimonini/ML-Agents-SnowballFight-1vs1.\ML-Agents-SnowballFight-1vs1\packages and copy manifest.json and package.lock.jsonYour Unity Project\Packages => this will install the required packages.Assets\1vs1\Scenes\1vs1_v2_Training. place the \ML-Agents-SnowballFight-1vs1\saved_model\SnowballFight1vs1-4999988.onnx into BlueAgent and PurpleAgent Model.Assets\1vs1\Scenes\1vs1_v2_Training.behaviors: SnowballFight1vs1: trainer_type: ppo hyperparameters: batch_size: 2048 buffer_size: 20480 learning_rate: 0.0003 beta: 0.005 epsilon: 0.2 lambd: 0.95 num_epoch: 3 learning_rate_schedule: constant network_settings: normalize: false hidden_units: 512 num_layers: 2 vis_encode_type: simple reward_signals: extrinsic: gamma: 0.99 strength: 1.0 keep_checkpoints: 40 checkpoint_interval: 200000 max_steps: 50000000 time_horizon: 1000 summary_freq: 50000 self_play: save_steps: 50000 team_change: 200000 swap_steps: 2000 window: 10 play_against_latest_model_ratio: 0.5 initial_elo: 1200.0