Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

14
Supercharge your prompt efficiency using embeddings
Post Body

So coming across this post by u/depfakacc, I discovered that you can not only introduce styles and artists that the standard 1.4 model doesn't have, but you can drastically save on your token count. Let's analyze:

For each of the results below, I've used:

Negative Prompt:

((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing))

Steps: 30, Sampler: Euler a, CFG scale: 7.5, Seed: -1, Face restoration: CodeFormer, Size: 512x512, Model hash: 7460a6fa, Model: Standard 1.4.

For the actual prompt, I've used:

"((victorian)) female cowboy dressed as lucky luke, in the style of star wars, digital art by yoji shinkawa and piotr jablonski"

https://preview.redd.it/v3aujlulfdu91.png?width=1024&format=png&auto=webp&s=f4c363ef9bb2be34fcd1b18d33da750123050446

Not bad for a relatively simply prompt! But these can be improved. Notice how this prompt counts for 29 tokens.

After going through the SD textual inversion embeddings created by amazing people (https://cyberes.github.io/stable-diffusion-textual-inversion-models/), I downloaded 4 embeddings I called embed_cartoon_lucky_luke, embed_style_star_wars, embed_artist_yoji_shinkawa and embed_mood_grandiose_jablonski.

Now let's remake the prompt using these embeddings:

"((victorian)) female cowboy dressed as embed_cartoon_lucky_luke, in the style of embed_style_starwars, digital art by embed_artist_yoji_shinkawa and embed_mood_grandiose_jablonski"

https://preview.redd.it/awcz3gwcidu91.png?width=1024&format=png&auto=webp&s=ec8839c8992929d66b82b866b0b45cbc100eafff

So much cooler! I'm using only 19 tokens, which is much more efficient. I'm also getting more precise and chaotic results. This is because embeddings are trained on extremely specific, "supercharged" styles. Definitely extremely useful to use sparingly in cases where you want a specific style/subjet, but finicky when combined all at once.

TL;DR: embeddings are more efficient, precise but potentially more chaotic. Used sparingly, they can drastically improve a prompt.

Enjoy!

Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
555
Link Karma
365
Comment Karma
174
Profile updated: 6 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago