Commit 72b7894c authored by 赵小蒙's avatar 赵小蒙
Browse files

模型输出的layout顺序没有排序,需要后期排序

parent 012a8f15
...@@ -61,6 +61,8 @@ def adjust_layouts(layout_bboxes): ...@@ -61,6 +61,8 @@ def adjust_layouts(layout_bboxes):
larger_layout["layout_bbox"][1] = smaller_layout["layout_bbox"][3] larger_layout["layout_bbox"][1] = smaller_layout["layout_bbox"][3]
else: else:
larger_layout["layout_bbox"][3] = smaller_layout["layout_bbox"][1] larger_layout["layout_bbox"][3] = smaller_layout["layout_bbox"][1]
# todo 排序调整布局边界框列表
# 返回排序调整后的布局边界框列表 # 返回排序调整后的布局边界框列表
return layout_bboxes return layout_bboxes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment