Closed buqing2009 closed 4 years ago
@buqing2009: You could return the binary data for the image generated by your model and write it to a file at the client end.
You can refer the following examples :
thanks, it's helpful
for example, the text detection(CTPN, CRAFT, EAST...) model output a lot of images. How should I use other default return methods in my custom handler. [{},{}],[[[]]] not only [] Thanks. @harshbafna
When I post process the inference output in handler, it seems that it only support return list object. But some model of other tasks like depth estimation, sceneflow, 3D reconstruction..., the output is just a image. It's necessary for torch serve to response the client request, and return an image url.