https://github.com/agrover112/deep-learning-v2-pytorch

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

https://github.com/agrover112/deep-learning-v2-pytorch

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 35 committers (2.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.2%) to scientific vocabulary

Keywords from Contributors

cryptography federated-learning secure-computation syft
Last synced: 10 months ago · JSON representation

Repository

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

Basic Info
  • Host: GitHub
  • Owner: Agrover112
  • License: mit
  • Default Branch: master
  • Size: 135 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of udacity/deep-learning-v2-pytorch
Created over 6 years ago · Last pushed over 6 years ago
Metadata Files
Readme License

README.md

Deep Learning (PyTorch)

This repository contains material related to Udacity's Deep Learning 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:

  • Linux: http://conda.pydata.org/docs/install/quick.html#linux-miniconda-install
  • Mac: http://conda.pydata.org/docs/install/quick.html#os-x-miniconda-install
  • Windows: http://conda.pydata.org/docs/install/quick.html#windows-miniconda-install

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

  2. 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.
  1. 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
```
  1. Install a few required pip packages, which are specified in the requirements text file (including OpenCV). pip install -r requirements.txt

  2. 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.

Owner

  • Login: Agrover112
  • Kind: user

Humans trying to understand machines and people.

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 156
  • Total Committers: 35
  • Avg Commits per committer: 4.457
  • Development Distribution Score (DDS): 0.423
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Cezanne c****c@a****u 90
Mat Leonard l****t@g****m 12
recotra r****8 6
Nadim Kawwa 4****a 5
Christopher Van Der Westhuizen c****9@g****m 4
Tejas Jain 3****5 3
marielen m****f@p****r 3
Nick Kasten k****e@g****m 2
jcardonnet j****t@g****m 2
János Dobszai d****i@g****m 2
Julia Chernushevich j****h@g****m 2
Fernando Henrique n****s@g****m 2
Better-Boy p****5@g****m 1
ByeongKeon Kin s****n@g****m 1
Gabriele Picco p****e@g****m 1
Harshit Jindal h****l@i****m 1
Aleksandr Motsjonov s****w 1
Ashwin Das a****r 1
Bernardo Esteves e****e 1
Vova Manannikov v****t 1
Thomas Meng 4****g 1
Stoufa s****a 1
Nikunj Taneja 3****s 1
Kamjula Chandrasekhar 3****5 1
Julia Chernushevich j****s 1
Jan Magne Andersen j****n@p****o 1
Jose Montiel e****v@g****m 1
Michael Virgo m****v@u****m 1
Pratik Gadhiya p****a@h****m 1
Rahul Iyer r****r@g****m 1
and 5 more...
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels