{"id":23335052,"url":"https://github.com/stefanocecere/gamelab_ai_unity","last_synced_at":"2025-04-09T19:41:10.721Z","repository":{"id":149094697,"uuid":"261733468","full_name":"StefanoCecere/GameLab_AI_Unity","owner":"StefanoCecere","description":"Game AI lab for Unity","archived":false,"fork":false,"pushed_at":"2023-11-24T19:00:44.000Z","size":159299,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T15:54:36.546Z","etag":null,"topics":["ai","examples","gamelab2042","machinelearning","ml-agents","unity"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefanoCecere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-06T11:06:57.000Z","updated_at":"2025-02-23T09:05:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"670169c7-898a-47d6-9db0-3a1f3f5557be","html_url":"https://github.com/StefanoCecere/GameLab_AI_Unity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AI_Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AI_Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AI_Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AI_Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanoCecere","download_url":"https://codeload.github.com/StefanoCecere/GameLab_AI_Unity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248100350,"owners_count":21047780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","examples","gamelab2042","machinelearning","ml-agents","unity"],"created_at":"2024-12-21T01:15:59.974Z","updated_at":"2025-04-09T19:41:10.689Z","avatar_url":"https://github.com/StefanoCecere.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GameAI Lab\na collection of classic and ML AI examples  \nUnity 2021.3 project  \n\n## ML Agents\nusiamo la release 20\n\n- [Docs Ufficiali](https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/Readme.md)\n- [Spiegazione di tutti gli esempi](https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/Learning-Environment-Examples.md)\n- [Dettagli dei parametri config](https://unity-technologies.github.io/ml-agents/Training-Configuration-File/)\n\n## Commands\nEntrare con la Shell nella directory del progetto.\n\n## Activate / Deactivate Python environment\n\n```shell\nsource mlagents-env/bin/activate\n\n## oppure se isntallato globalmente:\nsource ~/python-envs/mlagents-env/bin/activate\n\ndeactivate\n```\n\n## Run Training\n\n```shell\nmlagents-learn ml-config/my_config.yaml --run-id=my_id  \nmlagents-learn ml-config/rollerball_config.yaml --run-id=RollerBall\nmlagents-learn ml-config/ppo/3DBall.yaml --run-id=3DBall_Test\n```\n\n## Tensorboard\n\n```shell\n## meglio aprire una nuova shell parallela\ntensorboard --logdir results\n\n## oppure mandare in Background process\nctrl-Z  \nbg / fg\n```\n\n## Installare ml-agents su Windows\nprocedure per installare Python (min 3.8.13, consigliata la 3.9.x) + ml-agents su Windows 64 bit  \n\n[Docs Installazione](https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/Installation.md)\n\nUseremo un [Environment](https://github.com/Unity-Technologies/ml-agents/blob/release_17_docs/docs/Using-Virtual-Environment.md)\n\n## Installare Python 3.9\nscaricare l'ultima versione disponibile della 3.9 (ad oggi Python 3.9.13 - May 17, 2022) di **Windows installer (64-bit)** da \u003chttps://www.python.org/downloads/windows/\u003e, durante l'installazione attivare il checkbox: ADD TO PATH\n\n- eseguire \"Prompt di comandi\" as Administrator\n- verificare che esista Python eseguendo il comando: `python`\n- verificare che esista il comando `pip` esegundo il comando: `pip -V`, se non funziona provare con `pip3 -V`\n\n## Installare ml-agents\nIntalleremo tutto ciò che serve per il training in una directory del progetto, così che eliminato il progetto, non lasciamo centinaia di MB di files in giro.\n\nNB: se `pip` non funziona, usare `pip3`\n\n```shell\n## entriamo nella directory del progetto Unity\ncd C:/path/GameLab_AI_Unity/\n\n## creaiamo environment Python\npython -m venv mlagents-env\nmlagents-env\\Scripts\\activate\n\n## installiamo\npip install --upgrade pip\npip install --upgrade setuptools\npip install torch~=1.7.1 -f https://download.pytorch.org/whl/torch_stable.html\npip install mlagents==0.30.0\n\n## testare installazione con\nmlagents-learn --help\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanocecere%2Fgamelab_ai_unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanocecere%2Fgamelab_ai_unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanocecere%2Fgamelab_ai_unity/lists"}