功能描述 |
继承模型后处理基类,用于对文本生成(以及翻译,文字识别,语音识别等)模型推理的输出张量进行后处理。 |
---|---|
约束限制 |
目前其上游只能连接mxpi_tensorinfer推理插件,只接受MxpiTensorPackageList作为元数据输入。调用mxBase仓的目标检测基类Process接口实现通讯,接受TextsInfo数据类型的返回。 |
插件基类(factory) |
mxpi_textgenerationpostprocessor |
输入和输出 |
|
端口格式(caps) |
|
属性 |
Python后处理插件pipeline样例:
1 2 3 4 5 6 7 8 9 10 11 12 13 | "mxpi_textgenerationpostprocessor0": { "props": { "dataSource": "mxpi_tensorinfer0", "funcLanguage":"python", "postProcessConfigPath": "../models/crnnms/crnn.cfg", "labelPath": "../models/crnnms/crnn.names", "postProcessLibPath": "../../../python", "className":"CrnnPostProcess", "pythonModule":"postprocess.post" }, "factory": "mxpi_textgenerationpostprocessor", "next": "mxpi_dataserialize0" }, |
C++后处理插件pipeline样例:
1 2 3 4 5 6 7 8 9 10 11 | "mxpi_textgenerationpostprocessor0": { "props": { "dataSource": "mxpi_tensorinfer0", "funcLanguage":"c++", "postProcessConfigPath": "../models/crnnms/crnn.cfg", "labelPath": "../models/crnnms/crnn.names", "postProcessLibPath": "../../../lib/modelpostprocessors/libcrnnpostprocess.so" }, "factory": "mxpi_textgenerationpostprocessor", "next": "mxpi_dataserialize0" }, |