Skip to content

Commit

Permalink
Update test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dw1010 committed Mar 23, 2023
1 parent 6d23147 commit 5bb0775
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def render(self, params, bg_img=None):
if bg_img is None:
bg_img = np.ones_like(img_out) * 255
else:
bg_img = imgUtils.pad2squre(bg_img)
bg_img = cv.resize(bg_img, (self.render_size, self.render_size))

img_out = img_out * mask_out + bg_img * (1 - mask_out)
Expand Down

0 comments on commit 5bb0775

Please sign in to comment.