mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Force RGB for img2img
This commit is contained in:
parent
bd8bb8c80b
commit
d05373d35a
@ -29,7 +29,7 @@ class Img2Img(Generator):
|
||||
)
|
||||
|
||||
if isinstance(init_image, PIL.Image.Image):
|
||||
init_image = self._image_to_tensor(init_image)
|
||||
init_image = self._image_to_tensor(init_image.convert('RGB'))
|
||||
|
||||
scope = choose_autocast(self.precision)
|
||||
with scope(self.model.device.type):
|
||||
|
Loading…
Reference in New Issue
Block a user