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
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
설치에 앞서서 필요한 것들 :
삭제$ sudo apt-get install python-pip python-dev # for Python 2.7
$ sudo apt-get install python3-pip python3-dev
GPU 쑤려면 제일먼저 설치할것:
삭제sudo apt-get install libcupti-dev
TF Uninstall Ubuntu:
답글삭제$ sudo pip uninstall tensorflow # for Python 2.7
$ sudo pip3 uninstall tensorflow
TF 검증하기
답글삭제# Python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))