Moving Symbols
v1.0
Like Moving MNIST, but way more flexible
|
Public Member Functions | |
def | __init__ (self, root, mode) |
def | get_image (self, label) |
Return a random, pre-processed image in the given label set and its source path. More... | |
Public Attributes | |
root | |
mode | |
def moving_symbols.moving_symbols.ImageLoader.__init__ | ( | self, | |
root, | |||
mode | |||
) |
root | The path to the root directory containing all images. |
mode | String that indicates how to transform the image for rendering. Options include "tight_crop". |
def moving_symbols.moving_symbols.ImageLoader.get_image | ( | self, | |
label | |||
) |
Return a random, pre-processed image in the given label set and its source path.
The image is pre-processed based on the ImageLoader's mode.
label | The label of the class to sample from |
image | A PIL Image from the given label set |
image_path | The path to the selected image |