Skip to content

Real-time augmentation of data for inputs into deep learning models.

License

Notifications You must be signed in to change notification settings

longubu/datumio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datumio

Datumio is a data loader with real-time augmentation, specifically tailored for inputs into image-based deep learning models (Convolutional Neural Networks).

Datumio is an aggregation of other existing open source projects (specifically kaggle-plankton, kaggle-galaxy-zoo, keras-preprocessing-image) with hopes that it is simple and general enough to be used with any framework, from keras to caffe.

Datumio purpose:

  • load datasets that may not entirely fit into memory
  • fast, (random and static) augmentation of dataset upon loading
  • agnostic to deeplearning framework
  • parallel processing of GPU and CPU - data is constantly streaming via the CPU as the GPU does computation on the previous minibatch.
  • dataset re-sampling based on labels (or any externally supplied group). For example, this is useful for resampling datasets with unbalanced labels which can bias models to predicting the classes that appear more frequently.

Installation

Dependencies

  • SciPy
  • Numpy
  • PIL
  • scikit-image

If you don't already have these packages installed, it is recommended to install via third party distribution such as anaconda. If you're using linux, it's recommended to install using the package manager -- else it may do a lengthy build process with many depedencies and may lead to a much slower configuration.

Build from source (does not include dependencies)

git clone https://github.com/longubu/datumio.git
cd datumio
python setup.py install

Usage

See examples/* for usage.

keras

tensorflow

  • mnist_cnn.py: Example of using batch generator with MNIST to train a CNN using tensorflow

TODO

  • Create examples for other deep learning frameworks: [caffe, tensorflow, mxnet, etc]
  • Extend to non-image data
  • Create example for using it with single-file databases (lmdb, HDF5, etc)

About

Real-time augmentation of data for inputs into deep learning models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages