add auto-creation of mask for inpainting (#438)

* now use a single init image for both image and mask

* turn on debugging for now to write out mask and image

* add back -M option as a fallback
This commit is contained in:
Lincoln Stein
2022-09-08 07:34:03 -04:00
committed by GitHub
parent a69ca31f34
commit 7996a30e3a
5 changed files with 191 additions and 96 deletions

View File

@ -564,14 +564,9 @@ def create_cmd_parser():
)
parser.add_argument(
'-M',
'--mask',
'--init_mask',
type=str,
help='Path to inpainting mask; transparent areas will be painted over',
)
parser.add_argument(
'--invert_mask',
action='store_true',
help='Invert the inpainting mask; opaque areas will be painted over',
help='Path to input mask for inpainting mode (supersedes width and height)',
)
parser.add_argument(
'-T',