stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Fails to start - Transformer issue

Open Boymerkz opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

RuntimeError: Couldn't checkout commit 60e5042ca0da89c14d1dd59d73883280f8fce991 for Taming Transformers. Command: "git" -C repositories/taming-transformers checkout 60e5042ca0da89c14d1dd59d73883280f8fce991 Error code: 128 stdout: stderr: fatal: reference is not a tree: 60e5042ca0da89c14d1dd59d73883280f8fce991

Steps to reproduce the problem

.

What should have happened?

.

Commit where the problem happens

.

What platforms do you use to access UI ?

No response

What browsers do you use to access the UI ?

No response

Command Line Arguments

.

Additional information, context and logs

.

Boymerkz avatar Nov 05 '22 18:11 Boymerkz

Full code:


RuntimeError Traceback (most recent call last) Input In [11], in <cell line: 8>() 5 # Import launch.py which will automatically run the install script but not launch the WebUI. 6 # They require a few specific external git repo commits so we have to do it their way. 7 import launch ----> 8 launch.prepare_enviroment() 10 # The installer isn't installing deepdanbooru right now so we'll do it manually 11 if activate_deepdanbooru:

File /notebooks/stable-diffusion-webui/launch.py:201, in prepare_enviroment() 198 os.makedirs(dir_repos, exist_ok=True) 200 git_clone(stable_diffusion_repo, repo_dir('stable-diffusion'), "Stable Diffusion", stable_diffusion_commit_hash) --> 201 git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash) 202 git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash) 203 git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)

File /notebooks/stable-diffusion-webui/launch.py:88, in git_clone(url, dir, name, commithash) 85 run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}") 87 if commithash is not None: ---> 88 run(f'"{git}" -C {dir} checkout {commithash}', None, "Couldn't checkout {name}'s hash: {commithash}")

File /notebooks/stable-diffusion-webui/launch.py:34, in run(command, desc, errdesc, custom_env) 26 if result.returncode != 0: 28 message = f"""{errdesc or 'Error running command'}. 29 Command: {command} 30 Error code: {result.returncode} 31 stdout: {result.stdout.decode(encoding="utf8", errors="ignore") if len(result.stdout)>0 else ''} 32 stderr: {result.stderr.decode(encoding="utf8", errors="ignore") if len(result.stderr)>0 else ''} 33 """ ---> 34 raise RuntimeError(message) 36 return result.stdout.decode(encoding="utf8", errors="ignore")

RuntimeError: Couldn't checkout {name}'s hash: {commithash}. Command: "git" -C repositories/taming-transformers checkout 60e5042ca0da89c14d1dd59d73883280f8fce991 Error code: 128 stdout: stderr: fatal: reference is not a tree: 60e5042ca0da89c14d1dd59d73883280f8fce991

Boymerkz avatar Nov 05 '22 19:11 Boymerkz

I see a very similar problem with K-diffusion at #4346 . It can't fetch the new hash.

Jonseed avatar Nov 05 '22 19:11 Jonseed