Skip to content

Latest commit

 

History

History
128 lines (92 loc) · 5.23 KB

File metadata and controls

128 lines (92 loc) · 5.23 KB

Installation Instructions - Python Deep Learning

In order to join the workshop, please go through the following software installation steps at least a day in advance.

If you run into any errors please send an email to Sean Perez (seanperez@berkeley.edu) for help and include:

  1. Which step you’re running,
  2. The error message(s) (screenshot preferred), and
  3. Your operating system + Python version + Jupyter Notebook version.

It is important to get everything working before the training because we will not likely have sufficient time to investigate fixes during the training itself.

Software Requirements

There are two options to get started on this workshop:

1. Use D-Lab's datahub (highly recommended).

  • If you have a berkeley.edu email account, you likely have access to dlab's datahub!

  • Click this link Datahub

  • That's it. You are ready!

  • When you want to refer to the workshop in the future, just find the folder Python-Deep-Learning within your datahub environment at https://dlab.datahub.berkeley.edu/

2. Google Colab (recommended).

  • This option is for attendees without a berkeley.edu email account.
  • Simply open each notebook using the following links:
    • 01-Vanilla-Neural-Networks.ipynb Open In Colab
    • 02-Vanilla-Convolutional-Neural-Network-Comparison.ipynb Open In Colab
    • 03-Convolutional-Neural-Networks.ipynb Open In Colab

3. Install keras locally

  • This will take approximately 30-60 minutes.

Windows

conda create --name pydeeplearning python=3.9 keras=2.6 matplotlib=3.4 numpy=1.21 jupyterlab ipykernel

Creates a conda environment called pydeeplearning with only the essential packages for our workshop. You will need to reply y to allow installation.

conda activate pydeeplearning

Activates the environment.

python -m ipykernel install --user --name pydeeplearning

Creates a kernel so that we can use this python environment in our Jupyter notebook.

conda install -c conda-forge tensorflow

Installs tensorflow, the backend for Keras. This may take a while!

  • Launch Jupyter Notebook, navigate to the repository you downloaded, and open up your notebook.
  • In the toolbar below the Jupyter logo go to Kernel > change Kernel > pydeeplearning
  • You are set to go!

Mac (intel chip - See below for M1 chip)

conda

Check to see if the conda command is recogenized and shows argument options.

If you get the error message: command not found: conda Try running the following:

/opt/anaconda3/bin/conda init zsh

Check to see if the conda command now shows argument options.

conda create -n pydeeplearning python=3.9

Creates a conda environment called pydeeplearning

conda activate pydeeplearning

Activates the environment.

python -m pip install tensorflow

Installs tensorflow.

python -m pip install matplotlib

Installs matplotlib for plotting.

python -m pip install jupyterlab

Installs jupyter notebook station.

python -m ipykernel install --user --name pydeeplearning

Creates a kernel so that we can use this python environment in our Jupyter notebook.

  • Launch Jupyter Notebook, navigate to the repository you downloaded, and open up your notebook.
  • In the toolbar below the Jupyter logo go to Kernel > change Kernel > pydeeplearning
  • You are set to go!

Mac (ARM chip)

Why do we need to need to do all this conda stuff?

Conda is a package manager, which we can use to deal with versioning conflicts and dependencies for tensorflow/keras! In order for keras/tensorflow to work smoothly, we create a new isolated conda environment and only install our essential packages.