AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
135.44k stars 25.86k forks source link

RuntimeError: Couldn't checkout commit 48211a1594f1321b00f14c9f7a5b4813144b2fb9 for BLIP. #15920

Open chrisGao1415 opened 1 month ago

chrisGao1415 commented 1 month ago

Checklist

What happened?

remote: Total 54 (delta 14), reused 54 (delta 14) Unpacking objects: 100% (54/54), 6.93 MiB | 885.00 KiB/s, done. Pruning BLIP Enumerating objects: 54, done. Counting objects: 100% (54/54), done. Delta compression using up to 16 threads Compressing objects: 100% (52/52), done. Writing objects: 100% (54/54), done. Total 54 (delta 14), reused 40 (delta 0), pack-reused 0 (from 0) Checking out commit for BLIP with hash: 48211a1594f1321b00f14c9f7a5b4813144b2fb9... fatal: unable to read tree (48211a1594f1321b00f14c9f7a5b4813144b2fb9) Traceback (most recent call last): File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 48, in main() File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 414, in prepare_environment git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 186, in git_clone run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't checkout commit 48211a1594f1321b00f14c9f7a5b4813144b2fb9 for BLIP. Command: "git" -C "K:\Stable diffusion\stable-diffusion-webui\repositories\BLIP" checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9 Error code: 128 请按任意键继续. . .

Steps to reproduce the problem

remote: Total 54 (delta 14), reused 54 (delta 14) Unpacking objects: 100% (54/54), 6.93 MiB | 885.00 KiB/s, done. Pruning BLIP Enumerating objects: 54, done. Counting objects: 100% (54/54), done. Delta compression using up to 16 threads Compressing objects: 100% (52/52), done. Writing objects: 100% (54/54), done. Total 54 (delta 14), reused 40 (delta 0), pack-reused 0 (from 0) Checking out commit for BLIP with hash: 48211a1594f1321b00f14c9f7a5b4813144b2fb9... fatal: unable to read tree (48211a1594f1321b00f14c9f7a5b4813144b2fb9) Traceback (most recent call last): File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 48, in main() File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 414, in prepare_environment git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 186, in git_clone run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't checkout commit 48211a1594f1321b00f14c9f7a5b4813144b2fb9 for BLIP. Command: "git" -C "K:\Stable diffusion\stable-diffusion-webui\repositories\BLIP" checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9 Error code: 128 请按任意键继续. . .

What should have happened?

remote: Total 54 (delta 14), reused 54 (delta 14) Unpacking objects: 100% (54/54), 6.93 MiB | 885.00 KiB/s, done. Pruning BLIP Enumerating objects: 54, done. Counting objects: 100% (54/54), done. Delta compression using up to 16 threads Compressing objects: 100% (52/52), done. Writing objects: 100% (54/54), done. Total 54 (delta 14), reused 40 (delta 0), pack-reused 0 (from 0) Checking out commit for BLIP with hash: 48211a1594f1321b00f14c9f7a5b4813144b2fb9... fatal: unable to read tree (48211a1594f1321b00f14c9f7a5b4813144b2fb9) Traceback (most recent call last): File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 48, in main() File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 414, in prepare_environment git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 186, in git_clone run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live) File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't checkout commit 48211a1594f1321b00f14c9f7a5b4813144b2fb9 for BLIP. Command: "git" -C "K:\Stable diffusion\stable-diffusion-webui\repositories\BLIP" checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9 Error code: 128 请按任意键继续. . . 2b6aecfde3c672051433763905448bf

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

![Uploading 2b6aecfde3c672051433763905448bf.png…]()

Console logs

remote: Total 54 (delta 14), reused 54 (delta 14)
Unpacking objects: 100% (54/54), 6.93 MiB | 885.00 KiB/s, done.
Pruning BLIP
Enumerating objects: 54, done.
Counting objects: 100% (54/54), done.
Delta compression using up to 16 threads
Compressing objects: 100% (52/52), done.
Writing objects: 100% (54/54), done.
Total 54 (delta 14), reused 40 (delta 0), pack-reused 0 (from 0)
Checking out commit for BLIP with hash: 48211a1594f1321b00f14c9f7a5b4813144b2fb9...
fatal: unable to read tree (48211a1594f1321b00f14c9f7a5b4813144b2fb9)
Traceback (most recent call last):
  File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "K:\Stable diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 414, in prepare_environment
    git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)
  File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 186, in git_clone
    run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
  File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git
    return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
  File "K:\Stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout commit 48211a1594f1321b00f14c9f7a5b4813144b2fb9 for BLIP.
Command: "git" -C "K:\Stable diffusion\stable-diffusion-webui\repositories\BLIP" checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9
Error code: 128
请按任意键继续. . .

Additional information

No response

marigoold commented 3 weeks ago

delete repositories/BLIP and try again, if still not success, consider git clone BLIP and checkout manually