furiosa.serving.processors package
Submodules
furiosa.serving.processors.base module
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