Skip to content
/ canvas Public template

A flexible and modular deep learning project template

License

Notifications You must be signed in to change notification settings

ramanakshay/canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas ☯︎

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)

Installation

  1. Clone the repository.
git clone https://github.com/ramanakshay/canvas --depth 1 --branch sl
  1. Install dependencies from requirements file. Make sure to create a virtual/conda environment before running this command.
pip install -r requirements.txt
  1. 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)

Folder Structure

├──  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

TODOs

Any kind of enhancement or contribution is welcomed.

  • Support for loggers