← 开源
moemen95

Pytorch-Project-Template

A scalable template for PyTorch projects, with examples in Image Segmentation, Object classification, GANs and Reinforcement Learning.

TutorialsTool-specific tutorialsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
923
Star
186
Fork
+1
本周
5
贡献者
创建于 2018-03-12 · 更新于 2026-10-09 · 今日第 12610 名
主要开发者
hagerrady13moemen95JianquanWang

moemen95/Pytorch-Project-Template 排名第 12,610,有 923 个星标。

同类别比较

moemen95/Pytorch-Project-Template 排名第 12,610,此处有 8 个同类条目;lukaemon/Coursera-ML-AndrewNg 排名第 12,615。

同类别比较
名称排名指标
the-full-stack/course-gitbook12,558
星标数:
932
分叉数:
193
简介:
Full Stack Deep Learning Online Course
empathy87/The-Elements-of-Statistical-Learning-Python-Notebooks12,568
语言:
Jupyter Notebook
星标数:
930
分叉数:
284
简介:
A series of Python Jupyter notebooks that help you better understand "The Elements of Statistical Learning" book
onlyphantom/llm-python12,572
语言:
Jupyter Notebook
星标数:
930
分叉数:
314
简介:
Large Language Models (LLMs) tutorials & sample scripts, ft. langchain, openai, llamaindex, gpt, chromadb & pinecone
PacktPublishing/Modern-Computer-Vision-with-PyTorch12,596
语言:
Jupyter Notebook
星标数:
925
分叉数:
380
简介:
Modern Computer Vision with PyTorch, published by Packt
lukaemon/Coursera-ML-AndrewNg12,615
语言:
Jupyter Notebook
星标数:
922
分叉数:
353
简介:
use numpy, scipy, and tensorflow to implement these basic ML model and learning algorithm
huggingface/mcp-course12,623
语言:
MDX
星标数:
921
分叉数:
261
ypwhs/dl-engineer-guidebook12,626
语言:
Python
星标数:
921
分叉数:
104
简介:
深度学习工程师生存指南
karpathy/pytorch-normalizing-flows12,637
语言:
Jupyter Notebook
星标数:
920
分叉数:
102
简介:
Normalizing flows in PyTorch. Current intended use is education not production.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Tutorials
子类别Tool-specific tutorials
关键词Coding
星标数923
分叉数186
贡献者5
创建日期2018-03-12
更新日期2026-10-09
1 天星标数0
7 天星标数1
排名12,610
上次排名12,526
排名变化-84
7 天星标排名10,435
上次 7 天星标排名10,486
7 天星标排名变化51
总星标排名11,831
上次总星标排名11,810
总星标排名变化-21
国家Canada
README 摘录

PyTorch Project Template is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial PyTorch Project Template Implement your PyTorch projects the smart way. A **Scalable template** for PyTorch projects, with examples in Image Segmentation, Object classification, GANs and Reinforcement Learning. Given the nature of deep learning projects, we do not get the chance to think much about the project structure or the code modularity. After working with

different deep learning projects and facing problems with files organization and code repetition, we came up with a **modular project structure** to accommodate any PyTorch project. We also wanted to provide **a base for different PyTorch models for the community** to build upon. This is a joint work between Hager Rady and Mo'men AbdelRazek Table of Contents: PyTorch Project Template Why this template? We are proposing **a baseline** for any PyTorch project to give you a quick start, where you

will get the time to focus on your model's implementation and we will handle the rest. The novelty of this approach lies in: Providing **a scalable project structure**, with a template file for each. Introducing the usage of a config file that handle all the hyper-parameters related to a certain problem. Embedding examples from various problems inside the template, where you can run any of them independently with a **single change** in the config file name. Tutorials: We are

providing a series of tutorials to get your started Getting Started Tutorial: where we provide a guide on the main steps to get started on your project. Mnist Tutorial: Here we take an already implemented NN model on Mnist and adapt it to our template structure. Contribution: We want this template to be **a central place** for many variations of the well-known PyTorch Deep learning models. We are welcoming any contribution from the community that will make this come

true so we urge people to add their PyTorch models into the template. We are also welcoming any proposed changes or discussions about the class design pattern used in this project. Template Class Diagram: Referenced Repos: 1. ERFNet: A model for **Semantic Segmentation**, trained on Pascal Voc 2. DCGAN: Deep Convolutional **Generative Adverserial Networks**, run on CelebA dataset. CondenseNet: A model for **Image Classification**, trained on Cifar10 dataset 4. DQN: Deep Q Network model, a **Reinforcement Learning** example, tested on

CartPole-V0 5. RecAE: Recurrent neural networks based autoencoder for **Time series anomaly detection**, run on ECG5000 dataset Repos Migration Summary: 1) We started by DCGAN, adding its custom configs into the json file. DCGAN has both generator and discriminator model so it doesn't have a single model file. 2) Then, we added CondenseNet, where it was necessary to create a custom blocks folder inside the models folder to include the definitions for custom layers within the model. 3) After

that, we added the DQN project, where all the classes related to the environment have been added to the utils.

常见问题

