fix issues with outpaint merge

This commit is contained in:
Lincoln Stein
2022-10-27 18:02:08 -04:00
parent b815aa2130
commit cd5141f3d1
3 changed files with 40 additions and 2 deletions

View File

@ -169,8 +169,12 @@ class Args(object):
def parse_cmd(self,cmd_string):
'''Parse a invoke>-style command string '''
# handle the case in which the first token is a switch
if cmd_string.startswith('-'):
prompt = ''
switches = cmd_string
# handle the case in which the prompt is enclosed by quotes
if cmd_string.startswith('"'):
elif cmd_string.startswith('"'):
a = shlex.split(cmd_string)
prompt = a[0]
switches = shlex.join(a[1:])

View File

@ -42,6 +42,8 @@ class Omnibus(Img2Img,Txt2Img):
)
if isinstance(init_image, Image.Image):
if init_image.mode=='RGBA':
init_image = init_image.convert('RGB')
init_image = self._image_to_tensor(init_image)
if isinstance(mask_image, Image.Image):