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:
@ -947,7 +947,7 @@ class Generate:
|
|||||||
|
|
||||||
def _create_init_image(self, image: Image.Image, width, height, fit=True):
|
def _create_init_image(self, image: Image.Image, width, height, fit=True):
|
||||||
if image.mode != 'RGBA':
|
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)
|
image = self._fit_image(image, (width, height)) if fit else self._squeeze_image(image)
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user