A simple, flexible, and modular pytorch template for your deep learning projects. There are multiple templates available for different kinds of machine learning tasks. Switch to the appropriate branch from above and see the installation section to download the template:
- Supervised Learning (SL)
- Reinforcement Learning (RL)
- Self-Supervised Learning (SSL)
- Clone the repository.
git clone https://github.com/ramanakshay/canvas --depth 1 --branch sl
- Install dependencies from requirements file. Make sure to create a virtual/conda environment before running this command.
pip install -r requirements.txt
- Run the code.
# navigate to src folder
cd src
# run the main file
python main.py
Main Requirements
- pytorch (An open source deep learning platform)
- hydra (A framework for configuring complex applications)
├── model - this folder contains all code (networks, layers) of the model
│ ├── weights
│ ├── classifier.py
│ ├── network.py
│ └── layers.py
│
├── data - this folder contains code relevant to the data and datasets
│ ├── datasets
│ └── data_loader.py
│
├── algorithm - this folder contains different algorithms of your project
│ ├── train.py
│ └── test.py
│
│
├── config
│ └── config.yaml - YAML config file for project
│
│
└── main.py - entry point of the project
Any kind of enhancement or contribution is welcomed.
- Support for loggers