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

OSError: Could not find the necessary safetensors weights in {'text_encoder/pytorch_model.bin', 'text_encoder_2/pytorch_model.bin', 'vae/diffusion_pytorch_model.bin', 'unet/diffusion_pytorch_model.bin'} (variant=None) #62

Open
huanxve opened this issue May 8, 2024 · 5 comments

Comments

@huanxve
Copy link

huanxve commented May 8, 2024

OSError: Could not find the necessary safetensors weights in {'text_encoder/pytorch_model.bin', 'text_encoder_2/pytorch_model.bin', 'vae/diffusion_pytorch_model.bin', 'unet/diffusion_pytorch_model.bin'} (variant=None)

选择Juggernaut,出现如下报错,求解决

@Z-YuPeng
Copy link
Collaborator

Z-YuPeng commented May 8, 2024

git pull 最新的代码 然后 运行
python gradio_app_sdxl_specific_id_low_vram.py

@hyhuc0079
Copy link

用新的代码gradio_app_sdxl_specific_id_low_vram.py下载还是提示,应该不是梯子的原因把全球节点都试了个遍。

huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

https://huggingface.co/RunDiffusion/Juggernaut-XL-v9/blob/main/Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors这个地址也能打开。

@huanxve
Copy link
Author

huanxve commented May 9, 2024

git pull 最新的代码 然后 运行 python gradio_app_sdxl_specific_id_low_vram.py

请问更新以后,之前旧版本在.cache中下载的那些巨大的文件是不是就可以删了?或者把他们移到别的盘里?

@hyhuc0079
Copy link

他默认是调用haggingfacehub加载模型的,你直接删除肯定不行
不过你可以修改models.yaml改成你本地的路径

@shenhongdeng
Copy link

可以先下载stabilityai/stable-diffusion-xl-base-1.0到服务器,然后再运行,下载的话会比较大

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

4 participants