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.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for readablePTH-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06eaac757a0d2d47ab8504fec9afe92f1dd1562924ebd4674375f0011e266c6d |
|
MD5 | f90f7ac87efbc75fc4ac07251ee9776d |
|
BLAKE2b-256 | 8a7a6d1345d692358bc40b0863f0e41c282318dddc2f1973f475f55d7818c247 |