Skip to content

Commit 884ce5e

Browse files
fzharWovchena
andcommitted
Update demos/python_demos/image_inpainting_demo/image_inpainting_demo.py
Co-authored-by: Zlobin Vladimir <[email protected]>
1 parent d1bf364 commit 884ce5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/python_demos/image_inpainting_demo/image_inpainting_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def inpaint_auto(img, args):
9595
top = np.full(img.shape, args.auto_mask[::-1], np.uint8)
9696
mask = cv2.inRange(img, top, top)
9797
mask = cv2.resize(mask, (inpainting_processor.input_width, inpainting_processor.input_height))
98-
_, mask = cv2.threshold(mask,1,1,cv2.THRESH_BINARY)
98+
_, mask = cv2.threshold(mask, 1, 1, cv2.THRESH_BINARY)
9999
mask = np.expand_dims(mask, 2)
100100

101101
img = cv2.resize(img, (inpainting_processor.input_width, inpainting_processor.input_height))

0 commit comments

Comments
 (0)