mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix issues with outpaint merge
This commit is contained in:
@ -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:])
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user