Skip to main content

A package for doing hyper-spectral image augmentation for deep learning.

Project description

HYPer-spectral Image Augmentation (hypia)

The following is a Python package (available through the Python Package Manager (pip)) for the augmentation of hyper-spectral images for uses in deep learning.

Why does this exist?

  • Other image augmentation libraries often only accept RGB or grayscale images (with options for RGBA images usually too). However, in a scientific context, we often have images with more than 3/4 channels (so-called hyper-spectral imaging) and it seemed like a good idea to have an augmentation library which deals with all channels in parallel.
  • Another problem is that some image augmentation frameworks can accept more than 3/4 channels but convert the data to unsigned 8-bit integers (see PyTorch's torchvision) which is damaging for scientific data where we care about the actual numbers of the data. This can lead to the images losing some of the features and relative contrasts of features which is important for our science.

I had a look at several image augmentation packages but none of them seemed to satisfy both of these criteria so here we are.

Installation

There are two ways to install this package: either from pip or from source from GitHub.

From pip:

>>> pip install hypia

From GitHub:

>>> git clone https://github.com/rhero12/hypia
>>> cd hypia
>>> python setup.py install

Documentation

The documentation (including examples) is available here.

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

hypia-0.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

hypia-0.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file hypia-0.0.2.tar.gz.

File metadata

  • Download URL: hypia-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for hypia-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1e698fe268345ed6670b1d310166e0d65b579fe26a2e85389b8b4a1749aaf006
MD5 f38cb1bc29794afb7221d25e7018050f
BLAKE2b-256 45c6b129bbb56b139500e3cdd90dabdf6c1c79c47484d1a1069054f8780c62bf

See more details on using hashes here.

File details

Details for the file hypia-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hypia-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for hypia-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65bd9ee1439748021917c40bee1e9be010833643363b15f03d05cf209e81da1b
MD5 b5b351fa9daa6c42872abc527b2685b3
BLAKE2b-256 45a8bcccbea8ae6c92b344ecf3884f5b5ce39d8c6d743941ef71524bbd77f59c

See more details on using hashes here.

Supported by

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