• Tistory
    • 태그
    • 위치로그
    • 방명록
    • 관리자
    • 글쓰기
Carousel 01
Carousel 02
Previous Next

[Keras] windows 환경에서 Theano 와 Keras 설치하기

전공관련/Deep Learning 2016. 11. 24. 20:39




caffe에 불편함을 느끼고 있던 중

keras가 deep learning library 중 간단하며 직관적이라 하여 설치 후 간단하게 테스트 해보기.


현재는 Theano backend로 동작하게 설치했지만

tensorflow windows 버전이 나오면 갈아타던가.. 생각해 봐야지..


설치 법 정리.


==================================================================


1. visual studio 설치. 

visual studio 와 설치되는 파일 중 하나를 사용한다고 한다.

라이센스가 없으면 커뮤니티 버전도 상관 없는듯.

https://www.visualstudio.com/downloads/download-visual-studio-vs.aspx


2. CUDA 설치

GPU 연산을 위해 CUDA 설치.

https://developer.nvidia.com/cuda-downloads


3. python 설치

python 설치. 2.7 버전 사용중.

anaconda / miniconda 설치하면 무난..


4. Theano 설치

명령 프롬프트에서 conda 를 이용하여 설치

>> conda install pip six nose numpy scipy mingw libpython


github에서 theano를 다운받은후 압축해제. 해당 경로로 이동 후

>> python setup.py develop


설치 됐는지 리스트 확인

>> conda list


환경변수 PATH에 경로 추가

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin 


새로운 시스템변수 만들기

시스템변수 새로만들기

(이름 : THEANO_FLAGS  / 값 : floatX=float32,device=gpu,nvcc.fastmath=True,lib.cnmem=0.81 )


5. keras 설치

github에서 keras를 다운받은 후 압축해제, 해당 경로로 이동 후

>> python setup.py develop


설치 잘 됐는지 예제 확인

>> cd examples

>> ipython mnist_mlp.py


6. cuDNN 설치 (Option)

다운로드 후 압축해제

https://developer.nvidia.com/cudnn


CUDA 폴더로 복사

C:\cudnn-7.5-windows10-x64-v5.0-ga\cuda\bin 

=> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin


C:\cudnn-7.5-windows10-x64-v5.0-ga\cuda\include

=> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include


C:\cudnn-7.5-windows10-x64-v5.0-ga\cuda\lib\x64

=> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\lib\x64


7. 끝.


설치하며 약간의 삽질 중 도움을 받은 블로그 ( http://bryan7.tistory.com/709 )

저작자표시 비영리 (새창열림)

'전공관련 > Deep Learning' 카테고리의 다른 글

[Caffe] Faster R-CNN을 이용하기. 환경설정. 셋팅 (object detection)  (2) 2017.03.17
[Caffe] Digits을 위한 NCCL 설정 방법  (0) 2017.02.02
[TensorFlow] Tutorial 5. Large-scale Linear Models with TensorFlow  (0) 2016.11.09
[Caffe] windows 환경에서 caffe를 설치하자 (161102 기준)  (11) 2016.11.03
[TensorFlow] Tutorial 4. tf.contrib.learn Quickstart  (0) 2016.11.02
블로그 이미지

매직블럭

작은 지식들 그리고 기억 한조각

,

카테고리

  • 살다보니.. (449)
    • 주절거림 (3)
    • 취미생활 (36)
      • 지식과 지혜 (3)
      • 풍경이 되어 (4)
      • Memories (17)
      • 엥겔지수를 높여라 (2)
    • mathematics (6)
      • Matrix Computation (2)
      • RandomProcesses (3)
    • English.. (8)
    • Programming (147)
      • C, C++, MFC (51)
      • C# (1)
      • OpenCV (17)
      • Python (58)
      • Git, Docker (3)
      • Matlab (4)
      • Windows (3)
      • Kinect V2 (2)
      • 기타 etc. (8)
    • 전공관련 (80)
      • Algorithm (6)
      • Deep Learning (54)
      • 실습 프로그램 (4)
      • 주워들은 용어정리 (8)
      • 기타 etc. (8)
    • Computer (118)
      • Utility (21)
      • Windows (31)
      • Mac (4)
      • Ubuntu, Linux (58)
      • NAS (2)
      • Embedded, Mobile (2)
    • IT, Device (41)
      • 제품 사용기, 개봉기 (14)
      • 스마트 체험단 신청 (27)
    • Wish List (3)
    • TISTORY TIP (5)
    • 미분류. 수정중 (1)

태그목록

  • 크롬
  • Computer Tip
  • 오봉자싸롱
  • 매트랩 함수
  • Convolutional Neural Networks
  • matlab function
  • 포르투갈
  • random variable
  • 후쿠오카
  • 딥러닝
  • review
  • ColorMeRad
  • 매트랩
  • DeepLearning
  • portugal
  • ReadString
  • 일본
  • Deep Learning
  • LIBSVM
  • 스마트체험단
  • utility
  • CStdioFile
  • 에누리닷컴
  • 칼로리 대폭발
  • 갤럭시노트3
  • 큐슈
  • function
  • matlab
  • DSLR
  • SVM

달력

«   2025/06   »
일 월 화 수 목 금 토
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
29 30
06-25 06:57

LATEST FROM OUR BLOG

RSS 구독하기

BLOG VISITORS

  • Total :
  • Today :
  • Yesterday :

Copyright © 2015 Socialdev. All Rights Reserved.

티스토리툴바