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

[Bug]: couldnt clone taming transformers

Open RiyadJ opened this issue 2 years ago • 11 comments

Is there an existing issue for this?

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

What happened?

trying to install stable diffusion and automatic1111 for the first time, but it keeps showing me this error even after restarting my pc

Steps to reproduce the problem

  1. Go to stable-diffusion-webui in User
  2. Press webui.bat
  3. wait for cloning taming transformers to start

What should have happened?

should have continued to install the Stable diffusion UI

Commit where the problem happens

4b3c5bc24bffdf429c463a465763b3077fe55eb8

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

venv "C:\Users\Riyad2\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: 4b3c5bc24bffdf429c463a465763b3077fe55eb8 Cloning Taming Transformers into repositories\taming-transformers... Traceback (most recent call last): File "C:\Users\Riyad2\stable-diffusion-webui\launch.py", line 293, in prepare_enviroment() File "C:\Users\Riyad2\stable-diffusion-webui\launch.py", line 237, in prepare_enviroment git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash) File "C:\Users\Riyad2\stable-diffusion-webui\launch.py", line 100, in git_clone run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}") File "C:\Users\Riyad2\stable-diffusion-webui\launch.py", line 49, in run raise RuntimeError(message) RuntimeError: Couldn't clone Taming Transformers. Command: "git" clone "https://github.com/CompVis/taming-transformers.git" "repositories\taming-transformers" Error code: 128 stdout: stderr: Cloning into 'repositories\taming-transformers'... error: 8004 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output

Press any key to continue . . .

RiyadJ avatar Dec 02 '22 22:12 RiyadJ

i have same problem please help

hendsuuu avatar Dec 18 '22 11:12 hendsuuu

same problem :( was a solution found?

HarshiniJK avatar Dec 20 '22 11:12 HarshiniJK

I had the same problem, I cloned the repo manually: git clone https://github.com/CompVis/taming-transformers.git taming-transformers/ and then launch could continue

esteenput avatar Jan 08 '23 21:01 esteenput

Thanks, this worked for me too! For anyone else: don't forget to clone into the "repositories" sub-directory.

glenneroo avatar Jan 21 '23 21:01 glenneroo

I have done everything you guys mentioned, but when I pressed webui.bat, it was still blocked. Could anyone help?

Fetching updates for Taming Transformers... Traceback (most recent call last): File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 360, in prepare_environment() File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 301, in prepare_environment git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash) File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 155, in git_clone run(f'"{git}" -C "{dir}" fetch', f"Fetching updates for {name}...", f"Couldn't fetch {name}") File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 105, in run raise RuntimeError(message) RuntimeError: Couldn't fetch Taming Transformers. Command: "git" -C "repositories\taming-transformers" fetch Error code: 128 stdout: stderr: fatal: unable to access 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/': Recv failure: Connection was reset

KKrumel avatar Feb 20 '23 14:02 KKrumel

I have exactly the same error. Can you please explain in more detail how to fix it?

yuriy777sam avatar Feb 22 '23 08:02 yuriy777sam

@esteenput how to clone a repository manually?

yuriy777sam avatar Feb 23 '23 07:02 yuriy777sam

@yuriy777sam on windows: open git bash, cd to the "repositories" directory under "Stable Diffusion" and run "git clone https://github.com/CompVis/taming-transformers.git taming-transformers/", then re-run launch like before

esteenput avatar Feb 23 '23 07:02 esteenput

i have the same error. when i download the https://github.com/CompVis/taming-transformers.git code by myself, and set it into repositories/taming-transformers then i exe the commond './webui.sh' it check the code and give me a new error like that ' Command: "git" -C "repositories/taming-transformers" checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6 Error code: 128 stdout: stderr: 致命错误:引用不是一个树:24268930bf1dce879235a7fddd0b2355b84d7ea6

' who know the reason?

icegomic avatar Mar 05 '23 04:03 icegomic

i have the same error. when i download the https://github.com/CompVis/taming-transformers.git code by myself, and set it into repositories/taming-transformers then i exe the commond './webui.sh' it check the code and give me a new error like that ' Command: "git" -C "repositories/taming-transformers" checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6 Error code: 128 stdout: stderr: 致命错误:引用不是一个树:24268930bf1dce879235a7fddd0b2355b84d7ea6

' who know the reason?

Is it solved, please?

TCmatj avatar Mar 13 '23 03:03 TCmatj

who know the reason?

I use git clone instead of download, the error is disappeared

huangbinjie avatar Mar 18 '23 09:03 huangbinjie

i have the same error. when i download the https://github.com/CompVis/taming-transformers.git code by myself, and set it into repositories/taming-transformers then i exe the commond './webui.sh' it check the code and give me a new error like that ' Command: "git" -C "repositories/taming-transformers" checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6 Error code: 128 stdout: stderr: 致命错误:引用不是一个树:24268930bf1dce879235a7fddd0b2355b84d7ea6

' who know the reason? 进入stable-diffusion-webui\repositories,删除taming-transformers,重新下载即可

pipilaolongtou avatar Apr 06 '23 08:04 pipilaolongtou

首先cmd 输入 ping github.com, 看是否能链接成功 如果链接不成功 输入//取消http代理 git config --global --unset http.proxy //取消https代理 git config --global --unset https.proxy 并在hosts文件添加 192.30.255.112 github.com git 185.31.16.184 github.global.ssl.fastly.net 保存 并刷新DNS: ipconfig /flushdns 如果是其他情况救不了jie了,坑了一下午

pipilaolongtou avatar Apr 06 '23 08:04 pipilaolongtou

it seems like it might be an internet or antivirus issue. Deactivating my antivirus solved it for me.

Nox259 avatar Apr 11 '23 18:04 Nox259

I had the same problem, I cloned the repo manually: git clone https://github.com/CompVis/taming-transformers.git taming-transformers/ and then launch could continue

where to place the file ?

diklr avatar Apr 28 '23 03:04 diklr

Cloning into '/stable-diffusion-webui/repositories/taming-transformers'...

Footy0604 avatar May 20 '23 04:05 Footy0604

My problems:

error: RPC failed; curl 18 HTTP/2 stream 5 was reset5.00 KiB/s error: 6186 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output ./webui.sh: line 196: cd: stable-diffusion-webui/: No such file or directory

The solution is as follows:

  • 1.To increase the buffer size of the repository, use the command:
git config --global http.postBuffer 524288000

Check if it's set successfully:

git config –list | grep postbuffer
  • 2.The crucial point is that the network environment needs to be relatively fast. If you encounter this problem during the day or night, try running the program again the next morning. I firmly believe it's a network issue.
  • 3.Git, by default, enables SSL verification. To disable SSL verification, use the following commands:
git config --global http.sslVerify "false"
git config --global https.sslVerify "false"

References: https://blog.csdn.net/weixin_41872403/article/details/86769287 https://blog.csdn.net/weixin_67276852/article/details/136519144 More questions: https://zhuanlan.zhihu.com/p/637067918 https://zhuanlan.zhihu.com/p/634887149 I hope this can help everyone

Exixiaozhou avatar Mar 08 '24 01:03 Exixiaozhou