Skip to content

A simple pytorch tutorial for developing a DNN model for a regression and a classification task.

Notifications You must be signed in to change notification settings

loeschet/pytorch_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytorch_tutorial

A simple pytorch tutorial for developing DNN models for a regression, a classification and a computer vision task.

Running the tutorial

Option 1: Running on Google Colab

The jupyter notebook of this tutorial exists on google colab and can be used without additional installation requirements. However, users need an existing google account and it is required to create a copy of the notebook in the users personal google drive, since global editing is not permitted in the main notebook. The link to the notebook can be found here: link

Option 2: Running locally

The code is also available from this repository in the pytorch_tutorial.ipynb file. We recommend to use an anaconda environment to run the tutorial. An environment that contains all the packages needed can be installed from a command shell like this:

conda create --name tutorial_env python pandas matplotlib numpy scikit-learn seaborn pytables ipykernel
conda activate tutorial_env
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

Note that in the last command, the cudatoolkit version needs to be adjusted to the supported CUDA version on the local machine.

We have also provided an tutorial_env.yml file with a working environment that can be used to install the required software using anaconda like this:

conda env create --name tutorial_env --file=tutorial_env.yml

Note that here we are using cudatoolkit version 11.3 again, which might be different for other machines.

Datasets used

About

A simple pytorch tutorial for developing a DNN model for a regression and a classification task.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published