basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 468 forks source link

img2img.py stochastic_encode() takes from 3 to 5 positional arguments but 6 were given #91

Open 0ctodice opened 1 year ago

0ctodice commented 1 year ago

image

Hello, I encountered this issue with the img2img.py and img2img_gradio.py.

And sometimes, I encountered the issue : AttributeError: 'UNet' object has no attribute 'sqrt_alphas_cumprod'.

I checked the issue 25 and no, even with the latest version it still doesn't work.

chengyjonathan commented 1 year ago

I ran into the same issue but in the img_inpaint function for the gradio scripts.

chengyjonathan commented 1 year ago

I can get around this by explicitly passing all the args, but I'm not sure if this is the intended behavior