Process Handling in Customized Scenarios
The {process handling in custom scenario}.py script parses RESTful parameters, invokes streams, and defines output messages.
Key Points
- Inherit BaseInferScene to define a process handling class in custom scenarios. This class is able to pre-process the requested data to verify the request data integrity and obtain the request information, verify images to check the image size and send the obtained image data, and reserve interfaces for RESTful parameter verification, as well as stream process calling (infer interface) and post-processing.
- Implement an interface for parameter verification, which is used to verify and parse RESTful parameters.
- Implement the infer interface, which is used to call and postprocess the stream process.
- Implement a postprocessing interface, which is used to postprocess the output tensor of model inference.
Debugging Methods
After the custom inference service package is installed, start the inference service and complete the inference job.
Parent topic: Process Description