furiosa.serving.processors package

Submodules

furiosa.serving.processors.base module

class furiosa.serving.processors.base.Processor

Bases: abc.ABC

abstract async postprocess(*args: Any, **kwargs: Any) Any
abstract async preprocess(*args: Any, **kwargs: Any) Any

furiosa.serving.processors.imagenet module

class furiosa.serving.processors.imagenet.ImageNet(model: furiosa.serving.model.ServeModel, label: str)

Bases: furiosa.serving.processors.base.Processor

async postprocess(output: numpy.ndarray) Dict

Postprocess to classify image from compiled model with labels

async preprocess(image: fastapi.datastructures.UploadFile = File(Ellipsis)) numpy.ndarray

Preprocess to convert a image (Python file-like object) to Numpy array

Module contents

class furiosa.serving.processors.ImageNet(model: furiosa.serving.model.ServeModel, label: str)

Bases: furiosa.serving.processors.base.Processor

async postprocess(output: numpy.ndarray) Dict

Postprocess to classify image from compiled model with labels

async preprocess(image: fastapi.datastructures.UploadFile = File(Ellipsis)) numpy.ndarray

Preprocess to convert a image (Python file-like object) to Numpy array

class furiosa.serving.processors.Processor

Bases: abc.ABC

abstract async postprocess(*args: Any, **kwargs: Any) Any
abstract async preprocess(*args: Any, **kwargs: Any) Any