Commit 2615205e authored by Yuxin Wu's avatar Yuxin Wu

enforce tuple in BackgroundFiller.fill (fix #407)

parent ba11deed
......@@ -20,11 +20,12 @@ class BackgroundFiller(object):
Return a proper background image of background_shape, given img.
Args:
background_shape: a shape of [h, w]
background_shape (tuple): a shape (h, w)
img: an image
Returns:
a background image
"""
background_shape = tuple(background_shape)
return self._fill(background_shape, img)
@abstractmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment