게임에서 머신러닝이 이런식으로 활용될 수 있겠구나 식의 감 잡기에 좋은 내용이다.

유니티 머신러닝 툴킷은 2018년 오픈소스 프로젝트로 버전이 계속 0.x 이다가 2020년 5월에 정식 1.0이 되었다.

Unity ML-Agents Toolkit

https://github.com/Unity-Technologies/ml-agents

이미지 썸네일 삭제

Unity-Technologies/ml-agents

Unity Machine Learning Agents Toolkit. Contribute to Unity-Technologies/ml-agents development by creating an account on GitHub.

github.com

 

20개 정도 되는 머신러닝 샘플 들 소개.

Unity ML Samples (Example Learning Environments)

https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Learning-Environment-Examples.md

이미지 썸네일 삭제

Unity-Technologies/ml-agents

Unity Machine Learning Agents Toolkit. Contribute to Unity-Technologies/ml-agents development by creating an account on GitHub.

github.com

 

유니티 머신러닝 에이전트 라이브러리를 이용해서 테스트 샘플 로 주욱 따라 가며 배우기 좋은 내용.

펭귄 영역, 펭귄 에이전트, 펭귄 새끼, 물고기 어셋이 주어지고

펭귄 에이전트가 바다에 물고기를 가져다가 펭귄 새끼에게 많이 먹이는 게 목표.

펭귄 에이전트는 매 틱마다 목표 감지 센서를 돌리고

바다에서 물고기를 먹으면 Reward(1.0f) 올라가고 새끼에게 물고기를 내뱉어 먹이면

Reward(1.0f)로 올라가게 세팅 된다.

그럼 에이전트는 Reward가 가장 높게 행동 하는 방식.

https://www.immersivelimit.com/tutorials/unity-ml-agents-penguins

이미지 썸네일 삭제

Unity ML Agents | Penguins — Immersive Limit

In this Unity ML Agents tutorial you’ll learn how to use machine learning, specifically reinforcement learning in Unity to train penguins to find fish and feed their babies.

www.immersivelimit.com

 

펭귄 샘플 WorkThrough를 통해 배워가는 과정들을 개인 리파지토리.. ing.

초반 세팅으로 유니티 버전과 ML 라이브러리 버전을 맞추는 작업이 필요.

Unity version : 2019.4.6.f1 lts / Unity ML version : 0.8.2.

https://github.com/egoquat/MLTestUnity01

이미지 썸네일 삭제

egoquat/MLTestUnity01

Personal Unity ML Test Penguin samples. Unity version 2019.4.6f1 lts - egoquat/MLTestUnity01

github.com

 

'GameEngine > Unity' 카테고리의 다른 글

[link] Unity3D advanced references  (0) 2011.07.14

+ Recent posts