Explorar el Código

fix: error return typo

许瑞 hace 1 año
padre
commit
d59981499d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      magic_pdf/pre_proc/remove_bbox_overlap.py

+ 1 - 1
magic_pdf/pre_proc/remove_bbox_overlap.py

@@ -64,7 +64,7 @@ def _remove_overlap_between_bboxes(arr):
             else:
                 if v["score"] > res[i]["score"]:
                     keeps[i] = False
-                    res[i] = False
+                    res[i] = None
                 else:
                     keeps[idx] = False
                 drop_reasons.append(drop_reasons)