Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.3%) to scientific vocabulary
Repository
HSE DL project
Basic Info
- Host: GitHub
- Owner: sukis222
- License: mit
- Language: Python
- Default Branch: main
- Size: 31.3 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
PyTorch Template for DL projects
About • Tutorials • Examples • Installation • How To Use • Useful Links • Credits • License
About
This repository contains a template for PyTorch-based Deep Learning projects.
The template utilizes different python-dev techniques to improve code readability. Configuration methods enhance reproducibility and experiments control.
The repository is released as a part of the HSE DLA course, however, can easily be adopted for any DL-task.
This template is the official recommended template for the EPFL CS-433 ML Course.
📖 If you use this template in your work, please cite this repository or include a reference. Attribution supports the project and encourages continued development.
Tutorials
This template utilizes experiment tracking techniques, such as WandB and Comet ML, and Hydra for the configuration. It also automatically reformats code and conducts several checks via pre-commit. If you are not familiar with these tools, we advise you to look at the tutorials below:
Python Dev Tips: information about Git, pre-commit, Hydra, and other stuff for better Python code development. The YouTube recording of the workshop is available here.
Seminar on R&D Coding 2025: Seminar from the LauzHack Deep Learning Bootcamp with discussion on logging, project-based coding, configuration, and reproducibility. The materials can be found here.
Seminar on R&D Coding 2024: Seminar from the LauzHack Deep Learning Bootcamp with template discussion and reasoning. It also explains how to work with WandB. The seminar materials can be found here.
HSE DLA Course Introduction Week: combines the two seminars above into one with some updates, including an extra example for Comet ML.
PyTorch Basics: several notebooks with PyTorch basics and corresponding seminar recordings from the LauzHack Deep Learning Bootcamp.
To start working with a template, just click on the use this template button.
You can choose any of the branches as a starting point. Set your choice as the default branch in the repository settings. You can also delete unnecessary branches.
Examples
[!IMPORTANT] The main branch leaves some of the code parts empty or fills them with dummy examples, showing just the base structure. The final users can add code required for their own tasks.
You can find examples of this template completed for different tasks in other branches:
Image classification: simple classification problem on MNIST and CIFAR-10 datasets.
ASR: template for the automatic speech recognition (ASR) task. Some of the parts (for example,
collate_fnand beam search fortext_encoder) are missing for studying purposes of HSE DLA course.
Installation
Installation may depend on your task. The general steps are the following:
a. conda version:
```bash # create env conda create -n projectenv python=PYTHONVERSION
# activate env conda activate project_env ```
b. venv (+pyenv) version:
```bash # create env ~/.pyenv/versions/PYTHONVERSION/bin/python3 -m venv projectenv
# alternatively, using default python version python3 -m venv project_env
# activate env source project_env/bin/activate ```
- Install all required packages
bash
pip install -r requirements.txt
- Install
pre-commit:bash pre-commit install
How To Use
To train a model, run the following command:
bash
python3 train.py -cn=CONFIG_NAME HYDRA_CONFIG_ARGUMENTS
Where CONFIG_NAME is a config from src/configs and HYDRA_CONFIG_ARGUMENTS are optional arguments.
To run inference (evaluate the model or save predictions):
bash
python3 inference.py HYDRA_CONFIG_ARGUMENTS
Useful Links:
You may find the following links useful:
Report branch: Guidelines for writing a scientific report/paper (with an emphasis on DL projects).
CLAIRE Template: additional template by EPFL CLAIRE Laboratory that can be combined with ours to enhance experiments reproducibility via Docker.
Mamba and Poetry: alternatives to Conda and pip package managers given above.
Awesome README: a list of awesome README files for inspiration. Check the basics here.
Credits
This repository is based on a heavily modified fork of pytorch-template and asrprojecttemplate repositories.
License
Owner
- Name: Артур
- Login: sukis222
- Kind: user
- Repositories: 1
- Profile: https://github.com/sukis222
HSE student, AI beginner
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this template, please cite it as below."
title: "PyTorch Project Template"
authors:
- family-names: Grinberg
given-names: Petr
orcid: https://orcid.org/0009-0008-4480-5595
date-released: 2024-09-01
url: https://github.com/Blinorot/pytorch_project_template
GitHub Events
Total
- Push event: 9
- Create event: 2
Last Year
- Push event: 9
- Create event: 2
Dependencies
- black *
- comet_ml *
- hydra-core *
- isort *
- matplotlib *
- numpy ==1.26.4
- pandas *
- pre-commit *
- torch ==2.2.0
- torchmetrics *
- torchvision ==0.17.0
- tqdm *
- wandb *