Created by: jerrywgz
PR types
Function optimization
PR changes
OPs
Describe
Enhance ops related to object detection to support LoD as input. Add RoIsNum for input and output which are dispensable and compatible with inference of previous Paddle version. These new input and output are only used in dygraph detection models which are not released yet.
These ops add new input and output and faster_rcnn_r50_fpn_1x has been verified that the latest paddle version could use the inference model from previous paddle version correctly.
预测兼容性测试:
测试方法: 在PaddleDetection中使用 export_model.py 导出模型,使用deploy/python/infer.py进行预测,对比检测结果。测试模型为faster_rcnn_r50_fpn_1x 其中包含了所有改动涉及到的op
case1: 使用paddle1.8.4版本保存模型,在1.8.4版本和develop版本分别预测 1.8.4版本预测结果: develop版本预测结果:
case2: 使用develop版本保存模型,在1.8.4版本和develop版本分别预测 1.8.4版本预测结果: develop版本预测结果:
测试结论: 新增输入输出是兼容老版本的