r/StableDiffusion • • Oct 11 '22
Automatic1111 just added support for hypernetwork training. Can we get people experimenting with this ?
Here - https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion#hypernetworks
According to https://blog.novelai.net/novelai-improvements-on-stable-diffusion-e10d38db82ac, this may rival results of dreambooth with a lot more convenience. I can't start right away right now but maybe some in the community can. Try this with faces and styles.
149
Upvotes
10
u/Jellybit Oct 11 '22
Oh no. It's Dreambooth all over again.
27
u/Striking-Long-2960 Oct 11 '22 edited Oct 11 '22
Hypernetworks is a novel (get it?) concept for fine tuning a model without touching any of its weights
Like a boss.
Which are the RAM requirements?
3
u/MrMeeee-_ Oct 12 '22
anyone know how to use hypernetworks with Auto's GUI?
29
u/vic8760 Oct 12 '22
Some info from Thomas on GitHub
Here are the different technologies
Textual Inversion - trains a word with one or more vectors that approximate your image. So if it is something it already has seen lots of examples of, it might have the concept and just need to 'point' at it. It is just expanding the vocabulary of model but all information it uses is already in the model.
Dreambooth - this is essentially model fine tuning, which changes the weights of the main model. Dreambooth differs from typical fine tuning in that in tries to keep from forgetting/overwriting adjacent concepts during the tuning.
Hypernetworks - this is basically an adaptive head - it takes information from late in the model but injects information from the prompt 'skipping' the rest of the model. So it is similar to fine tuning the last 2 layers of a model but it gets much more signal from the prompt (it is taking the clip embedding of the prompt right before the output layer).
3
u/neoplastic_pleonasm Oct 12 '22 edited Oct 12 '22
Just tried it with ~20 photos, a learning rate of 0.000005 and 9000 steps. It started to converge very quickly on images that roughly resembled the subject, but failed to get any better. I'm going to cut the learning rate and try again.
edit: still training, but it doesn't seem to be getting better...
1
u/Tormound Oct 12 '22
Is there like a guide for this? Just very recently got into stable diffusion and this is all very confusing but also very interesting if hypernetwork does what I think it does.
1
u/BlinksAtStupidShit Oct 12 '22
Also as a follow up anyone know if a hypernetwork colab exists?
1
u/NebSH83 Oct 13 '22
Is there possibility to export the training from the automatic webui to a CPKT file (to use in other notebook) ?
3
u/MrLunk Oct 12 '22
Could anyone please make a video about how this works...
1
u/BlinksAtStupidShit Oct 12 '22 edited Oct 12 '22
What’s the video memory requirement for this? I was able to get away with 6GB of VRAM with the previous automatic install for Textual Inversion, a bug has increased the VRAM requirement so I can’t use TI with the latest version.
2
u/JoshS-345 Oct 12 '22
In practice what it seems to mean is that unlike Stable Diffusion, you can list a bunch of tags and NovelAI will honor them all.
But that obviously depends on the data being tagged.
We can't retroactively tag every thing in LAION right?
0
u/[deleted] Oct 11 '22
[deleted] — view deleted comment