- Install Tensorflow and Keras
- Run Anaconda Prompt
- Install Tensorflow # pip install tensorflow-gpu
- Install Keras # pip install keras
- (Optional) Change Keras' backend from Theano to TensorFlow
- This step is optional if Keras uses Theano as its backend.
- Start python and import keras # python # import keras
- If Theano is set as the backend, the terminal says "Using Theano backend"
- Find the setting file location
- Find the location of Keras' setting file. Executing the following 2 lines, the terminal shows the location where the Keras' setting file is stored. # import os # print(os.path.expanduser('~')) NAME_OF_DIRECTORY (in my case it's C:\User\USERNAME)
- Change the backend
- Open NAME_OF_DIRECTORY.keras\keras.json
- Change "th" to "tf"
- Change "theano" to "tensorflow"
- run any Keras example