Make pth readable
Project description
Readable PTH
About this project
Make pth readable.
model.pth <--> model.json
Installation
pip install readablePTH
For develop
Please clone the project
git clone git@github.com:oneview-space/readablePTH.git
And then install
cd readablePTH
pip install -e .
Usage
For now this is only working with [encode
, decode
] commands
decode from pth to json
rpth decode -i model.pth -o model.json
encode from json to pth
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readablePTH-0.1.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for readablePTH-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 155128607cc72fb76ae550319fd54285ccc4dcfbd36055a9f3b040da8421903f |
|
MD5 | efcbb2d62e954d05ce8f135ca5109f56 |
|
BLAKE2b-256 | b92fad9422453ec1231fe70c921c245fb7e20fd10328b817bf3fe3c2b929b372 |