Skip to content

Commit

Permalink
fix parse image size
Browse files Browse the repository at this point in the history
from original PR  google#1025
  • Loading branch information
brothertook committed Jul 2, 2021
1 parent 06d98bc commit 8510704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions efficientdet/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def test_image_size(self):
self.assertEqual(utils.parse_image_size('1280x640'), (640, 1280))
self.assertEqual(utils.parse_image_size(1280), (1280, 1280))
self.assertEqual(utils.parse_image_size((1280, 640)), (1280, 640))
self.assertEqual(utils.parse_image_size({'width': 640, 'height': 1280}), (1280, 640))
self.assertEqual(utils.parse_image_size({'height': 3744, 'width': 5616}), (3744, 5616))

def test_get_feat_sizes(self):
feats = utils.get_feat_sizes(640, 2)
Expand Down

0 comments on commit 8510704

Please sign in to comment.