Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.66k stars 4.99k forks source link

install failed #360

Open wczdsg opened 7 months ago

wczdsg commented 7 months ago

Cloning Stable Diffusion into D:\software\app\stable-diffusion-webui-1.7.0\repositories\stable-diffusion-stability-ai... Cloning into 'D:\software\app\stable-diffusion-webui-1.7.0\repositories\stable-diffusion-stability-ai'... remote: Enumerating objects: 580, done. remote: Counting objects: 100% (357/357), done. remote: Compressing objects: 100% (126/126), done. error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8) error: 139 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output Traceback (most recent call last): File "D:\software\app\stable-diffusion-webui-1.7.0\launch.py", line 48, in main() File "D:\software\app\stable-diffusion-webui-1.7.0\launch.py", line 39, in main prepare_environment() File "D:\software\app\stable-diffusion-webui-1.7.0\modules\launch_utils.py", line 408, in prepare_environment git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash) File "D:\software\app\stable-diffusion-webui-1.7.0\modules\launch_utils.py", line 192, in git_clone run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True) File "D:\software\app\stable-diffusion-webui-1.7.0\modules\launch_utils.py", line 116, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't clone Stable Diffusion. Command: "git" clone "https://github.com/Stability-AI/stablediffusion.git" "D:\software\app\stable-diffusion-webui-1.7.0\repositories\stable-diffusion-stability-ai" Error code: 128

blackmambaza commented 7 months ago

Increase the buffer size to cater for slower network connections:

git config http.postBuffer 524288000

maifeeulasad commented 4 months ago

By taking @blackmambaza 's answer here is the solution which worked for me:

git clone -c http.postBuffer=524288000 https://github.com/Stability-AI/stablediffusion.git