Keras TensorFlow Tips

Theano Keras install :

$ pip install numpy scipy
$ pip install scikit-learn
$ pip install pillow
$ pip install h5py

$ pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

$ git clone https://github.com/Theano/Theano
$ cd Theano
$ python setup.py install

$ pip install keras

댓글

  1. TF install for Ubuntu:

    $ pip install tensorflow # Python 2.7; CPU support (no GPU support)
    $ pip3 install tensorflow # Python 3.n; CPU support (no GPU support)
    $ pip install tensorflow-gpu # Python 2.7; GPU support
    $ pip3 install tensorflow-gpu

    답글삭제
    답글
    1. 설치에 앞서서 필요한 것들 :

      $ sudo apt-get install python-pip python-dev # for Python 2.7
      $ sudo apt-get install python3-pip python3-dev

      삭제
    2. GPU 쑤려면 제일먼저 설치할것:

      sudo apt-get install libcupti-dev

      삭제
  2. TF Uninstall Ubuntu:

    $ sudo pip uninstall tensorflow # for Python 2.7
    $ sudo pip3 uninstall tensorflow

    답글삭제
  3. TF 검증하기

    # Python
    import tensorflow as tf
    hello = tf.constant('Hello, TensorFlow!')
    sess = tf.Session()
    print(sess.run(hello))

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

파이썬으로 Homomorphic Filtering 하기

파이썬으로 2D FFT/iFFT 하기: numpy 버전