New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"RuntimeError: Couldn't determine Stable Diffusion's hash" when installing #1888
Comments
I have a similar issue. Everything worked fine yesterday. I've tried a clean install of the repo, but it didn't help.
|
I installed from scratch just now, couldn't reproduce. Do custom models work? |
its working fine if i manually install everything and run with |
It doesn't even get to loading models, it breaks right after you launch "webui" file.
But if I launch "webui-user" file, everything works fine, and I can generate images as usual. |
make sure you are in the venv when doing |
That's what you're supposed to do, thats what everybody does usually.
If you set your python path in webui-user.bat will that allow you to run by clicking? |
Oh, the documentation is somewhat confusing then, in wiki it says: "The installation is finished, to start the web ui, run: python webui.py", and I assumed we work with "webui" files. And it worked fine yesterday, but not today. I'll stick to "user" file then, thanks for clarifying.
Ah, I see, thanks. |
hmm no? the thing that's not working is that it's failing comparing the hashes from what i can tell. |
I've encountered this hash issue too(webui-user.bat updates taming-transformer even though it's already the latest and says its hash is unidentifiable), thus can't initiate the web-ui browser with webui-user.bat. The thing is, you can solve this problem just by reverting the launch.py to the previous version (2nd October).Generating images seems fine, but no guarantee it won't break something. |
I found out that for me the problem was my GIT environment variable wasn't defined, which wasn't a problem before as I manually installed dependencies. In webui-user.bat, I now have this line If you're not sure where your own GIT is installed, you can run "git --exec-path" and add "git.exe" at the end. |
Thanks for replying, but still cant get the latest version working. |
I tried to modify the - stable_diffusion_commit_hash = os.environ.get('STABLE_DIFFUSION_COMMIT_HASH', "69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc")
+ stable_diffusion_commit_hash = os.environ.get('STABLE_DIFFUSION_COMMIT_HASH', "45bf9a6264b3507473e02cc3f9aa36559f24aca2") # Use latest commit hash |
In my case, after running launcher.py, I can find files in the corresponding directory. It seems the only problem is that the command can't get right returncode. So I just ignore this case by adding some code in launcher.py. Now everything just work fine. But you should make sure all the thing right except the returncode. # you can find this code in line 24
if result.returncode != 0 and result.returncode != 1: |
maybe you can upgrade your git version to 2.39.0 |
I just reinstalled Git (https://git-scm.com/download/win) here's a link, and it works just fine |
modify the launch.py def git_clone(url, dir, name, commithash=None):
|
It's too much of a mystery, but this may have fixed it. However, I also tweaked launch.py at the same time and was able to get the commit hash from none. |
still have the issue
|
I changed now it's stuck on
|
I used git\cmd\git.exe Should be git\git-cmd.exe After a reinstall of git and changing that, plus a restart, it works |
A new resolution for me |
Can you get the latest hash when you run the command git -C repositories\stable-diffusion rev-parse HEAD directly?If not,mybe the version of your git is too low to support the command git -C.My git version is 1.8, and I came across the same error as yours.When I update my git to 2.19.0,it works well,no error. |
Check in the properties of the folder under "security" if users have access. Worked for me after granting access. |
If someone tries to use pycharm to debug the launch.py and meet this issue again, here is a solution for me.
As shown in this line, it may use os.environ to get the environment variables, but the output variables are not the same as my environment, I use windows 10. You can check whether this varibles are the same as your system variables. For me, the path of git miss, so I modify this script and add the path to my git. Then the issue is solved. Here is the reference. In run function, add the git path to the os.environ['PATH']
|
update git version to 2.x. |
This because a bug of git version, change the code launch.py "-C" to "-c" can solve this problem addition: git -c "/home/dell/workspace/stable-diffusion-webui/repositories/stable-diffusion-stability-ai" rev-parse HEAD can get the repo`s commit Hash |
I edited launch.py in windows. |
this works for me |
i read someone comment and got my issue resolved by doing this. |
I have fixed it by changing "shell": True into "shell": False in stable-diffusion-webui-directml\modules\launch_utils.py. In this part of code |
I remove all of these as follow in launch_utils.py, it worked |
Running |
Getting stuck at this when trying to setup everything with webui-user.bat.
Any idea what's potentially causing it?
The text was updated successfully, but these errors were encountered: