Skip to content
/ canvas Public template

A flexible pytorch template for all your deep learning projects.

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

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

canvas

A simple, flexible, and well designed pytorch template for your deep learning projects. The main idea behind this template is to model all machine learning tasks as interactions between an agent with its environment or some data. All components of the project are built around this core idea.

There are multiple templates available for different kinds of machine learning tasks. Switch to the appropriate branch and see the installation section to download the template:

  • Supervised Learning (SL)
  • Reinforcement Learning (RL)

Table Of Contents

Installation

  1. Clone the repository and go to the project folder.
git clone https://github.com/ramanakshay/canvas --depth 1 --branch sl
cd canvas
  1. Reset git history.
rm -rf .git
git init
git add --all
git commit -m “initial commit from https://github.com/ramanakshay/canvas”
  1. Install dependencies from requirements file. Make sure to create a virtual environment before running this command.
pip install -r requirements.txt
  1. Test the code.
python main.py

Requirements

  • pytorch (An open source deep learning platform)
  • hydra (A framework for configuring complex applications)

Details

Project Architecture

This architecture is inspired from the agent-environment interface in reinforcment learning. The template extends this concept to support all types of machine learning tasks.

Folder Structure

├──  agent              - this folder contains all code (models, networks) of the agent
│   ├── model.py
│   └── network.py
│
│
├── data               - this folder contains datasets and code for data loaders
│   └── data_loader.py
│
│
├── algorithm             - this folder contains different algorithms of your project
│   └── algorithm.py
│
│
├──  config
│    └── config.yaml  - YAML config file for project
│
│
├──  utils            - this (optional) folder contains utilities of your project
│    └── utils.py
│
│
└── main.py           - entry point of the project

TODO

  • Support for loggers

Contributing

Any kind of enhancement or contribution is welcomed.

License

This project is licensed under the MIT License. See LICENSE for more details.

Releases

No releases published

Packages

No packages published

Languages