• Stars
    star
    4,963
  • Rank 8,431 (Top 0.2 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101

Deep Learning (PyTorch) - ND101 v7

This repository contains material related to Udacity's Deep Learning v7 Nanodegree program. It consists of a bunch of tutorial notebooks for various deep learning topics. In most cases, the notebooks lead you through implementing models such as convolutional networks, recurrent networks, and GANs. There are other topics covered such as weight initialization and batch normalization.

There are also notebooks used as projects for the Nanodegree program. In the program itself, the projects are reviewed by real people (Udacity reviewers), but the starting code is available here, as well.

Table Of Contents

Tutorials

Introduction to Neural Networks

Convolutional Neural Networks

  • Convolutional Neural Networks: Visualize the output of layers that make up a CNN. Learn how to define and train a CNN for classifying MNIST data, a handwritten digit database that is notorious in the fields of machine and deep learning. Also, define and train a CNN for classifying images in the CIFAR10 dataset.
  • Transfer Learning. In practice, most people don't train their own networks on huge datasets; they use pre-trained networks such as VGGnet. Here you'll use VGGnet to help classify images of flowers without training an end-to-end network from scratch.
  • Weight Initialization: Explore how initializing network weights affects performance.
  • Autoencoders: Build models for image compression and de-noising, using feedforward and convolutional networks in PyTorch.
  • Style Transfer: Extract style and content features from images, using a pre-trained network. Implement style transfer according to the paper, Image Style Transfer Using Convolutional Neural Networks by Gatys et. al. Define appropriate losses for iteratively creating a target, style-transferred image of your own design!

Recurrent Neural Networks

  • Intro to Recurrent Networks (Time series & Character-level RNN): Recurrent neural networks are able to use information about the sequence of data, such as the sequence of characters in text; learn how to implement these in PyTorch for a variety of tasks.
  • Embeddings (Word2Vec): Implement the Word2Vec model to find semantic representations of words for use in natural language processing.
  • Sentiment Analysis RNN: Implement a recurrent neural network that can predict if the text of a moview review is positive or negative.
  • Attention: Implement attention and apply it to annotation vectors.

Generative Adversarial Networks

  • Generative Adversarial Network on MNIST: Train a simple generative adversarial network on the MNIST dataset.
  • Batch Normalization: Learn how to improve training rates and network stability with batch normalizations.
  • Deep Convolutional GAN (DCGAN): Implement a DCGAN to generate new images based on the Street View House Numbers (SVHN) dataset.
  • CycleGAN: Implement a CycleGAN that is designed to learn from unpaired and unlabeled data; use trained generators to transform images from summer to winter and vice versa.

Deploying a Model (with AWS SageMaker)

Projects

  • Predicting Bike-Sharing Patterns: Implement a neural network in NumPy to predict bike rentals.
  • Dog Breed Classifier: Build a convolutional neural network with PyTorch to classify any image (even an image of a face) as a specific dog breed.
  • TV Script Generation: Train a recurrent neural network to generate scripts in the style of dialogue from Seinfeld.
  • Face Generation: Use a DCGAN on the CelebA dataset to generate images of new and realistic human faces.

Elective Material

  • Intro to TensorFlow: Starting building neural networks with TensorFlow.
  • Keras: Learn to build neural networks and convolutional neural networks with Keras.

Dependencies

Configure and Manage Your Environment with Anaconda

Per the Anaconda docs:

Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.

Overview

Using Anaconda consists of the following:

  1. Install miniconda on your computer, by selecting the latest Python version for your operating system. If you already have conda or miniconda installed, you should be able to skip this step and move on to step 2.
  2. Create and activate * a new conda environment.

* Each time you wish to work on any exercises, activate your conda environment!


1. Installation

Download the latest version of miniconda that matches your system.

Linux Mac Windows
64-bit 64-bit (bash installer) 64-bit (bash installer) 64-bit (exe installer)
32-bit 32-bit (bash installer) 32-bit (exe installer)

Install miniconda on your machine. Detailed instructions:

2. Create and Activate the Environment

For Windows users, these following commands need to be executed from the Anaconda prompt as opposed to a Windows terminal window. For Mac, a normal terminal window will work.

Git and version control

These instructions also assume you have git installed for working with Github from a terminal window, but if you do not, you can download that first with the command:

conda install git

If you'd like to learn more about version control and using git from the command line, take a look at our free course: Version Control with Git.

Now, we're ready to create our local environment!

  1. Clone the repository, and navigate to the downloaded folder. This may take a minute or two to clone due to the included image data.
git clone https://github.com/udacity/deep-learning-v2-pytorch.git
cd deep-learning-v2-pytorch
  1. Create (and activate) a new environment, named deep-learning with Python 3.6. If prompted to proceed with the install (Proceed [y]/n) type y.

    • Linux or Mac:
    conda create -n deep-learning python=3.6
    source activate deep-learning
    
    • Windows:
    conda create --name deep-learning python=3.6
    activate deep-learning
    

    At this point your command line should look something like: (deep-learning) <User>:deep-learning-v2-pytorch <user>$. The (deep-learning) indicates that your environment has been activated, and you can proceed with further package installations.

  2. Install PyTorch and torchvision; this should install the latest version of PyTorch.

    • Linux or Mac:
    conda install pytorch torchvision -c pytorch 
    
    • Windows:
    conda install pytorch -c pytorch
    pip install torchvision
    
  3. Install a few required pip packages, which are specified in the requirements text file (including OpenCV).

pip install -r requirements.txt
  1. That's it!

Now most of the deep-learning libraries are available to you. Very occasionally, you will see a repository with an addition requirements file, which exists should you want to use TensorFlow and Keras, for example. In this case, you're encouraged to install another library to your existing environment, or create a new environment for a specific project.

Now, assuming your deep-learning environment is still activated, you can navigate to the main repo and start looking at the notebooks:

cd
cd deep-learning-v2-pytorch
jupyter notebook

To exit the environment when you have completed your work session, simply close the terminal window.

More Repositories

1

self-driving-car

The Udacity open source self-driving car project
Jupyter Notebook
6,072
star
2

deep-reinforcement-learning

Repo for the Deep Reinforcement Learning Nanodegree program
Jupyter Notebook
4,528
star
3

deep-learning

Repo for the Deep Learning Nanodegree Foundations program.
Jupyter Notebook
3,940
star
4

machine-learning

Content for Udacity's Machine Learning curriculum
Jupyter Notebook
3,825
star
5

self-driving-car-sim

A self-driving car simulator built with Unity
C#
3,810
star
6

Sunshine-Version-2

The official repository for Developing Android Apps
Java
2,886
star
7

ud851-Exercises

Java
2,048
star
8

ud851-Sunshine

Java
2,014
star
9

ud120-projects

Starter project code for students taking Udacity ud120
DIGITAL Command Language
1,586
star
10

cs344

Introduction to Parallel Programming class code
Cuda
1,227
star
11

frontend-nanodegree-resume

This repository is used for one of the projects in Udacity's Front-End Web Developer Nanodegree program. Learn how to become a Front-End Developer today with line-by-line code reviewed projects and get a job with career services!
JavaScript
1,183
star
12

course-collaboration-travel-plans

CSS
1,162
star
13

DSND_Term2

Contains files related to content and project of DSND Term 2
Jupyter Notebook
1,095
star
14

CarND-LaneLines-P1

Lane Finding Project for Self-Driving Car ND
Jupyter Notebook
779
star
15

CVND_Exercises

Exercise notebooks for CVND.
Jupyter Notebook
744
star
16

ud777-writing-readmes

Supplemental material for Udacity's "Writing READMEs" course
698
star
17

ud839_Miwok

Java
696
star
18

ud867

Course code repository for Gradle for Android and Java
Java
664
star
19

artificial-intelligence-for-trading

Content for Udacity's AI in Trading NanoDegree.
Jupyter Notebook
646
star
20

ud862-samples

Java
585
star
21

AIPND

Code and associated files for the AI Programming with Python Nanodegree Program
Jupyter Notebook
541
star
22

ud891

Google and Udacity course on Accessibility.
JavaScript
505
star
23

create-your-own-adventure

This is example repo illustrates the concept of a "Pull Request", created as part of the course How to Use Git and GitHub
Shell
503
star
24

CarND-Term1-Starter-Kit

Python
497
star
25

Just-Java

The official repository for the second Android Development for Beginners App : Just Java
Java
497
star
26

sagemaker-deployment

Code and associated files for the deploying ML models within AWS SageMaker
Jupyter Notebook
468
star
27

CarND-Advanced-Lane-Lines

Shell
454
star
28

private-ai

Repo for Udacity's Secure & Private AI course
Jupyter Notebook
449
star
29

artificial-intelligence

Python
441
star
30

ud839_CustomAdapter_Example

Java
439
star
31

Advanced_Android_Development

Repo for the Advanced Android App Development course
Java
429
star
32

CarND-Behavioral-Cloning-P3

Starting files for the Udacity CarND Behavioral Cloning Project
Python
425
star
33

cn-deep-learning

Jupyter Notebook
421
star
34

Full-Stack-Foundations

Solution Code to Full Stack Foundations (ud088)
Python
400
star
35

fullstack-nanodegree-vm

Python
372
star
36

CarND-Traffic-Sign-Classifier-Project

Classify Traffic Signs.
Jupyter Notebook
362
star
37

DL_PyTorch

Code for the Deep Learning with PyTorch lesson
Jupyter Notebook
358
star
38

ML_SageMaker_Studies

Case studies, examples, and exercises for learning to deploy ML models using AWS SageMaker.
Jupyter Notebook
355
star
39

ud843-QuakeReport

Discover earthquake activity around the world.
Java
350
star
40

frontend-nanodegree-mobile-portfolio

JavaScript
344
star
41

ud615

Course code for Scalable Microservices with Kubernetes
Go
338
star
42

cs291

Interactive 3D Graphics class code
JavaScript
319
star
43

CarND-Extended-Kalman-Filter-Project

Self-Driving Car Nanodegree Program Starter Code for the Extended Kalman Filter Project
C++
315
star
44

SFND_Lidar_Obstacle_Detection

C++
307
star
45

CarND-Path-Planning-Project

Create a path planner that is able to navigate a car safely around a virtual highway
C++
306
star
46

and-nd-firebase

Course code repository for Firebase in a Weekend by Google: Android
Java
299
star
47

robot_pose_ekf

The robot_pose_ekf ROS package applies sensor fusion on the robot IMU and odometry values to estimate its 3D pose.
C++
293
star
48

frontend-nanodegree-arcade-game

JavaScript
284
star
49

fend

General Front End Nanodegree Content Resources
CSS
276
star
50

FSND

Public repository for the Full-Stack Nanodegree program.
Python
272
star
51

devops-intro-project

Project files for Intro to DevOps class
Shell
269
star
52

rl-cheatsheet

RL Notation and Pseudocode for Udacity's MLND program
TeX
269
star
53

Court-Counter

The official repository for the third Android Development for Beginners App : CourtCounter
Java
264
star
54

Android_Me

App that lets you style your own Android! This uses Fragments to create a flexible and responsive UI.
Java
260
star
55

APIs

Code Repo for API course in Fullstack ND
Python
257
star
56

CarND-Vehicle-Detection

Vehicle Detection Project
Shell
252
star
57

reactnd-project-myreads-starter

Starter Code for the React MyReads Project
JavaScript
251
star
58

CarND-MPC-Project

CarND Term 2 Model Predictive Control (MPC) Project
C++
251
star
59

nd064_course_1

Python
248
star
60

DSND_Term1

Contains files related to content and project of DSND
Jupyter Notebook
247
star
61

ud845-Pets

Java
243
star
62

data-analyst

Content for Udacity's Data Analyst curriculum
HTML
240
star
63

AIND-NLP

Coding exercises for the Natural Language Processing concentration, part of Udacity's AIND program.
Jupyter Notebook
239
star
64

P1_Facial_Keypoints

First project for CVND: facial keypoint detection.
Jupyter Notebook
220
star
65

frontend-nanodegree-styleguide

Official FEND style guides
HTML
220
star
66

dermatologist-ai

Python
208
star
67

NLP-Exercises

Jupyter Notebook
198
star
68

nd1309-work-code

Include for each Part in the ND Program the applications code.
JavaScript
193
star
69

CarND-Camera-Calibration

Images and notebook for camera calibration
Jupyter Notebook
192
star
70

frontend-nanodegree-styleguide-zh

优达学城(Udacity)前端样式指南
HTML
192
star
71

nd9991-c2-Infrastructure-as-Code-v1

Repository for starter code and supporting material
Shell
191
star
72

andfun-kotlin-android-trivia

Kotlin
189
star
73

CarND-Capstone

CMake
188
star
74

ud864

Public repository for code examples used in Udacity's Google Maps APIs course (https://www.udacity.com/course/google-maps-apis--ud864).
HTML
188
star
75

CarND-Semantic-Segmentation

Python
186
star
76

dog-project

Jupyter Notebook
182
star
77

DevOps_Microservices

Supporting material and projects for a course on Cloud DevOps: Microservices.
Jupyter Notebook
181
star
78

ud811

Course materials for Udacity's Intro to Progressive Web Apps course at https://www.udacity.com/course/intro-to-progressive-web-apps--ud811
JavaScript
178
star
79

ShoppingListPlusPlus

ShoppingListPlusPlus is the companion Android app for the Udacity course Firebase Essentials : Build a Collaborative Shopping List App. https://www.udacity.com/course/firebase-essentials-for-android--ud009
Java
176
star
80

CppND-Route-Planning-Project

C++
173
star
81

reactnd-contacts-complete

Code-along project for the Contacts app
JavaScript
171
star
82

ud405

Code supporting the free Udacity class 2D Game Development with LibGDX.
Java
171
star
83

course-git-blog-project

Sample repo of a blog for the Git course
HTML
170
star
84

ud859

Course code for Building Scalable Apps with Google App Engine class
Java
170
star
85

ios-nd-networking

Resources for Udacity's iOS Networking with Swift course.
Swift
168
star
86

intro-to-ml-tensorflow

Projects and exercises for the Udacity Intro to Machine Learning with TensorFlow course
Jupyter Notebook
159
star
87

course-JS-and-the-DOM

JavaScript
158
star
88

CarND-Mercedes-SF-Utilities

Tools for Sensor Fusion processing.
Jupyter Notebook
158
star
89

AIND-Sudoku

Python
156
star
90

didi-competition

Resources for the Udacity/Didi $100k competition
Python
153
star
91

exoplanet-explorer

Learn more about Exoplanets! (built for Promises course)
HTML
146
star
92

ud989-cat-clicker-premium-vanilla

ud989-cat-clicker-premium-vanilla
JavaScript
146
star
93

ud989-retain

JavaScript
146
star
94

CVND---Image-Captioning-Project

Jupyter Notebook
145
star
95

JDND

Public repository for the Java Developer Nanodegree program.
Java
144
star
96

nd9991-c2-Infrastructure-as-Code-v1-Exercises_Solution

This repository contains the solution to the exercises given in the last concept of each Lesson 1 to Lesson 5.
142
star
97

nd027-c3-data-lakes-with-spark

Python
142
star
98

AdvancedAndroid_Emojify

Java
141
star
99

CppND-Capstone-Snake-Game

A 2D Snake game using C++ and SDL
C++
139
star
100

cloudflare-typescript-workers

Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
TypeScript
139
star