[StaD] 安裝時遇到無法決定hash

看板AI_Art作者 (Die Nacht)時間1年前 (2023/03/09 23:06), 1年前編輯推噓3(308)
留言11則, 4人參與, 1年前最新討論串1/1
就是安裝的時候遇到很多問題,查過 reddit 也問過 chatgpt 了。 可是還是無法解決。 我自己的電腦是都裝得好好的,可是幫人裝卻遇到很大障礙。 裝置配備大概是 i7-12700F + 3060Ti + 512G SSD。 不過 SSD 之前分割硬碟過,現在看起來是 428G。 真的很想幫他裝起來,有人有解法嗎? 以下是跑 webui-user.bat 的結果。 venv "D:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Commit hash: <none> Traceback (most recent call last): File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 360, in <module> prepare_environment() File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 300, in prepare_environment git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash) File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 151, in git_clone current_hash = run(f'"{git}" -C "{dir}" rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip() File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 105, in run raise RuntimeError(message) RuntimeError: Couldn't determine Stable Diffusion's hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e. Command: "git" -C "repositories\stable-diffusion-stability-ai" rev-parse HEAD Error code: 128 stdout: <empty> stderr: fatal: detected dubious ownership in repository at 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' is on a file system that doesnot record ownership To add an exception for this directory, call: git config --global --add safe.directory 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.129.54.146 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/AI_Art/M.1678374376.A.80F.html

03/09 23:41, 1年前 , 1F
detected dubious ownership in repository
03/09 23:41, 1F

03/10 00:03, 1年前 , 2F
我知道,可是照著很多方法做過都失敗。
03/10 00:03, 2F

03/10 04:30, 1年前 , 3F
解答就是你貼的最後兩行指令
03/10 04:30, 3F

03/10 09:09, 1年前 , 4F
輸入過了,可是他跟我說argument數目應該要是二。
03/10 09:09, 4F

03/10 15:12, 1年前 , 5F
git config --global --add safe.directory *
03/10 15:12, 5F

03/10 23:15, 1年前 , 6F
感謝,我試試看。
03/10 23:15, 6F
C:\Users\oneda>git config --global --add safe.directory error: wrong number of arguments, should be 2 usage: git config [<options>] 還是在說變數要兩個。真的不懂。 ※ 編輯: Gadi (1.162.239.57 臺灣), 03/11/2023 02:04:08

03/11 11:29, 1年前 , 7F
後面的路徑也要加上去呀,兩行是同一個指令要連一起...
03/11 11:29, 7F

03/11 13:35, 1年前 , 8F
我是輸入全部啊QQ cap或手打都做了。
03/11 13:35, 8F

03/11 13:36, 1年前 , 9F
不過最新的一次不是我操作的,我再問問看他有沒有加*。
03/11 13:36, 9F

03/11 21:39, 1年前 , 10F
感恩大大,讚嘆大大!最後只剩 pip install fastapi 而已!
03/11 21:39, 10F

03/11 21:40, 1年前 , 11F
然後終於成功了……
03/11 21:40, 11F
文章代碼(AID): #1a2VNeWF (AI_Art)