Base class: TextGenerationPostProcessBase
Model Postprocessing |
Description |
|---|---|
CrnnPostProcess |
CRNN postprocessing |
TransformerPostProcess |
Transformer postprocessing |
postProcessName(config_data, label_path)
postProcessName(config_path, label_path)
Example: CrnnPostProcess(config_data, label_path) or CrnnPostProcess(config_path, label_path)
Parameter |
Type |
Description |
|---|---|---|
config_data |
dict |
Configuration data |
label_path |
str |
Label path |
config_path |
str |
Configuration path |
Corresponding postprocessing object
1 | process(tensor) |
Parameter |
Type |
Description |
|---|---|---|
tensor |
List[base.Tensor] |
Tensor list |
list[TextsInfo]
If the tensor fails to be passed and copied to the host, a runtime exception is thrown.