Skip to content

A comprehensive resource to master PyTorch, from basics to advanced techniques, for deep learning enthusiasts and practitioners

License

Notifications You must be signed in to change notification settings

mr-pylin/pytorch-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ PyTorch Workshop

License Python Version Codacy Badge Code Style Repo Size Last Updated PRs Welcome

A comprehensive PyTorch workshop covering the fundamentals and advanced techniques of deep learning.

πŸ“– Table of Contents

πŸ“– Main Notebooks

  1. Introduction to Tensors
  2. Gradient and Autograd
  3. Perceptron and AdaLiNe
  4. Regression Models
  5. Multi-Layer Perceptrons
  6. Radial Basis Function Networks
  7. Convolutional Neural Networks
  8. Feature Extraction
  9. Transfer Learning
  10. Fine-Tuning Models
  11. Recurrent Neural Networks

πŸ“– Utilities

A collection of concepts and tools utilized in the main notebooks for training models, ...

πŸ“– Models

πŸ“– Projects

Implementation details are provided in the README files within the parent directories.

  1. MNIST Classification
  2. CIFAR-10 Classification

πŸ“‹ Prerequisites

βš™οΈ Setup

This project requires Python v3.10 or higher. It was developed and tested using Python v3.12.8. If you encounter issues running the specified version of dependencies, consider using this version of Python.

πŸ“ List of Dependencies

datasets ipykernel ipywidgets matplotlib numpy pandas PySoundFile scikit-learn seaborn torch torchaudio torchvision torchinfo torchmetrics

πŸ“¦ Install Dependencies

πŸ“¦ Method 1: Poetry (Recommended βœ…)

Use Poetry for dependency management. It handles dependencies, virtual environments, and locking versions more efficiently than pip.
To install exact dependency versions specified in poetry.lock for consistent environments without installing the current project as a package:

poetry install --no-root

πŸ“¦ Method 2: Pip

Install all dependencies listed in requirements.txt using pip:

pip install -r requirements.txt

πŸ› οΈ Usage Instructions

  1. Open the root folder with VS Code (Ctrl/Cmd + K followed by Ctrl/Cmd + O).
  2. Open .ipynb files using the Jupyter extension integrated with VS Code.
  3. Select the correct Python kernel and virtual environment where the dependencies were installed.
  4. Allow VS Code to install any recommended dependencies for working with Jupyter Notebooks.

✍️ Notes:

  • It is highly recommended to stick with the exact dependency versions specified in poetry.lock or requirements.txt rather than using the latest package versions. The repository has been tested on these versions to ensure compatibility and stability.
  • This repository is actively maintained, and dependencies are updated regularly to the latest stable versions.
  • The table of contents embedded in the notebooks may not function correctly on GitHub.
  • For an improved experience, open the notebooks locally or view them via nbviewer.

πŸ”— Useful Links

PyTorch

  • Source Code:
  • Website:
    • The official website for PyTorch, offering comprehensive documentation, tutorials, and resources for deep learning and machine learning with PyTorch.
    • Link: pytorch.org
  • Pytorch Documentations:
    • Detailed and comprehensive documentation for all PyTorch features and functionalities, including tutorials and guides to help you get started and master PyTorch.
    • Link: pytorch.org/docs/stable/index.html
  • TorchVision Documentations:
    • The torchvision package [part of the PyTorch] consists of popular datasets, model architectures, and common image transformations for computer vision.
    • Link: pytorch.org/vision/stable/index.html
  • TorchAudio Documentation:
    • The torchaudio package [part of the PyTorch] consists of audio I/O and signal processing functionalities, enabling efficient loading, transforming, and manipulating audio.
    • Link: pytorch.org/audio/stable/index.html

NumPy

  • A fundamental package for scientific computing in Python, providing support for arrays, matrices, and a large collection of mathematical functions.
  • Official site: numpy.org

Pandas

  • A powerful, open-source data analysis and manipulation library for Python.
  • Pandas is built on top of NumPy.
  • Official site: pandas.pydata.org

Data Visualization

πŸ” Find Me

Any mistakes, suggestions, or contributions? Feel free to reach out to me at:

I look forward to connecting with you! πŸƒβ€β™‚οΈ

πŸ“„ License

This project is licensed under the Apache License 2.0.
You are free to use, modify, and distribute this code, but you must include copies of both the LICENSE and NOTICE files in any distribution of your work.

©️ Copyright Information

  • Original Images:
    • The images located in the ./assets/images/original/ folder are licensed under the CC BY-ND 4.0.
    • Note: This license restricts derivative works, meaning you may share these images but cannot modify them.
  • Third-Party Assets:
    • Additional images located in ./assets/images/third_party/ are used with permission or according to their original licenses.
    • Attributions and references to original sources are included in the code where these images are used.

About

A comprehensive resource to master PyTorch, from basics to advanced techniques, for deep learning enthusiasts and practitioners

Topics

Resources

License

Stars

Watchers

Forks