Use --skip-version-check commandline argument to disable this check.==============================================================================Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors2%|█▌| 86.5M/3.97G [01:44<1:20:22, 866kB/s]Calculating sha256 for D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors: preload_extensions_git_metadata for 7 extensions took 0.00s9351bb829b90c2645b2c0f0860aea4b319b69c59544a4bf5120965c33034940cLoading weights [9351bb829b] from D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensorsloading stable diffusion model: SafetensorErrorTraceback (most recent call last):File "threading.py", line 973, in _bootstrapFile "threading.py", line 1016, in _bootstrap_innerFile "threading.py", line 953, in runFile "D:\code\ai\sd.webui\webui\webui.py", line 306, in load_modelshared.sd_model# noqa: B018File "D:\code\ai\sd.webui\webui\modules\shared.py", line 726, in sd_modelreturn modules.sd_models.model_data.get_sd_model()File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 422, in get_sd_modelload_model()File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 455, in load_modelstate_dict = get_checkpoint_state_dict(checkpoint_info, timer)File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 271, in get_checkpoint_state_dictres = read_state_dict(checkpoint_info.filename)File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 250, in read_state_dictpl_sd = safetensors.torch.load_file(checkpoint_file, device=device)File "D:\code\ai\sd.webui\system\python\lib\site-packages\safetensors\torch.py", line 259, in load_filewith safe_open(filename, framework="pt", device=device) as f:safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBufferStable diffusion model failed to loadApplying attention optimization: Doggettx... done.Traceback (most recent call last):File "D:\code\ai\sd.webui\webui\launch.py", line 38, in main()File "D:\code\ai\sd.webui\webui\launch.py", line 34, in mainstart()File "D:\code\ai\sd.webui\webui\modules\launch_utils.py", line 344, in startwebui.webui()File "D:\code\ai\sd.webui\webui\webui.py", line 390, in webuiapp, local_url, share_url = shared.demo.launch(File "D:\code\ai\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1806, in launchraise ValueError(ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
1、改成手动下载文件,注意要想删除D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
文件,每个人路径不一样,看上面的错误日志是上面地址。
2、删除后手动下载,并移动到D:\code\ai\sd.webui\webui\models\Stable-diffusion\
路径下,同样要根据日志改成你的地址。
3、从这个地址下载文件,https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors,注意后续的地址可能不一样,具体地址看报错里面的。
image.png