Skip to content

ChristophAlt/pytorch-lightning-hydra-cookiecutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python PyTorch Lightning Hydra Cookiecutter

Features

Quickstart

# Install pipx if pipenv and cookiecutter are not installed
python3 -m pip install pipx
python3 -m pipx ensurepath

# Use cookiecutter to create project from this template
pipx run cookiecutter gh:christophalt/pytorch-lightning-hydra-cookiecutter

# Enter project directory
cd <repo_name>

# Initialise git repo
git init

# [OPTIONAL] Create conda environment
bash bash/setup_conda.sh

# Activate conda environment
conda activate <env_name>

# install requirements
pip install -r requirements.txt

# Setup pre-commit and pre-push hooks
pre-commit install -t pre-commit
pre-commit install -t pre-push

Appreciation

This template is largely based on the following projects:

  • Python Best Practices Cookiecutter template by Sourcery AI [LINK]
  • Lightning-Hydra-Template by ashleve [LINK]

About

Pytorch Lightning Hydra Best Practices Cookiecutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published