diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

Overflow error when using a pretrained repo locally

Open levoz92 opened this issue 1 year ago • 4 comments

Describe the bug

Hi.

Whenever I try to load a model repo locally, I get this following error:

OverflowError: cannot fit 'int' into an index-sized integer

Not exclusive to this because I did get this error before but now I'm getting it for the RealVisXL_V4.0_inpainting. However, when I try to pull the model directly from huggingface, I no longer have this error:

Reproduction

pipe_2 = 'OzzyGT/RealVisXL_V4.0_inpainting'

pipeline_2 = StableDiffusionXLInpaintPipeline.from_pretrained(pipe_2,
                                                              torch_dtype = torch.float16,
                                                              variant = "fp16",
                                                              denoising_end=high_noise_frac,
                                                              vae = vae).to(DEVICE)

Logs

No response

System Info

Latest diffusers built from source

Who can help?

No response

levoz92 avatar Sep 25 '24 22:09 levoz92

Him you need to post more details of your environment, also a fully reproducible snippet that can reproduce the error, since the model is local you can just tell me which one to download, in your example is the inpaint one so no need if that's the model that produces the error.

I load a ton of times models locally so my initial guess is that something is wrong with your environment.

Also, why are you passing denoising_end=high_noise_frac to the from_pretrained?

asomoza avatar Sep 26 '24 02:09 asomoza

I am using Colab.

I downloaded this exact same repo, with its exact same folder structure. Everything is organized the same way. That was suggested to use a refiner, which I didn't include in this snippet.

levoz92 avatar Sep 26 '24 16:09 levoz92

That should make it easier to check if you can share a colab that fails.

asomoza avatar Sep 26 '24 16:09 asomoza

@levoz92 Hello, has this problem been resolved? How was it resolved? :)

yangruigames avatar Oct 23 '24 17:10 yangruigames

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Nov 17 '24 15:11 github-actions[bot]

Marking as closed due to inactivity and because a reproducible code snippet/colab notebook was not provided. Feel free to open the issue if you still require help but we would need a reproducer to assist in any way 🤗

a-r-r-o-w avatar Jan 12 '25 06:01 a-r-r-o-w