ML-Agents를 이용한 머신러닝 준비하기
ML-Agent Scripting API
https://docs.unity3d.com/Packages/com.unity.ml-agents@1.0/api/Unity.MLAgents.Agent.html
ML-Agents 다운로드
ML-Agents GitHub
https://github.com/Unity-Technologies/ml-agents
ML-Agents Installation docs
https://github.com/Unity-Technologies/ml-agents/blob/release_18_docs/docs/Installation.md
유니티 패키지 매니저에서 아래 경로에 있는 package.json파일로 패키지 추가
ml-agents-release_18\ml-agents-release_18\com.unity.ml-agents\package.json
파이썬 설치 (3.6.2 version)
https://www.python.org/downloads/
설치시 패스 설정 체크
ML-Agents 파이썬 패키지 설치하기
cmd창을 관리자 권한으로 실행시켜야됨
관리자 권한으로 실행하지 않으면 오류가 발생(https://chiheuk.tistory.com/367)
pip업그레이드
pip install --upgrade pip
Fatal error in launcher: Unable to create process using '"' 에러가 날 경우
python -m pip install --upgrade pip
| 찾아보니 경로 때문에 발생하는 오류라는데 간단하게 해결 가능하다. pip 명령어 앞에 python -m 을 붙여준다. ex) python -m pip install XXX https://gldmg.tistory.com/12 |
(Windows) PyTorch 설치
pip3 install torch~=1.7.1 -f https://download.pytorch.org/whl/torch_stable.html
mlagents 설치
python -m pip install mlagents==0.27.0
설치확인
mlagents-learn --help 입력
'Unity > 게임 인공지능 프로그래밍(ML-Agent)' 카테고리의 다른 글
| [ML-Agents] DinoRun (이미테이션 러닝) (1) | 2021.11.16 |
|---|---|
| [ML-Agents] 펭귄 강화학습 (Ray를 사용한 강화학습)(진행중) (0) | 2021.11.10 |
| [ML-Agents] RollerBall (TensorBoard 사용법) (0) | 2021.11.10 |
| [ML-Agents] 3DBall (0) | 2021.11.08 |
| No module named 'pip' 에러와 함께 pip가 갑자기 안되는 경우 (0) | 2021.11.08 |