Automating the setup process

Installation of python packages and DL libraries can be a tedious process which requires lots of time and repetitive effort. So to ease the job we will create a bash script which can be used to install everything using a single command. 

List of components which will get installed and configured:

  • Java 8
  • Bazel for building
  • Python and associated deps
  • TensorFlow
  • Keras
  • Git
  • Unzip
  • Dependencies for all of the preceding mentioned points. See script for exact details.

You can simply download the automation script to your server or local, Execute it and done. Steps to follow:

  1. Save the script to your home directory, by cloning the code from the repository:
git clone https://github.com/PacktPublishing/Python-Deep-Learning-Projects
  1.  Once you have the copy of the complete repo, move to the Chapter 1 folder which will have a script file named setupDeepLearning.sh. This is the script which we will execute to start the setup process but before execution, we will have to make it executable using chmod command:
cd Python-Deep-Learning-Projects/Chapter 1/

chmod +x setupDeepLearning.sh
    1. Once done we are ready to execute it as:
    ./setupDeepLearning.sh

    Follow any instructions that appear (basically say yes to everything and accept Java license). This will take about 10-15 mins to install everything. Once it has finished you will see the list of Python packages get installed (as shown in Figure 1):

    Figure 1: Listed packages with Tensorflow and other python deps

    There are a couple of other option too like getting Docker images of TensorFlow and other DL packages which can setup fully functional Deep Learning machines for large-scale and production ready environments. You can know more about dockers here (https://www.docker.com/what-docker). Also for a quick start follow the instructions on this repository All-in-one Docker image for Deep Learning (https://github.com/floydhub/dl-docker).

    ..................Content has been hidden....................

    You can't read the all page of ebook, please click here login for view all page.
    Reset
    18.189.188.238