Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not found the necessary safetensors weights #160

Open
Aaisn opened this issue Aug 30, 2024 · 3 comments
Open

Could not found the necessary safetensors weights #160

Aaisn opened this issue Aug 30, 2024 · 3 comments

Comments

@Aaisn
Copy link

Aaisn commented Aug 30, 2024

Inpaint Anything - ERROR - Could not found the necessary safetensors weights in {'unet/diffusion_pytorch_model.safetensors', 'safety_checker/pytorch_model.bin', 'text_encoder/model.safetensors', 'vae/diffusion_pytorch_model.bin', 'safety_checker/model.safetensors', 'unet/diffusion_pytorch_model.bin', 'text_encoder/pytorch_model.bin', 'vae/diffusion_pytorch_model.safetensors'} (variant=None)

@Uminosachi
Copy link
Owner

Could you please specify the model name you are using? The error is likely occurring because the repository doesn't include safetensors. This is because the model is being loaded with use_safetensors=True.

@Aaisn
Copy link
Author

Aaisn commented Sep 1, 2024

im using uminosachi/realisticVisionV51_v51VAE-inpainting (inpainting model ID). i used inpaint anything in 2023 or early 2024 and it works properly. now i did the same things and get this result (if i remember correcty, few month ago it worked but the result is pure full black image)

This is because the model is being loaded with use_safetensors=True.

any idea on how to turn it off/on?

@Uminosachi
Copy link
Owner

Please try the following:

  • Delete the models--Uminosachi--realisticVisionV51_v51VAE-inpainting folder located under .cache/huggingface/hub in your home directory, then try running the inpainting again.
  • If the issue persists, delete the venv folder under stable-diffusion-webui, and then run webui.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants