일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 유니티 InputManager
- LookRotation
- eulerAngles
- 유니티 Collision
- 소스코드 줄번호
- 깊이 우선 탐색
- Quaternion.Euler
- 코드블럭 테마
- 유니티 ResourceManager
- 알고스팟
- 유니티
- 유니티 리소스매니저
- 너비 우선 탐색
- 오브젝트 풀링
- 이진트리
- InputManager
- 유니티 머신러닝
- 유니티 Vector3
- 유니티 오브젝트 풀링
- LFS
- Raycast
- c++
- unity
- c++ 문자열 자르기
- 유니티 시야 가림
- Mathf.Clamp
- ML-Agents
- LayerMask
- 유니티 Rotate
- git-lfs
- Today
- Total
무민은귀여워
유니티 머신러닝 ML-Agents 준비 본문
ML-Agents 다운로드
https://unity3d.com/kr/machine-learning
Machine Learning - Unity
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.
unity3d.com
위 링크에서 git 프로젝트를 클론
1
2
|
$ git clone "https://github.com/Unity-Technologies/ml-agents.git"
|
cs |
Anaconda 다운로드
Anaconda | The World's Most Popular Data Science Platform
Anaconda is the standard platform for Python data science, leading in open source innovation for machine learning. Develop, manage, collaborate, and govern at scale with our enterprise platform.
www.anaconda.com
필요한 버전은 3.6 이므로 일단 다운로드 후 다운그레이드를 해 주어야 한다.
위 링크에서 다운로드 후, 윈도우검색에서 Anaconda Prompt를 찾아 실행한다.
그리고
1
|
conda install python=3.6
|
cs |
를 입력하여 다운그레이드.
ml-agents 라는 이름으로 새로운 python 3.6 개발환경을 구성
Anaconda Prompt 에서
1
|
conda create -n ml-agents python=3.6
|
cs |
를 입력. 질문이 나오면 y를 입력하여 계속한다.
ml-agents 환경 로드
Anaconda Prompt 에서
1
|
conda activate ml-agents
|
cs |
를 입력
(참고) pip 가 최신버전인지 확인
ml-agents를 설치한 폴더로 이동하여 그 안의 ml-agents폴더로 이동.
다음 명령문 입력. (setup.py를 찾아 이것으로 유니티 ml-agents를 실행시키기 위한 모든 외부 의존 라이브러리를 찾아 설치해주는 것)
1
|
pip install -e .
|
cs |
잘 설치되었는지 확인하기 위하여 다음을 입력
1
|
mlagents-learn --help
|
cs |
잘 설치되었으면 다음과 같이 유니티 로고가 뜬다.
(참고)
No module named 'mlagents.envs.base_env'
라는 에러가 나올 경우 다음 명령문을 실행한다.
1
2
|
cd ml-agents/ml-agents-envs
pip install -e ./
|
cs |
그리고 다시 mlagents-learn --help로 확인한다.
Unity Hub에서 linux build support 모듈 설치
이미 설치된 유니티에서 점3개 부분을 클릭하면 모듈 추가 항목이 있다.
'IT > Unity' 카테고리의 다른 글
memo) Unity .gitattribute 설정 (0) | 2020.01.03 |
---|---|
유니티 기본 함수 정리 (0) | 2019.12.28 |
memo) mlagent-learn commands 및 hyperparameter (0) | 2019.12.12 |
memo) Brain model 을 .bytes 대신 .nn 을 사용하게 하기 (0) | 2019.12.12 |
memo) assets -> create -> ML-Agents 메뉴가 없음 (0) | 2019.12.12 |