Skip to content

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

License

Notifications You must be signed in to change notification settings

FeelzV/Soccer-ML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Assurez vous d'être sur la racine du projet avant de lancer les commandes suivantes.

installation python directe:

pip3 install torch -f https://download.pytorch.org/whl/torch_stable.html
pip3 install -e ./ml-agents-envs
pip3 install -e ./ml-agents

installation conda:

conda create -n env python=3.10.12
conda activate env
pip3 install torch -f https://download.pytorch.org/whl/torch_stable.html
pip3 install -e ./ml-agents-envs
pip3 install -e ./ml-agents

Assurez-vous d'ouvrir le projet dans Unity avant de lancer des entraînements. Unity devrait pouvoir trouver la version nécessaire. Le chemin vers le projet unity : \Soccer-ML\Project

Lancer un entraînement

Voici le format pour lancer un entraînement:

mlagents-learn <<path_to_config_file>> --run-id=<<run_id>> --env=<<path_to_unity_env>> --time-scale=<<time_scale>> --num-envs=<<num_envs>>

Vous pouvez omettre les arguments --env, time-scale et --num-envs pour lancer un entraînement directement dans la fenêtre Unity.

Il y a aussi un fichier commands.txt avec des commandes pour vous inspirer.

Exemple de format pour lancer des entraînements parallèles:

mlagents-learn config/poca/SoccerTwosHigherLayers.yaml --run-id=pocaNewKickReward --num-envs=10 --env=./Project/Builds/new_kick/UnityEnvironment.exe --time-scale=10

About

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 54.6%
  • Python 40.4%
  • Jupyter Notebook 4.7%
  • ShaderLab 0.2%
  • Shell 0.1%
  • Batchfile 0.0%