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

refine transforms_tests/bbox_tests #689

Merged
merged 2 commits into from
Sep 18, 2018
Merged

Conversation

knorth55
Copy link
Contributor

@knorth55 knorth55 commented Sep 8, 2018

No description provided.

@knorth55 knorth55 added this to the 0.11 milestone Sep 8, 2018


class TestFlipBbox(unittest.TestCase):

def test_flip_bbox(self):
bbox = np.random.uniform(
low=0., high=32., size=(10, 4))
bbox = generate_random_bbox(10, (32, 32), 0, 32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using non-square images.



class TestResizeBbox(unittest.TestCase):

def test_resize_bbox(self):
bbox = np.random.uniform(
low=0., high=32., size=(10, 4))
bbox = generate_random_bbox(10, (32, 32), 0, 32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto



class TestTranslateBbox(unittest.TestCase):

def test_translate_bbox(self):
bbox = np.random.uniform(
low=0., high=32., size=(10, 4))
bbox = generate_random_bbox(10, (32, 32), 0, 32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@knorth55
Copy link
Contributor Author

Updated

@yuyu2172 yuyu2172 merged commit 94c8b9d into chainer:master Sep 18, 2018
@knorth55 knorth55 deleted the refactor-test branch September 18, 2018 05:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants