RStudio for Keras 그리고 GPU
This post is to help students who have issues on Keras for R during installation. If you have GPU but stuck in errors, consider the following. Sample codes are created under Windows 10. For your information, I used a computer with a preinstalled NVidia driver and a CUDA toolkit. In addition, you need Anaconda prior to install Keras for R. 설치 과정에서 생기는 몇 가지 문제점에 대응하기 위한 팁을 올려둡니다. NVidia 계열의 GPU가 있다고 합시다. 윈도우 사용자를 기준으로 설명드립니다. Anaconda가 설치되어 있어야 합니다. 제 경우에는 NVidia 드라이버와 CUDA가 모두 사전에 설치되어 있습니다. 먼저 Rstudio에서 정상적으로 keras를 설치하면 됩니다. install.packages("keras") library(keras) install_keras(method='conda', tensorflow='gpu') 이제 Anaconda 콘솔을 실행합니다. 다음 명령을 입력합니다. activate r-tensorflow 이제 콘다 환경이 r-tensorflow로 바뀝니다. anaconda 채널에서 tensorflow-gpu를 가져와 설치합시다. conda install -c anaconda tensorflow-gpu numpy 버전을 바꿉니다. pip uninstall numpy pip install --upgrade numpy==1.16.1 설치가 완료되었습니다. RStudio로 돌아가서 샘플 코드를 실행해 봅시다. library(keras) use_condaenv("r-te...