gnes.preprocessor.image.resize module

class gnes.preprocessor.image.resize.ResizeChunkPreprocessor(target_width: int = 224, target_height: int = 224, *args, **kwargs)[source]

Bases: gnes.preprocessor.image.resize.SizedPreprocessor

apply(doc: gnes_pb2.Document) → None[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.preprocessor.image.resize.SizedPreprocessor(target_width: int = 224, target_height: int = 224, *args, **kwargs)[source]

Bases: gnes.preprocessor.base.BaseImagePreprocessor

train(*args, **kwargs)

Train the model, need to be overrided