lkwq007 / stablediffusion-infinity

Outpainting with Stable Diffusion on an infinite canvas
Apache License 2.0
3.82k stars 300 forks source link

__call__() got an unexpected keyword argument 'init_image' #176

Closed Ema81xsd closed 1 year ago

Ema81xsd commented 1 year ago

the WebUI loads but then as soon as I outpaint it gives me this error, I tried with different gpus but it is the same

Ema81xsd commented 1 year ago

by the way this is happening only when I outpaint on top of an existing image, if I outpaint in a region of the canvas where there are no pixel selected it will create an image.

lkwq007 commented 1 year ago

Seems that diffusers changes its API (https://github.com/huggingface/diffusers/blob/a66f2baeb782e091dde4e1e6394e46f169e5ba58/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py#L408).

Fixed with the latest commit.

Ralph224 commented 1 year ago

I have the same error. How do you fix it? I've tried copy/paste the whole code for pipeline_stable_diffusion_inpaint_legacy.py as shown in the link here but it doesn't work.

sudhirpratapyadav commented 1 year ago

No need to copy paste anything, replace init_image parameter used in StableDiffusionImg2ImgPipeline.pipe to image.

If you are using ready made code, search init_image and replace it with image wherever it is used inside pipe() function