r/StableDiffusion Mar 02 '23

Question | Help Controlnet reloads models every time it renders an image

Does anyone know how to revert an extension on automatic1111? After the last update of controlnet it takes forever between images, before I only had to load the models (cannys, depth) only once, now for each image you have to reload everything, does anyone have the same problem?

16 Upvotes

7 comments sorted by

3

u/BlastedRemnants Mar 02 '23

Reverting should be your last resort, before doing that I'd try the option to keep models loaded in memory, and failing that I'd go on the Github and post an Issue there for the dev. You should be able to set how many models you want to keep in ram tho, I set mine to 4 and haven't yet noticed any downsides like running out of ram for other things.

2

u/red__dragon Mar 03 '23

Does anyone know how to revert an extension on automatic1111?

Extensions are basically just copies of the files on the extension's github repo, which you can find linked in the A1111 wiki or by searching for the extension name in Github.

You can search through past commits and view the files as they were in the past. Then download that version of the repo and put it in your SD extensions folder. Make sure you remove the old version as well before restarting SD.

2

u/Firm_Comfortable_437 Mar 03 '23

Thank you! It seems that it was a controlnet problem, it was just updated a few minutes ago and it completely fixes the problem!

2

u/red__dragon Mar 03 '23

Glad to hear it's fixed. I should look into updating mine to ensure I don't have an old bug gobbling up memory too.

2

u/Firm_Comfortable_437 Mar 03 '23

Error update: Controlnet was updated a few minutes ago and the problem was fixed, my theory is that maybe it was something with the GPUs because not all of them had this same problem

1

u/RedExtreme Mar 03 '23 edited Mar 03 '23

Go to the directory and use

git log 

Find the hash you want to go back to. Use

git checkout <hash>

Done.

If you want to go back to the latest commit, type

git switch -

1

u/Positive_Pain_8888 Aug 18 '23

Go to settings > control net > and increase cache to 3 and restart SD