Skip to main content

A high level library for Pytorch

Project description

## High level library for Pytorch

Torchlite is a high level library meant to be what Keras is for Tensorflow and Theano. It is not meant to micmic the Keras API at 100% but instead to get the best of both worlds (Pytorch and Keras API). For instance if you used Keras train/validation generators, in Torchlite you would use Pytorch [Dataset](http://pytorch.org/docs/master/data.html#torch.utils.data.Dataset) and [DataLoader](http://pytorch.org/docs/master/data.html#torch.utils.data.DataLoader).

## Installation

` pip install torchlite `

or if you want to run this lib directly to have access to the examples clone this repository and run:

` pip install -r requirements.txt `

to install the required dependencies. Then install pytorch and torchvision from [here](http://pytorch.org/). Finally install the latest version of imgaug with: ` pip install git+https://github.com/aleju/imgaug ` Torchlite will use an outdated version from pypi by default.

## Documentation

For now the library has no complete documentation but you can quickly get to know how it works by looking at the examples in the examples folder. This library is still in pre-alpha and many things may break for now. The only things which will evolve at the same pace as the library are the examples, they are meant to always be up to date with the library.

Few examples will generates folders/files such as saved models or tensorboard logs. To visualize the tensorboard logs download Tensorflow’s tensorboard as well as [Pytorch’s tensorboard](https://github.com/lanpa/tensorboard-pytorch). Then execute on the log folder: ` tensorboard --logdir=./tensorboard `

## Packaging the project for Pypi deploy

` pip install twine pip install wheel python setup.py sdist python setup.py bdist_wheel `

[Create a pypi account](https://packaging.python.org/tutorials/distributing-packages/#id76) and create $HOME/.pypirc with: ` [pypi] username = <username> password = <password> `

Then upload the packages with: ` twine upload dist/* `

Or just: ` pypi_deploy.sh `

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

torchlite-0.1.5.6.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

torchlite-0.1.5.6-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file torchlite-0.1.5.6.tar.gz.

File metadata

  • Download URL: torchlite-0.1.5.6.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for torchlite-0.1.5.6.tar.gz
Algorithm Hash digest
SHA256 52d59b0edd3079f4fc161192567c1c746498216982adebe2bf2d212ad5d00bbd
MD5 47eed8d9c14c7016804463689c80a73d
BLAKE2b-256 bb37cd43e511f2807fa18ea4020e1d22ce223a9014fdfa8c3a4021d44304d48e

See more details on using hashes here.

File details

Details for the file torchlite-0.1.5.6-py3-none-any.whl.

File metadata

File hashes

Hashes for torchlite-0.1.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0cfc5e7c27e0e4263052fc9792f6b4d2aaba98fd31178c13a8bf8bac6bf021e2
MD5 b840078875e889bef16ef25fa2366efc
BLAKE2b-256 5192faf28e3b527be31b72c5244e13ff221cc3f0413a54447560fdbe4a5a2b73

See more details on using hashes here.

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