Minimalistic library designed to be an interface for the model input with a lightweight `Image` class.
Project description
pytorch-image
Minimalistic library designed to be an interface for the model input with a lightweight Image
class.
from my_model import MyModel, Image
image = Image.from_numpy(numpy_image)
predictions = model(image)
It also offers a simple interface for essential image operations such as loading, resizing, augmenting, and saving.
Installation
pip install pytorch-image
poetry add pytorch-image
Usage
from pytorch_image import Image
import albumentations
image = Image.open("path/to/image.png")
image.augment(albumentations.HorizontalFlip())
image.torch()
Image.from_numpy
Image.from_torch
Image.from_pil_image
Image.open
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
pytorch_image-1.0.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for pytorch_image-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af1638d780ddba61cd4245d737963d9a6ca86290d31c39a9151d5a2dbedaf36a |
|
MD5 | dc78864f5235f3fe59746a96eedd15f2 |
|
BLAKE2b-256 | afe8578b9ee95221a143693563471f6ddcb26b8f31d514c884e911d7c8fc5510 |