Skip to content

Commit

Permalink
fix slicing tests (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcakyon authored Dec 19, 2022
1 parent 0d465d7 commit ce6926a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sahi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.11.6"
__version__ = "0.11.7"

from sahi.annotation import BoundingBox, Category, Mask
from sahi.auto_model import AutoDetectionModel
Expand Down
2 changes: 1 addition & 1 deletion tests/test_slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_shift_bboxes(self):
self.assertEqual(type(shifted_bboxes), torch.Tensor)

def test_shift_masks(self):
masks = np.zeros((3, 30, 30), dtype=np.bool)
masks = np.zeros((3, 30, 30), dtype=bool)
shift_x = 10
shift_y = 20
full_shape = [720, 1280]
Expand Down

0 comments on commit ce6926a

Please sign in to comment.