관심있는 주제 93

Alpha Zero 논문 리뷰

Introduction 본 논문에서는 2016년 AlphaGo, 2017년 AlphaGo Zero를 통해 바둑(Go)에 대한 성공을 경험한 후, AlphaGo Zero의 more generic version 인 AlphaZero를 소개하고 있음. Game 의 복잡도를 보았을 때, Go가 가장 복잡하고, shogi (일본식 장기) 와 chess 순으로 복잡도를 가지고 있는데, AlphaZero는 동일한 알고리즘을 이용하여 Go, Chess, Shogi 모두에 대응하는 generic algorithm을 제안함. Background Alpha Go Alpha Go는 실제 전문가의 기보 데이터를 기반으로 모델을 학습하고 해당 모델을 활용하여 MCTS(Monte Carlo Tree Search) 를 진행하는 방법..

서버 간 파일 전송하는 방법 (wget)

부제 : A서버에서 B 서버로 파일 전송 1. A 서버 : HTTPServer 열어서 파일 다운받을 수있도록 설정 http://A서버주소:8000 으로 접속해도 파일 다운로드 가능하기 때문에 http server 잘 열렸는지 해당 주소로 접속해서 확인 가능함 cd /source_dir # port는 꼭 8000 아니어도 됨 python -m SimpleHTTPServer 8000 >>> Serving HTTP on 0.0.0.0 port 8000 2. B 서버 : wget 으로 파일 땡겨오기 wget 의 -O는 받는 파일 이름 변경 옵션 wget http://A주소:8000/target_file -O file_name

서로 다른 서버 mount 하는 법

부제 : 서버 A를 서버 B에 mount 하는 방법 1. A 서버 : mount 하고 싶은 폴더 설정 /etc/exports에 내용 추가 vi /etc/exports >>> # /etc/exports: the access control list for filesystems which may be exported #to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)## Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_su..

ImportError: cannot import name 'FlattenDictWrapper' from 'gym.wrappers'

문제 상황 from gym.wrappers import FlattenDictWrapper gym.wrappers에서 FlattenDictwrapper 를 불러오려고 했으나, import가 안 되는 상태 [에러 메세지] ImportError: cannot import name 'FlattenDictWrapper' from 'gym.wrappers' 해결 방법 gym version을 0.14 이하로 내려줌 (원래 gym version : 0.26.0) 참고 링크 https://github.com/openai/baselines/issues/1129

ERROR: Could not find a version that satisfies the requirement tensorflow

문제 상황 pip install tensorflow==1.15.0 위 커맨드로 간단하게 tensorflow 1.15.5를 설치하려고 했는데, 맞는 버전이 없다며 설치가 안 됐던 상황 [에러 메세지] Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com /usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/connectionpool.py:999: InsecureRequestWarning: Unverified HTTPS request is being made to host 'pypi.ngc.nvidia.com'. Adding certificate verificat..

torch tensor concat 하는 방법

Background 강화학습을 하다 보면 buffer 를 구성해야 할 일이 많다. 강화학습을 진행하면서 나온 trajectory를 buffer에 저장했다가 update 시에 꺼내서 사용해야 하기 때문에 buffer를 구성해서 사용하는데, 이때 늘 episode 길이가 동일해서 buffer내 rewards, actions, obs 등의 size 가 항상 동일하거나 rollout 으로 늘 동일한 step 수 만큼 저장해서 동일한 size 의 항목들만 다룬다면 처음부터 고정된 size 의 buffer를 사용하면 되지만 그렇지 않은 경우엔 비어있는 buf를 만들어서 append (concat 등) 을 해야 하는 경우가 있다. 아래는 buffer에서 사이즈를 고정으로 사용할 때 예시이다. 아래와 같이 torch...

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.

Cmake 중 발생한 에러 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. 해결방법 1. g++ 설치 나는 이미 설치가 되어 있어서 설치는 안 했는데 https://gracefulprograming.tistory.com/93 [Linux] gcc, g++ 설치하기 (CentOS) 개요 안녕하세요 피터입니다. Linux에 개발환경을 구축하기 위해서는 컴파일러(Compiler) 설치가 필수입니다. C언어 컴파일러는 gcc, C++언어 컴파일러는 g++ 인데 OS 설치 시 최소설치(Minimum)으로 설치 gracefulprograming.tistory.com 이런 블로그 보면서 설치하면 쉽게 될 거 같..

Could NOT find OpenMP_CXX

Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) brew가 설치되어 있다면 간단하게 해결 가능 brew install libopm ubuntu에서는 아래 명령어들을 이용하여 install 가능하다고 하는데 테스트는 못 해봄 sudo apt install libomp-dev apt show libomp-dev [Reference] https://github.com/mapillary/OpenSfM/issues/681 Build error: OpenMP_libomp_LIBRARY on MacOs · Issue #681 · mapillary/OpenSfM Not sure, if this dependency is optional..

lemon package 설치 에러

brew 로 lemon package 설치를 했음에도 불구하고 계속 Could not find a package configuration file provided by "LEMON"이라고 뜨는 상태 brew로 설치할 때는 아래 명령어로 설치했고 3.36.0 버전이 설치가 되었다. brew install lemon https://formulae.brew.sh/formula/lemon lemon Homebrew’s package index formulae.brew.sh 내가 설치해야 하는 package dependency에는 1.3.1 버전을 설치하라고 해서 다른 방법을 찾아봤다. 1. 맞는 version의 src 다운로드 http://lemon.cs.elte.hu/trac/lemon/wiki/Downloa..

spdlog install

spdlog를 설치하지 않은 상태에서 cmake 진행 시 find_package(spdlog) 하면 발생하는 에러 특정 version이 필요한 게 아니라면 brew를 이용하여 최신버전 설치 brew install spdlog 리눅스는 1.8.1 이상 버전 다운로드 위해 src code에서 직접 빌드 git clone https://github.com/gabime/spdlog.git cd spdlog && mkdir build && cd build cmake .. && make -j make install [Reference] https://spdlog.docsforge.com/master/#just-copy-the-headers Getting Started - Spdlog - DocsForge HomeG..