Metadata-Version: 2.1
Name: torch-template
Version: 0.0.3
Summary: Torch_Template - A PyTorch template with commonly used models and tools
Home-page: https://github.com/misads/torch_template
Author: Haoyu Xu
Author-email: xuhaoyu@tju.edu.cn
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: torch
Requires-Dist: numpy
Requires-Dist: torchvision
Requires-Dist: tensorboardX

# torch_template

<p>
    <a href='https://torch-template.readthedocs.io/en/latest/?badge=latest'>
        <img src='https://readthedocs.org/projects/torch-template/badge/?version=latest' alt='Documentation Status' /></a>
    <a href="https://opensource.org/licenses/MIT">
        <img src="https://img.shields.io/badge/License-MIT-brightgreen.svg" alt="License">
    </a>
</p>

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


### Installation

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

``` bash
git clone https://github.com/misads/torch_template.git
cd torch_template
```
**For pip**  
```bash
pip install . 
```

**For conda**
```bash
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

```python
import torch_template
from torch_template import misc_utils as utils
from torch_template import torch_utils
```

### File structure

```yaml
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

```



