[Stable Diffusion] Prompt Sharing and Learning Thread

Nano999

Member
Jun 4, 2022
173
74
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
329
1,116
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
173
74
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
329
1,116
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,804
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
173
74
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,804
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
173
74
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,804
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
611
2,568
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
173
74
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)

 

Nano999

Member
Jun 4, 2022
173
74
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.
Well still, on frist load of SD all first checkpoints load faster, than the next ones. Like you load SD, 1st checkpoint 0 sec, 2nd 3 seconds, 3rd 20 sec, 4th 50... etc
Yes, if you load the previous checkpoint it will load fast, but all the new will be loading slower and slower, while I have 0 VRM set to save the hash of checkpoints. I think this setting for hash tend to save hash of checkpoints forever, even if you close SD on the next load you won't need to load hash again. Maybe that's why people have SD .cache file over 100 GB or smth
 
  • Thinking Face
Reactions: Mr-Fox

Sharinel

Active Member
Dec 23, 2018
611
2,568
00051-3760762200.png

Not sure if you were messing about with inpainting here but your entire prompt was

parameters
Rachel Green and Monica Geller
Negative prompt: blurry

which wasn't really that helpful. I just inpainted rachel first and changed the prompt to 'rachel green, jennifer aniston, friends' then swapped over to 'courtney cox, monica geller, friends'

Rachel's head looks weird to me though
 
  • Like
Reactions: Mr-Fox and Elefy

KingBel

Member
Nov 12, 2017
429
3,493
You probably also going to get some 'bleed' of the character properties from one to the other, that's why they both seem to look like a hybrid Rachel-Monica... If you combine some sort of regional prompting (Latent Couple), you might be able to get a better result
 
  • Like
Reactions: Mr-Fox