This repository contains course materials for the University of Iowa course, ISE:6380 Deep Learning, by Prof. Stephen Baek. Free of use for non-commercial/commercial purposes.
The easiest way to get started with this course is by simply clicking the links below. These links will lead you to a Google Colab notebook containing a lab material corresponding to the lab session you selected.
TODO: More to come. Stay tuned!
Below are instructions for configuring a TensorFlow development environment on your local machine. This step is not necessary for your success in this course. However, if you are already familiar with Python and are willing to try out TensorFlow on your own computer, the following guide may give you an initial direction.
If you already have Python installed on your computer, you can skip this section. There are multiple ways to install Python, but the easiest way would be to use Anaconda (why do they name everything with a snake?). Visit the download page and select an installer that fits your operating system. There's an official instruction for Anaconda installation and it's pretty easy to follow. Just make sure to verify your installation at the end.
Before you move on to the next step, open terminal (Linux/Mac) or command prompt (Windows) and make sure you can run the following command without an error:
conda listThe first step to configure your own TensorFlow environment is to set up CUDA and CuDNN. CUDA is a GPU computing API created by NVIDIA, which TensorFlow builds upon. TensorFlow 2 requires CUDA version 10 or above. To install CUDA, you need to first make sure that you have a CUDA-enabled GPU card. If you don't have a CUDA GPU, then you can skip this section and move to the next section---in this case, however, you will be limited to run TensorFlow on CPU (no GPU acceleration). If you do have a CUDA GPU, first go ahead and install/update your graphics card driver. For the actual installation of CUDA and CuDNN, see the instructions below per different operating systems.
First, download CUDA toolkit. Make sure that you download the right version compatible with TensorFlow. For TensorFlow 2.4.1 (newest version as of Jan. 27, 2021), you need to install CUDA 11.0. Do not just download the newest version. Once you are done with downloading CUDA, go ahead and install it by running the *.exe file you just downloaded. Mostly you can click "next" in the installation wizard all the way through the end.
After CUDA is installed, download CuDNN, a CUDA add-on for deep neural networks (DNN). Again, make sure you download CuDNN version that's compatible with your TensorFlow version. Do not just download the newest version. For downloading CuDNN, you will need to sign up as an NVIDIA developer. After downloading it, install CuDNN by copying and pasting the contents of the downloaded zip file into the corresponding folder under C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\<cuda-version>.
TODO: Place an instruction here.
TODO: Place an instruction here.
Once you have CUDA and CuDNN set up, installing TensorFlow itself is pretty easy. First, open a terminal/command prompt and create a virtual environment using conda:
conda create -n dlcourse python=3.8 ipykernel nb_conda_kernelsThis is a command to create a virtual environment with the name dlcourse and initialize it with Python version 3.8, alongside ipykernel and nb_conda_kernels packages. The virtual environment can be activated by typing the following command:
conda activate dlcourseOnce you have the virtual environment activated, type the command below to install TensorFlow:
pip install tensorflowTo verify TensorFlow installation, see if you can run the following command without an error:
python -c "import tensorflow; tensorflow.config.list_physical_devices('GPU')"If you see a bunch of messages saying "Successfully opened dynamic library XXXXX.dll", as well as the name of your GPU card (in case you have a CUDA-enabled GPU card), you are now ready to play with TensorFlow.
Open a terminal/command prompt and get in to the folder you would like to have the course materials. If you are new to the command line interface, take time to study this (for Windows) or this (for Linux/Mac). Once you are in the folder, go ahead and type the following command to make a copy of this repository.
git clone https://github.com/stephenbaek/dlcourse.gitIf you are a Windows user, you will need to install git before to run the command above.
After the course materials are cloned, get into the course directory by typing the following command:
cd dlcourseThen, run the following command to install all the required dependencies. Make sure that you activate the conda virtual environment (see above), before to run this command.
pip install -r requirements.txtCongratulations! You are now ready to run the course materials on your local machine. To view the materials, simply run the following command:
jupyter notebookFor the University of Iowa students, ICON should be the primary channel of communication. You are also welcome to visit my office hours. For external students, feel free to ask questions using the issues tab. I'll do my best to be responsive.