Skip to content

Commit 22ea895

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

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
@@ -92,7 +92,7 @@ def inpaint_auto(img, args):
9292
inpainting_processor.input_height, inpainting_processor.input_width)
9393
else:
9494
# argument comes in RGB mode, but we will use BGR notation below
95-
top = np.full(img.shape, args.auto_mask[::-1], np.uint8)
95+
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))
9898
_, mask = cv2.threshold(mask, 1, 1, cv2.THRESH_BINARY)

0 commit comments

Comments
 (0)