部署出现这样的代码请问要怎么做?
venv "D:\S D\AI\stable-diffusion-webui\venv\Scripts\Python.exe"Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec6 2022, 20:01:21)
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
File "D:\S D\AI\stable-diffusion-webui\launch.py", line 369, in <module>
prepare_environment()
File "D:\S D\AI\stable-diffusion-webui\launch.py", line 302, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "D:\S D\AI\stable-diffusion-webui\launch.py", line 162, in git_clone
run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
File "D:\S D\AI\stable-diffusion-webui\launch.py", line 111, in run
raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\S D\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
请按任意键继续. . .
网路原因,改dns为8.8.8.8,或者切全局代理,换节点,都可以试试 Walmart9035 发表于 2023-5-23 10:47
网路原因,改dns为8.8.8.8,或者切全局代理,换节点,都可以试试
直接改魔法上网重新运行就行么? 云蚁丫丫 发表于 2023-5-23 11:22
直接改魔法上网重新运行就行么?
是的,你试试,还不行的话记得切全局代理,或者改下代理的dns,改成googleDNS就行 Walmart9035 发表于 2023-5-23 17:02
是的,你试试,还不行的话记得切全局代理,或者改下代理的dns,改成googleDNS就行 ...
全局代理怎么切呢?我小白一个 先确保git环境没问题,python或者conda环境没问题
然后这种情况大概率是网的问题,多试几次,试了几十次就通过了
如果还不行,就用翻墙软件,我就是多试了几次就通过了
页:
[1]