Skip to main content

Torch_Template - A PyTorch template with commonly used models and tools

Project description

torch_template

Documentation Status License

A python package for commonly used pytorch models, data loaders and utils.

Installation

Clone the repo, cd into it and run pip install . command.

git clone https://github.com/misads/torch_template.git
cd torch_template

For pip

pip install . 

For conda

source ~/anaconda3/bin/activate
conda activate <env>
python setup.py install

A configure file torch_template.egg-info will be generated in the repo directory. Copy torch_template and torch_template.egg-info to your site-packages folder.

Usage

import torch_template
from torch_template import misc_utils as utils
from torch_template import torch_utils

File structure

File structure
    .
    ├── network
    │     ├── base_model.py     :Define models, losses and parameter updating
    │     ├── norm.py           :Normalizations
    │     └── weights_init.py   :weights init
    
    ├── dataloader/             :Define Dataloaders
    ├── model_zoo               :Commonly used models
    └── utils
          ├── misc_utils.py     :System utils
          └── torch_utils.py    :PyTorch utils

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torch-template-0.0.3.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

torch_template-0.0.3-py3-none-any.whl (37.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page