Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.83k stars 5.01k forks source link

RuntimeError: upsample_nearest_nhwc only supports output tensors with less than INT_MAX elements #246

Open AItechnology opened 1 year ago

AItechnology commented 1 year ago

I got such a bug when I use StableDiffusionInpaintPipeline of stable-diffusion-2-inpainting

aneesurhashmi commented 1 year ago

I am also having this issue. A quick fix for me was to reduce the batch size. However, it will be great if the actual reason/bug behind this issue is discussed.

ryx19th commented 1 year ago

This solution https://github.com/huggingface/diffusers/issues/2306 seems to work