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

[Bug]: Getting an GFPGAN related error when I try to generate

Open mrakgr opened this issue 3 years ago • 4 comments

What happened?

I've followed the instructions here: https://github.com/Sygil-Dev/sygil-webui/blob/master/docs/1.windows-installation.md#gfpgan

KeyError: 'st.session_state has no key "GFPGAN_model". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization'

I put the two .pth files in the /stable-diffusion-webui/models/gfpgan folder. But when I try generate an image, I get the above error.

I wonder if there should be some kind of .yaml file accompanying this? Also have two different version of the model does not feel right.

Much like with LDSR before, I get the GFPGAN error despite not using face restoration.

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

Chrome

Where are you running the webui?

Windows

Custom settings

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

mrakgr avatar Oct 28 '22 10:10 mrakgr

Hey! I had this same problem, my soliton: Go to "Model Manager" tab, and download GFPGAN. This fixed this error for me.

Mikuz avatar Oct 29 '22 12:10 Mikuz

I tried that yesterday, but the download gets stuck. Or maybe it finishes, but I do not get the checkmark. At any rate, and I hope no offense to the lead dev of this project, I've worked around the issue by getting a competitor WebUI.

mrakgr avatar Oct 29 '22 16:10 mrakgr

@mrakgr can you update from the repo and try again to download the model with the model manager? I've improved things a bit and we recently did a merge to master which should include a lot of stuff we had on dev which addressed a lot of issues, maybe yours got fixed, if it's not fixed yet, please send me some log or screenshots so I can try to figure out the issue and fix it, and we are okay with people using other repos as long as they do not just go around spamming or trashing our UI, I also use some other repos for stuff we do not have on our UI so, it's okay, I do try to add every feature I like so everything is under one roof tho.

ZeroCool940711 avatar Oct 29 '22 16:10 ZeroCool940711

It can not find model if not downloaded through Model Manager. For \sygil-webui\models\ldm\stable-diffusion-v1\model.ckpt you can not do that, as it require login. ERROR | 2022-11-06 19:18:10 | ModelManager:download_file:62 - 401 Client Error: Unauthorized for url: https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt

solution: file_name: "Stable Diffusion v1.5.ckpt" (\sygil-webui\configs\webui\userconfig_streamlit.yaml

DrHitman27 avatar Nov 06 '22 09:11 DrHitman27