记录了多少星标和分叉?

moemen95/Pytorch-Project-Template 有 923 个星标和 186 个分叉。

仓库排名是多少?

moemen95/Pytorch-Project-Template 排名第 12,610。

记录的语言和类别是什么?

moemen95/Pytorch-Project-Template 有 923 个星标,语言为 Python,类别为 Tutorials。

哪个仓库排名最接近?

moemen95/Pytorch-Project-Template 与 lukaemon/Coursera-ML-AndrewNg 比较,后者排名第 12,615,有 922 个星标。

README

PyTorch Project Template is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial

PyTorch Project Template

Implement your PyTorch projects the smart way.

A Scalable template for PyTorch projects, with examples in Image Segmentation, Object classification, GANs and Reinforcement Learning.

Given the nature of deep learning projects, we do not get the chance to think much about the project structure or the code modularity. After working with different deep learning projects and facing problems with files organization and code repetition, we came up with a modular project structure to accommodate any PyTorch project. We also wanted to provide a base for different PyTorch models for the community to build upon.

This is a joint work between Hager Rady and Mo'men AbdelRazek

Table of Contents:

Why this template?

We are proposing a baseline for any PyTorch project to give you a quick start, where you will get the time to focus on your model's implementation and we will handle the rest. The novelty of this approach lies in:

  • Providing a scalable project structure, with a template file for each.
  • Introducing the usage of a config file that handle all the hyper-parameters related to a certain problem.
  • Embedding examples from various problems inside the template, where you can run any of them independently with a single change in the config file name.
  • Tutorials to get you started.

Tutorials:

We are providing a series of tutorials to get your started

  • Getting Started Tutorial: where we provide a guide on the main steps to get started on your project.
  • Mnist Tutorial: Here we take an already implemented NN model on Mnist and adapt it to our template structure.

Contribution:

  • We want this template to be a central place for many variations of the well-known PyTorch Deep learning models.
  • We are welcoming any contribution from the community that will make this come true so we urge people to add their PyTorch models into the template.
  • We are also welcoming any proposed changes or discussions about the class design pattern used in this project.

Template Class Diagram:

Referenced Repos:

  1. ERFNet: A model for Semantic Segmentation, trained on Pascal Voc
  2. DCGAN: Deep Convolutional Generative Adverserial Networks, run on CelebA dataset.
  3. CondenseNet: A model for Image Classification, trained on Cifar10 dataset
  4. DQN: Deep Q Network model, a Reinforcement Learning example, tested on CartPole-V0
  5. RecAE: Recurrent neural networks based autoencoder for Time series anomaly detection, run on ECG5000 dataset

Repos Migration Summary:

  1. We started by DCGAN, adding its custom configs into the json file. DCGAN has both generator and discriminator model so it doesn't have a single model file.
  2. Then, we added CondenseNet, where it was necessary to create a custom blocks folder inside the models folder to include the definitions for custom layers within the model.
  3. After that, we added the DQN project, where all the classes related to the environment have been added to the utils. We also added the action selection and model optimization into the training agent.
  4. ERFNet was the last example to join the template; agent, model and utils have been added to their folders with no conflicts.

This is to ensure that our proposed project structure is compatible with different problems and can handle all the variations related to any of them.

Repo Structure:

After adding all our examples, the repo has the following structure:

├── agents
|  └── dcgan.py
|  └── condensenet.py
|  └── mnist.py
|  └── dqn.py
|  └── example.py
|  └── base.py
|  └── erfnet.py
|
├── configs
|  └── dcgan_exp_0.py
|  └── condensenet_exp_0.py
|  └── mnist_exp_0.py
|  └── dqn_exp_0.py
|  └── example_exp_0.py
|  └── erfnet_exp_0.py
|
├── data
|
├── datasets
|  └── cifar10.py
|  └── celebA.py
|  └── mnist.py
|  └── example.py
|  └── voc2012.py
|
├── experiments
|
├── graphs
|  └── models
|  |  └── custome_layers
|  |  |  └── denseblock.py
|  |  |  └── layers.py
|  |  |
|  |  └── dcgan_discriminator.py
|  |  └── dcgan_generator.py
|  |  └── erfnet.py
|  |  └── erfnet_imagenet.py
|  |  └── condensenet.py
|  |  └── mnist.py
|  |  └── dqn.py
|  |  └── example.py
|  |
|  └── losses
|  |  └── loss.py
|
├── pretrained_weights
|
├── tutorials
|
├── utils
|  └── assets
|
├── main.py
└── run.sh

Requirements:

easydict==1.7
graphviz==0.8.4
gym==0.10.5
imageio==2.3.0
matplotlib==2.2.2
numpy==1.14.5
Pillow==5.2.0
scikit-image==0.14.0
scikit-learn==0.19.1
scipy==1.1.0
tensorboardX==1.2
torch==0.4.0
torchvision==0.2.1
tqdm==4.23.4

Future Work:

We are planning to add more examples into our template to include various categories of problems. Next we are going to include the following:

License:

This project is licensed under MIT License - see the LICENSE file for details

排名相邻
同类项目