Skip to content

Commit

Permalink
Limitation flow mask image filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
habijung committed Nov 28, 2021
1 parent a67bfc8 commit 09b08bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_video_inpainting.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def video_completion_seamless(args):
# Dilate 15 pixel so that all known pixel is trustworthy
flow_mask_img = scipy.ndimage.binary_dilation(mask_img, iterations=15)
# Close the small holes inside the foreground objects
flow_mask_img = cv2.morphologyEx(flow_mask_img.astype(np.uint8), cv2.MORPH_CLOSE, np.ones((21, 21),np.uint8)).astype(np.bool)
# flow_mask_img = cv2.morphologyEx(flow_mask_img.astype(np.uint8), cv2.MORPH_CLOSE, np.ones((21, 21),np.uint8)).astype(np.bool)
flow_mask_img = scipy.ndimage.binary_fill_holes(flow_mask_img).astype(np.bool)
flow_mask.append(flow_mask_img)

Expand Down

0 comments on commit 09b08bc

Please sign in to comment.