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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file torch-template-0.0.3.tar.gz.

File metadata

  • Download URL: torch-template-0.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for torch-template-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1ce88136c094176131270bcb220a396eeb31847b6340460648dfcec40c5f638e
MD5 ea1f836926e1f99564b0457fdaa775c2
BLAKE2b-256 6779655e3b46af2e79bd9800f354f5059410600a16bc8d7a3837e7e694e68344

See more details on using hashes here.

File details

Details for the file torch_template-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: torch_template-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for torch_template-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5629c77b6024dd7f01095ed213c58708f25615b3745f841fc318a63ec70c41a2
MD5 5a776da0146a67b48e165cd401bfaa3b
BLAKE2b-256 1e5faf0868f63d9b3dcd8ee65b527bf511c13bd9edbaa12a71c780c1a26b8bc1

See more details on using hashes here.

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