torch_template
A python package for commonly used pytorch models, data loaders and utils.
Installation
For pip
pip install torch-template
For source
Clone the repo, cd into it and run pip install . command.
git clone https://github.com/misads/torch_template.git
cd torch_template
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
Test if the package is successfully installed:
import torch_template as tt
from torch_template import torch_utils
Run:
#!-bash
tt-new
Enter your repo name, then a python project template will be created.
Documentation
The documentation webpage can be found here https://torch-template.readthedocs.io/en/latest/.
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
└── torch_utils.py :PyTorch utils
Metadata
Release files for torch-template 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| torch-template-0.0.4.tar.gz | 36.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_template-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.9 kB
Release files / torch-template-0.0.4.tar.gz
| Download URL | torch-template-0.0.4.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76c2526bfbc50f57e861e88374b92e0cc3af4c9a5d140bf124f6be54c0a4a0f1
|
|
BLAKE2b-256 checksum How to use checksums |
fc564b776e52818a5b5cc44447586e83b97c94e88af93190285f5f239674efbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / torch_template-0.0.4-py3-none-any.whl
| Download URL | torch_template-0.0.4-py3-none-any.whl |
|---|---|
| Size | 49.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5542d4f993fc2bbeedf9d1e16c9ad4f79a77263721d957602a4d1b73ef22643
|
|
BLAKE2b-256 checksum How to use checksums |
ad10596371b3bf07f35dc9347d248087c67d47a56d6e39196b0548e8ec57cc64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for torch-template 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.