@@ -148,9 +148,60 @@ I'm currently running this tutorial with **Python 3** on **Anaconda**
148148
149149 Python 3.5.2
150150
151+ ---
152+
153+ ## Setting the Environment
154+
155+ In this repository, files to re-create virtual env with ` conda ` are provided for Linux and OSX systems,
156+ namely ` deep-learning.yml ` and ` deep-learning-osx.yml ` , respectively.
157+
158+ To re-create the virtual environments (on Linux, for example):
159+
160+ ``` shell
161+ conda env create -f deep-learning.yml
162+ ```
163+
164+ For OSX, just change the filename, accordingly.
165+
166+ ### Installing Tensorflow
167+
168+ To date ` tensorflow ` comes in two different packages, namely ` tensorflow ` and ` tensorflow-gpu ` , whether you want to install
169+ the framework with CPU-only or GPU support, respectively.
170+
171+ For this reason, ` tensorflow ` has ** not** been included in the conda envs and has to be installed separately.
172+
173+ #### Tensorflow for CPU only:
174+
175+ ``` shell
176+ pip install tensorflow
177+ ```
178+
179+ #### Tensorflow with GPU support:
180+
181+ ``` shell
182+ pip install tensorflow-gpu
183+ ```
184+
185+ ** Note** : NVIDIA Drivers and CuDNN ** must** be installed and configured before hand. Please refer to the official
186+ [ Tensorflow documentation] ( https://www.tensorflow.org/install/ ) for further details.
187+
188+
189+ #### Important Note:
190+
191+ All the code provided+ in this tutorial can run even if ` tensorflow ` is ** not** installed, and so using ` theano ` as the (default) backend!
192+
193+ ___ ** This** is exactly the power of Keras!___
194+
195+ Therefore, installing ` tensorflow ` is ** not** stricly required!
196+
197+ +: Apart from the ** 1.2 Introduction to Tensorflow** tutorial, of course.
151198
152199### Configure Keras with tensorflow
153200
201+ By default, Keras is configured with ` theano ` as backend.
202+
203+ If you want to use ` tensorflow ` instead, these are the simple steps to follow:
204+
1542051 ) Create the ` keras.json ` (if it does not exist):
155206
156207``` shell
@@ -168,6 +219,7 @@ touch $HOME/.keras/keras.json
168219}
169220```
170221
222+ 3 ) Verify it is properly configured:
171223
172224``` python
173225! cat ~ / .keras/ keras.json
0 commit comments