Skip to content

Commit

Permalink
Check Nonetype in Chipper bounding box (#328)
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Jimeno Yepes <[email protected]>
  • Loading branch information
ajjimeno and ajjimeno authored Mar 13, 2024
1 parent 4225a13 commit fc3f38c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 0.7.25-dev0
## 0.7.25-dev1

* bug: check for None in Chipper bounding box reduction
* chore: removes `install-detectron2` from the `Makefile`

## 0.7.24
Expand Down
2 changes: 1 addition & 1 deletion unstructured_inference/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.25-dev0" # pragma: no cover
__version__ = "0.7.25-dev1" # pragma: no cover
2 changes: 2 additions & 0 deletions unstructured_inference/models/chipper.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ def resolve_bbox_overlaps(
continue

ebbox1 = element.bbox
if ebbox1 is None:
continue
bbox1 = [ebbox1.x1, ebbox1.y1, ebbox1.x2, max(ebbox1.y1, ebbox1.y2)]

for celement in elements:
Expand Down

0 comments on commit fc3f38c

Please sign in to comment.