Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
fix test_generate_random_bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyu2172 committed May 30, 2017
1 parent 5399257 commit 4bb1efa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

from chainer import testing

from chainercv.utils import generate_bbox
from chainercv.utils import generate_random_bbox


class TestGenerateBbox(unittest.TestCase):
class TestGenerateRandomBbox(unittest.TestCase):

def test_generate_bbox(self):
def test_generate_random_bbox(self):
n = 32
img_size = (128, 256)
min_length = 16
max_length = 48

bbox = generate_bbox(n, img_size, min_length, max_length)
bbox = generate_random_bbox(n, img_size, min_length, max_length)

self.assertIsInstance(bbox, np.ndarray)
self.assertEqual(bbox.shape, (n, 4))
Expand Down

0 comments on commit 4bb1efa

Please sign in to comment.