r/StableDiffusion • • Oct 13 '22

[deleted by user]

[removed]

51 Upvotes

33 comments sorted by

14

u/gelukuMLG Oct 13 '22

I did manage to make it work, it's quite simple, you need a folder with photos for training and a txt file with example prompts for the styles of the image, the dataset location is the folder with the images and the other one is the location of the txt file with the example prompts.

1

u/BlenderUser101 Mar 17 '23

Hi, can you explain a little bit more about how to write the example prompts and what should be in there?

0

u/[deleted] Oct 13 '22

[deleted] — view deleted comment

4

u/Yarrrrr Oct 13 '22

You won't get any better results than the colab textual Inversion you already tried.

The benefit is just running it locally.

Hypernetworks haven't given me any better results than textual inversions so far.

If you actually want good results look into dreambooth.

2

u/[deleted] Oct 13 '22

What settings did you train on ?

Because I've definitely seen better results

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/2284

→ More replies (5)

0

u/[deleted] Oct 13 '22

[deleted] — view deleted comment

3

u/[deleted] Oct 13 '22

I wouldn't be so quick to accept that you can't get better results with hypernetworks.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/2284

0

u/[deleted] Oct 13 '22

[deleted] — view deleted comment

3

u/[deleted] Oct 13 '22 edited Oct 13 '22

Well hypernetworks work quite differently from an embedding. NovelAI created hypernetworks. They explain it here.

https://blog.novelai.net/novelai-improvements-on-stable-diffusion-e10d38db82ac

But yes a hypernetwork works without a special initializing word. It's like dreambooth in that sense. A hypernetwork trained with a specific face would try to overlay any face in your image with the trained face.

As for training hypernetworks, it's similar to embeddings but with a crucial difference - a much lower learning rate.

The best results above for style training was with a 0.000005 LR and 15000+ steps. ~20 training images

However, prompts for the image are very important. CLIP interrogator tags didn't work well but Danbooru style tags did, likely because they are so specific.

For faces.. it seemed like a 0.00005 LR and 3000 steps (~20 training images) worked well, but of course you can try with the above settings also. Trying for style with these settings were kind of a coin toss. It worked well for some and it didn't for others

→ More replies (4)
→ More replies (1)

1

u/Loimu Oct 13 '22

But all of this is actually quite extensively detailed in the stable-diffusion-webui's wiki. There is one whole damn section even about the filewords and how to construct them so you saying you just don't know how makes me think that you haven't actually even read the wiki? I really doubt that anyone here is going to write you even more extensive guide and to be fair I am not sure how anyone can explain it any better than what it is already explained right there in the wiki.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion

0

u/[deleted] Oct 13 '22

[deleted] — view deleted comment

1

u/BawkSoup Oct 17 '22 edited Oct 17 '22

Is there a reason why I don't have a train tab? I just updated the web ui via a gitpull code and nothing changed.

Edit: anyone coming by this if you downloaded the ZIP and and not use the git pull you have to redownload the zip and over write the files to update. the git pull will not update if you downloaded it via zip.

0

u/[deleted] Oct 17 '22

[deleted] — view deleted comment

1

u/BawkSoup Oct 17 '22

i edited the webui batch file with a git pull but you can only do that if you originally used a git pull.

1

u/Longjumping_Post7213 Feb 11 '23

1

u/LizardMods Mar 03 '23

you beat me to it lol

0

u/[deleted] Feb 11 '23

[deleted] — view deleted comment

2

u/LizardMods Mar 03 '23

anyways thanks for making the post this should be useful. for anybody willing to go down the rabbit hole.

2

u/huehue_photographer Oct 13 '22

Off-topic question, but how did you uptade it? I was thinking that after the install the uptades are automatically made, need to make "git pull" something like that?

2

u/higgs8 Oct 13 '22

I'd love a wiki or something, I can't figure out how to use it. I just get an error saying RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu). There isn't much to Google because the thing is so new.

2

u/Cyber-Cafe Oct 13 '22

I’m not even sure how to update automatic1111.

5

u/_underlines_ Oct 13 '22 edited Oct 16 '22

git pull

Edit: Thanks for the award

2

u/Cyber-Cafe Oct 13 '22

Oh is that it? My comment mostly served to remind myself to figure it out later. Thank you!

1

u/Otherwise_Concept880 Aug 13 '23

stable diffusion trainjng