Support for Common Data Types
When using Chassis, you must define a process
function that serves as your model inference function. The sole parameter to this function, let's call it input_bytes
, represents the input data for your model. This parameter will always be of type bytes
, which means the beginning of your process
function must account for this and be able to convert it to the expected data type for your model. This guide includes examples of how to decode raw bytes for common data types.
Assume input_bytes
is the parameter to your process
function for each.
Text
Imagery
OpenCV
Pillow
See also: