Metadata-Version: 2.1
Name: readablePTH
Version: 0.1.2
Summary: Make pth readable 
Home-page: https://github.com/oneview-space/readablePTH
Author: OneView
Author-email: ophir@oneview.ai
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: torch (~=1.8.1)
Requires-Dist: json-tricks (~=3.15.5)

# Readable PTH 

## About this project
Make pth readable. \
model.pth <--> model.json

## Installation
```bash
pip install readablePTH
```

### For develop
Please clone the project
```bash
git clone git@github.com:oneview-space/readablePTH.git
```
And then install
```bash
cd readablePTH
pip install -e .
```

## Usage

*For now this is only working with [`encode`, `decode`] commands*

### decode from pth to json
```bash
rpth decode -i model.pth -o model.json 
```

### encode from json to pth
```bash
rpth encode -i model.json -o model.pth 
```


# TODO:
- [ ] Add the ability to use any torch version 
- [ ] add args to map_location (CPU/GPU) when writing pth file


