[Stable Diffusion] Prompt Sharing and Learning Thread

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
My bad, was using x/y/z script, didn't know about the other one.
I don't even have x/y script there

Might it be something wrong with the checkpoints?
I just tested the other 5 checkpoints and see no such issue
Impossible for anyone to know. Go to Extensions tab and press "check for updates" then "apply and restart".
Now all extensions are updated. It's a good idea to do this with regular intervals. If SD is acting strange it could be a sign that it's time to do a full reboot. Meaning closing the cmd window and do a git pull, then update the extensions.
If it still is acting strange then it's reinstall that is next step by doing a git clone. Then git pull and updating extensions.
If it still is not resolving the issue, the next step is to post a message in issues on github and ask on Stable Diffusion Reddit thread. You can also ask the authors of the checkpoints on civitai.
I hope it helped...
 

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
My random seed (-1) is not working now, no matter what I do
It generates the image and then the second image +1 to the seed, no matter of the settings

I've pressed Unload SD checkpoint to free VRAM and renamed some checkpoints before doing it.

what's wrong with it?

View attachment 2615087 View attachment 2615088
You have set batch count 2.. If you set it to 1 it will work like normal again.
 
  • Like
Reactions: Jimwalrus

Nano999

Member
Jun 4, 2022
155
69
I thought that was how batches have always worked? Certainly that's how it's always worked for me i.e. the first image is a random seed, every subsequent image in the same batch is +1 to the seed.
Oh yeah, you are right, I become paranoid with this weird checkpoint bug


Impossible for anyone to know. Go to Extensions tab and press "check for updates" then "apply and restart".
Now all extensions are updated. It's a good idea to do this with regular intervals. If SD is acting strange it could be a sign that it's time to do a full reboot. Meaning closing the cmd window and do a git pull, then update the extensions.
If it still is acting strange then it's reinstall that is next step by doing a git clone. Then git pull and updating extensions.
If it still is not resolving the issue, the next step is to post a message in issues on github and ask on Stable Diffusion Reddit thread. You can also ask the authors of the checkpoints on civitai.
I hope it helped...
Git pull, git clone?
 
  • Like
Reactions: Jimwalrus

Jimwalrus

Active Member
Sep 15, 2021
931
3,423
Oh yeah, you are right, I become paranoid with this weird checkpoint bug




Git pull, git clone?
Or just whack the words "git pull" (no quotes) at the start of your Webui.bat file and restart. That does most of the git updating stuff for you. Whether you like it or not sometimes...
 
  • Like
Reactions: Mr-Fox

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
It was there before:

Echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--no-half-vae
git pull
call webui.bat
Git clone is how you install SD Auto1111.. By typing cmd in the root folder, meaning inside a folder named Stable Diffusion and in the file adress field type "cmd" then paste: git clone . and run it.
 
  • Like
Reactions: Nano999

Nano999

Member
Jun 4, 2022
155
69
Btw is there a setting allowing to Unload SD checkpoint to free VRAM each time you change checkpoints?
I don't know how it works when you have like 50 checkpoints in XYZ, will it unload weights by itself once VRAM is full or no?
Because the loading time of every new checkpoint is increased and I wanted to unload it every time checkpoint changes.
 

devilkkw

Member
Mar 17, 2021
308
1,053
in Settings,Stable diffusion put these value a 0:

Checkpoints to cache in RAM

VAE Checkpoints to cache in RAM
 

Nano999

Member
Jun 4, 2022
155
69
in Settings,Stable diffusion put these value a 0:

Checkpoints to cache in RAM

VAE Checkpoints to cache in RAM
Hm, they were set to 0
Then I don't understand.

e.g. check point #1 need 15 sec to load, checkpoint #2 loading time will increase to 60 sec, checkpoint #3 160 sec.
but if I restart SD checkpoint #3 will load in 6 seconds. So why we have this load time increase? And can it be decreased?

 
Last edited:

devilkkw

Member
Mar 17, 2021
308
1,053
this is really strange. i get difference in loading time only when checkpoint is new and sd have to calculate hash.
Otherwise all models is loaded in about 15 sec.
These issue maybe come for some extension.
I've removed for example an extension for making 360 image( don't remember correct name), because it affected all sd work: from time for loading model to max size for generation.
Check if your extension is up to date, or try to move in other folder to run without it and check time loading.
If you have same issue, problem is something other, but if issue vanish is surely some extension.
 

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
If a checkpoint is new and SD needs to calculate hash and "stuff" it's not strange if it would be a longer load time and then after a shorter load time imo. I think it's just normal and you didn't notice before.
 

Nano999

Member
Jun 4, 2022
155
69
If a checkpoint is new and SD needs to calculate hash and "stuff" it's not strange if it would be a longer load time and then after a shorter load time imo. I think it's just normal and you didn't notice before.
How to save the hash? I mean it feels like it deletes the hash every time on exit or smth, so once I open SD again it processing checkpoints for some time, like on the pic below. 1st checkpoint is fast, all the next will be with increased processing time, 60, 120, 180 sec or smth
 

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
I have not observed this, though I haven't looked. Sorry I don't know enough to be able to help. Hopefully some one else knows more and have an idea.
 

Nano999

Member
Jun 4, 2022
155
69
I tried to use , but when on img2img tab in the script field I did not find R-ESRGAN 4x+ upscaler to check

But in the settings it should be there, it's checkmarked:


So what's the deal?
 
  • Thinking Face
Reactions: Mr-Fox

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,794
I tried to use , but when on img2img tab in the script field I did not find R-ESRGAN 4x+ upscaler to check

But in the settings it should be there, it's checkmarked:


So what's the deal?
Did you restart ?:unsure:
 

Sharinel

Active Member
Dec 23, 2018
519
2,151
How to save the hash? I mean it feels like it deletes the hash every time on exit or smth, so once I open SD again it processing checkpoints for some time, like on the pic below. 1st checkpoint is fast, all the next will be with increased processing time, 60, 120, 180 sec or smth
Just in case you think you are going mad, this happens to me as well. And from what I can see the 1st checkpoint isn't fast, it is incorporated in the startup of SD so you don't really notice it.
 
  • Like
Reactions: Mr-Fox

Nano999

Member
Jun 4, 2022
155
69
Did you restart ?:unsure:
Yea
Also it dissapeared from txt2img, but I can load it from PNG info page to txt2img, like with NMKD example here:
(I noticed it before, but did not pay any attention as I alway use PNG info to load settings)