behnamasadi/PyTorchTutorial

1

stars

197

commits

Jupyter Notebook

primary language

Jul 20, 2026

updated

README

PyTorchTutorial

This repository contains my snippets and sample codes for developing deep learning application with Pytorch.

alt text CI GHCR GHCR Package GitHub Issues or Pull Requests

GitHub Repo stars GitHub forks

Installation

conda create -n PyTorchTutorial python=3.12 -y
. "$HOME/anaconda3/etc/profile.d/conda.sh"
conda activate PyTorchTutorial

Install PyTorch

For a machine with a working NVIDIA driver and nvidia-smi, install the current CUDA build from the official PyTorch wheel index:

python -m pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
pip install jupyterlab matplotlib seaborn scikit-learn pydot torchviz mlflow timm opencv-python albumentations tqdm tensorboard wandb kagglehub pytorch-lightning shap

monai[all] is intentionally not installed by default because it is large and pulls many optional dependencies. Install it only if you need the medical imaging notebooks:

pip install "monai[all]"

Optional system packages

If you want to view generated graphviz .dot files:

sudo apt-get install graphviz
sudo apt-get install xdot

Repo location

If you want the env-local src symlink that points to this repo:

ln -s /home/$USER/workspace/PyTorchTutorial /home/$USER/anaconda3/envs/PyTorchTutorial/src

Updating packages

Do not use conda update --all for this env. It tends to churn the full stack and is a common way to break a working PyTorch/CUDA setup.

Upgrade only what you actually need, for example:

pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

PyTorch Fundamentals

Neural Network Basics

Training Process


CNN Building Blocks


Modern Vision Architectures

CNN Architectures


Image Segmentation


Object Detection


Medical Imaging


Image Preprocessing & Augmentation Workflows


Attention & Transformers


Foundation Models

General-purpose, self-supervised backbones that are frozen and reused across many downstream tasks (classification, retrieval, segmentation, depth, correspondence) via lightweight heads.



Multimodal Models


LLM


XAI (Explainable Artificial Intelligence)


Production Engineering & MLOps

Experiment Tracking & Monitoring

Pre-deployment Quality & Validation

Deployment & Operations

GPU Optimization & Performance


Infrastructure & Best Practices


Kaggle

Datasets


Free Books and Online Courses


Contributors

behnamasadi

197 commits

behnamasadi/PyTorchTutorial

1

stars

197

commits

Jupyter Notebook

primary language

Jul 20, 2026

updated

README

PyTorchTutorial

This repository contains my snippets and sample codes for developing deep learning application with Pytorch.

alt text CI GHCR GHCR Package GitHub Issues or Pull Requests

GitHub Repo stars GitHub forks

Installation

conda create -n PyTorchTutorial python=3.12 -y
. "$HOME/anaconda3/etc/profile.d/conda.sh"
conda activate PyTorchTutorial

Install PyTorch

For a machine with a working NVIDIA driver and nvidia-smi, install the current CUDA build from the official PyTorch wheel index:

python -m pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
pip install jupyterlab matplotlib seaborn scikit-learn pydot torchviz mlflow timm opencv-python albumentations tqdm tensorboard wandb kagglehub pytorch-lightning shap

monai[all] is intentionally not installed by default because it is large and pulls many optional dependencies. Install it only if you need the medical imaging notebooks:

pip install "monai[all]"

Optional system packages

If you want to view generated graphviz .dot files:

sudo apt-get install graphviz
sudo apt-get install xdot

Repo location

If you want the env-local src symlink that points to this repo:

ln -s /home/$USER/workspace/PyTorchTutorial /home/$USER/anaconda3/envs/PyTorchTutorial/src

Updating packages

Do not use conda update --all for this env. It tends to churn the full stack and is a common way to break a working PyTorch/CUDA setup.

Upgrade only what you actually need, for example:

pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

PyTorch Fundamentals

Neural Network Basics

Training Process


CNN Building Blocks


Modern Vision Architectures

CNN Architectures


Image Segmentation


Object Detection


Medical Imaging


Image Preprocessing & Augmentation Workflows


Attention & Transformers


Foundation Models

General-purpose, self-supervised backbones that are frozen and reused across many downstream tasks (classification, retrieval, segmentation, depth, correspondence) via lightweight heads.



Multimodal Models


LLM


XAI (Explainable Artificial Intelligence)


Production Engineering & MLOps

Experiment Tracking & Monitoring

Pre-deployment Quality & Validation

Deployment & Operations

GPU Optimization & Performance


Infrastructure & Best Practices


Kaggle

Datasets


Free Books and Online Courses


Contributors

behnamasadi

197 commits

Languages

Jupyter Notebook

89.9%

Python

10.1%