mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix CLI inpainting crash
This commit is contained in:
parent
104466f5c0
commit
fdf9b1c40c
@ -947,7 +947,7 @@ class Generate:
|
||||
|
||||
def _create_init_image(self, image: Image.Image, width, height, fit=True):
|
||||
if image.mode != 'RGBA':
|
||||
image = image.convert('RGB')
|
||||
image = image.convert('RGBA')
|
||||
image = self._fit_image(image, (width, height)) if fit else self._squeeze_image(image)
|
||||
return image
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user