Skip to content

Commit

Permalink
Merge pull request #16 from jaspersiebring/fix/dependabot
Browse files Browse the repository at this point in the history
Bumped current dependencies to tackle all open Dependabot alerts
  • Loading branch information
jaspersiebring authored Jul 20, 2024
2 parents f0c41dd + 2efa9c3 commit 8bf0c82
Show file tree
Hide file tree
Showing 5 changed files with 1,055 additions and 1,058 deletions.
2 changes: 1 addition & 1 deletion geococo/coco_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Annotation(BaseModel):
category_id: int
segmentation: RleDict
area: float
bbox: List[float]
bbox: List[int]
iscrowd: int


Expand Down
2 changes: 1 addition & 1 deletion geococo/coco_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def append_dataset(
continue

rle = cocomask.encode(np.asfortranarray(label_mask))
bounding_box = cv2.boundingRect(label_mask.astype(np.uint8))
bounding_box = list(cv2.boundingRect(label_mask.astype(np.uint8)))
area = np.sum(label_mask)
iscrowd = 1 if isinstance(window_label.geometry, MultiPolygon) else 0

Expand Down
Loading

0 comments on commit 8bf0c82

Please sign in to comment.