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): ...@@ -20,11 +20,12 @@ class BackgroundFiller(object):
Return a proper background image of background_shape, given img. Return a proper background image of background_shape, given img.
Args: Args:
background_shape: a shape of [h, w] background_shape (tuple): a shape (h, w)
img: an image img: an image
Returns: Returns:
a background image a background image
""" """
background_shape = tuple(background_shape)
return self._fill(background_shape, img) return self._fill(background_shape, img)
@abstractmethod @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