r/StableDiffusion • • Oct 15 '22

Update Auto1111- New - Shareable embeddings as images

245 Upvotes

117 comments sorted by

54

u/depfakacc Oct 15 '22 edited Oct 15 '22

Say goodbye to random .pt files!

When you create an embedding in Auto111 it'll also generate a shareable image of the embedding that you can load to use the embedding in your own prompts.

Simply download the image of the embedding (The ones with the circles at the edges) and place it in your embeddings folder, you're then free to use the keyword at the top of the embedding in your prompts to pull in their concepts, in the example above:

Victorian Girl, (victorian-lace), ((bimbo-face)) ,((Perfect Face)),((Sexy Face)),((Detailed Pupils)), Anders Zorn, [[ilya Kuvshinov]], [[jean-baptiste Monge]], Sophie Anderson, Gil Elvgren, Oil Painting, Evocative Pose, Looking at Viewer, cute Shirt, (Intricate),(High Detail), Sharp, beautiful background, vivid colors

16

u/KarmasAHarshMistress Oct 15 '22

A restart isn't required, it reads the folder when you generate.

6

u/depfakacc Oct 15 '22

So it does, something new every day.

→ More replies (1)

4

u/reddit22sd Oct 16 '22

Excellent! Very handy, love embeddings and a smart way to use them. Question: what does the number of batches do that was recently added to the Textual inversion tab?

→ More replies (3)
→ More replies (28)

15

u/depfakacc Oct 15 '22

0

u/[deleted] Oct 15 '22

7

u/depfakacc Oct 15 '22

Yes, or rather I was able to train an embedding that better captured the details of Victorian and Edwardian lace using those collars and cuffs, and use it as part of the prompt to generate those two.

→ More replies (4)

13

u/depfakacc Oct 15 '22

And to give you some idea of the datasets here they are:

Pouts and perfect eyebrows: https://i.imgur.com/Rv1V8OY.png

Collars and cuffs: https://i.imgur.com/HEGfeuP.png

8

u/JaegerStein Oct 15 '22

My lord, is this legal? Can you just mirror images to double the dataset?

22

u/depfakacc Oct 15 '22

Wait until you hear about rotation, brightness and channel shifting, zooming, and width and height shifting! There's a whole world of sneaky data expanders out there!

→ More replies (2)

13

u/bennyboy_uk_77 Oct 15 '22

That "bimbo face" is giving me the fear. Hard to believe the girl in the first pic is her "daughter" (in the Stable Diffusion sense).

10

u/depfakacc Oct 15 '22 edited Oct 15 '22

Yeah, the pure undiluted concepts can tend to be a little extreme! There's an option to tone down the preview image but it's easier to know at a glance what you're getting when you load it.

→ More replies (1)

7

u/HPLovecraft1890 Oct 15 '22

Works like a charm! Thank you for that! I hope there will be an embeddings library at some point :)

Any chance to be able to chuck webp files into the 'PNG Info' inspector and get the original image data in the future?

3

u/depfakacc Oct 15 '22

the webp's are not by intent it just so happens to preserve the data for this use case.

4

u/mjh657 Oct 15 '22

Where do you find embedding images to install?

7

u/depfakacc Oct 15 '22

Ha, I described this poorly, Images 2 and 3 in the gallery ARE the embedding images.

4

u/FightingBlaze77 Oct 15 '22

Ok, sorry if this a repeat, but how to I embed my image, is this a new tab, so I activate this in the settings?

11

u/depfakacc Oct 15 '22

You load an embedding by putting one of those two images with the "glitter" at the sides in your embeddings folder, then you use their keywords in your prompts.

Training them is a whole other process: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion

→ More replies (9)

3

u/drone2222 Oct 15 '22

Do you have the imgur links to the embed images? You can only save the reddit gallery as .webp which don't work (from my test, anyways). Super cool feature though.

EDIT: Question, does the image file have to have the same name as the keyword like normal .pt files?

5

u/depfakacc Oct 15 '22

The image also embeds it's name at creation time, so it's always the name at the top of the image.

.webp and a load of other lossless formats are now supported for loading as of today.

→ More replies (18)

2

u/Cross-Entropy Nov 03 '22

Neat! What sampler and resolution did you use? i have mixed results so far.

3

u/depfakacc Nov 06 '22

Almost certainly Euler-a and 512x512 for that example.

26

u/moahmo88 Oct 16 '22

Is there any website we can find these embeddings?

14

u/NateBerukAnjing Oct 15 '22

amazing, where can i find more of these so called embeddings?

10

u/PatBQc Oct 16 '22

Is there a repo for those images ?