Skip to main content

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


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)

Uploaded Source

Built Distribution

readablePTH-0.1.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page