vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.56k stars 409 forks source link

[Feature]: Extra Networks - Trigger Words/Trained Words Button #1730

Closed xedis closed 1 year ago

xedis commented 1 year ago

Feature description

Many LoRA, LyCORIS, TI have "trigger words" listed in CivitAI's posts Can we modify one of the icons to paste the trigger words? In the API response it should be trainedWords. Confirmed found in civitapi model info https://github.com/civitai/civitai/wiki/REST-API-Reference#response-fields-2 image

image

Potential implementations depending on preference and well, complexity:

1 . Take the place of the Description buttons? I don't think they have ever provided any use for me personally. Unsure if others leverage them tho.

  1. Make it a second click paste into prompt: ex. First click = "" 2nd click: "alucard, serasVictoria, integraHellsing" 3rd Click: removes "" 4th click: removes "alucard, serasVictoria, integraHellsing"

Since I myself am useless when it comes to writing fresh chunks of code, I can be of little use in developing this especially js, however this chunk of code from the civitai_helper.js may be of some use https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper/blob/920ca3267f789a72e3225c99f069bf0be0db795d/javascript/civitai_helper.js#L636

Version Platform Description

No response

gsgoldma commented 1 year ago

this used to be a feature of the extension civitai helper, but since about a week and a half ago, there was a commit here that broke it.

vladmandic commented 1 year ago

Let's not mix things up, this is a valid feature request totally regardless of CivitAi and especially of CivitAi helper extension.

EfourC commented 1 year ago

Regarding activation text, I think it might be worth bringing in A1111's recent changes that created a modal popup to view various metadata, including tags listed in the model file.

It allows the user to construct and save what the default activation text will be, either manually typing it or by clicking on the individual tags to build it up.

The current limitation it has is that it only pull tags from the model file's metadata, and doesn't look for civitai.info files (or other sources, to generalize).

Besides the ability to save custom activation text, I think it would be great to add an additional section of tags for each available data source (e.g. Civitai) -- the model file's metadata may not exist (meaning no tags), and the other sources could have useful tags/phrases that work well with the extra network.

The natural drawback of the new A1111 modal interface is that it does require the user to explicitly save the activation text for each model. However, the previous defacto standard of relying on Civitai Helper was very limited anyway (Civitai's 'trainedWords' are prone to all the classic problems of relying on the uploader to fill it out properly, and are still just suggestions).

For reference, here is a screenshot of the popup interface after clicking 'edit metadata': (Edit: Made collapsible)

Click to expand screenshot ![VYTGzzdW25](https://github.com/vladmandic/automatic/assets/121468033/742bfbbf-5849-4aa0-aa6c-84a5ea56011c)

I really love how you've created the directory list on the left side so far, and I think incorporating the above too would be a huge step in usability. Even before SDNext I was always frustrated at Civitai Helper's limits on the activation text (especially if the model doesn't exist on their site anyway).

vladmandic commented 1 year ago

i've added basic functionality - name/aliases/tags are displayed as card title and there is one extra button that adds/removes tags to prompt. it could be done much nicer from ui perspective, but don't have time right now. btw, i hate a1111 colorful tag display with counts. not to mention its veeery slow - ask ppl that have few hundred loras.

EfourC commented 1 year ago

btw, i hate a1111 colorful tag display with counts. not to mention its veeery slow - ask ppl that have few hundred loras.

Fair enough, I hadn't tested it for performance yet at all. With slowdowns.. I'd pass too.

I just looked again and noticed it also seems to break apart phrases by spaces (in some cases) into individual tags where it doesn't make sense (like separating 'artist style' into two tags).

vladmandic commented 1 year ago

i'll check on that. problem is that there is no clear tag in safetensors metadata, it involves some string parsing.

EfourC commented 1 year ago

Here's an example as a case-study, if it's helpful. It's tricky to come up with an interface that can handle it.

墨心 MoXin 1.0 https://civitai.com/models/12597?modelVersionId=14856

Model metadata (ss_tag_frequency):

(Click to expand...) ```JSON "ss_tag_frequency": { "100_shuimosuxiebysim": { "fubaoshi a women sitting nexto to a tree": 1, "fubaoshi a painting of three women in a forest": 1, "fubaoshi a painting of a group of women in a forest": 1, "fubaoshi a painting of a woman playing a pipa": 1, "shuimosuxiebysim a lineart drawing of a girl with a short hair": 1, "shuimosuxiebysim a lineart drawing of a girl with a ponytail": 1, "shuimosuxiebysim a lineart drawing of a woman": 1, "shuimosuxiebysim a lineart drawing of a woman with long hair": 5, "shuimosuxiebysim a lineart drawing of a drawing of a woman with twintail": 1, "shuimosuxiebysim a lineart drawing of a girl with ponytail": 1, "shuimosuxiebysim a lineart drawing of a drawing of a girl with necklace": 1, "shuimosuxiebysim a lineart drawing of a girl with a hand on her chin": 1, "shuimosuxiebysim a lineart drawing of a woman with hand on her chin": 1, "shuimosuxiebysim a drawing of a woman with long dress is sitting": 1, "shuimosuxiebysim a drawing of a woman sitting on the ground": 1, "shuimosuxiebysim a drawing of a woman in a kimono is holding a some food": 1, "shuimosuxiebysim a drawing of a woman kneeling down with her hands on her knees": 1, "shuimosuxiebysim a drawing of a girl with long hair": 1, "shuimosuxiebysim a drawing of a girl bending over with her head down": 1, "shuimosuxiebysim a drawing of a girl in a school uniform": 1, "shuimosuxiebysim a drawing of a woman in a dress": 1, "shuimosuxiebysim a drawing of a girl sitting on the ground": 1, "shuimosuxiebysim a drawing of a woman standing on a beach": 1, "shuimosuxiebysim a drawing of a woman in a dress and hat": 1, "shuimosuxiebysim a drawing of a woman in a hanfu and hair ornaments sitting on the ground": 1, "shuimosuxiebysim a drawing of a woman sitting on the ground": 1, "shuimosuxiebysim a drawing of a woman carrying a backpack": 1, "shuimosuxiebysim a drawing of a girl sitting at a desk": 1, "shuimosuxiebysim a drawing of a woman laying on a bed with a plate of food": 1, "shuimosuxiebysim a drawing of a drawing of a woman with long hairs": 1, "shuimosuxiebysim a drawing of a girl with long hair": 5, "shuimosuxiebysim a lineart drawing of a woman laying in bed": 1, "shuimosuxiebysim a lineart drawing of a woman with a hat on": 1, "shuimosuxiebysim a lineart drawing of a woman with a bun on her head": 1, "shuimosuxiebysim a lineart drawing of a woman with long hair": 2, "shuimosuxiebysim a drawing of a woman with a red tuan-shan fan in her hand": 1, "shuimosuxiebysim a lineart drawing of a woman with a hairdo": 1, "shuimosuxiebysim a lineart drawing of a girl with a bow on her head": 2, "shuimosuxiebysim a lineart drawing of a woman with a bow on her head": 2, "shuimosuxiebysim a drawing of a woman in a black dress and stockings": 1, "shuimosuxiebysim a drawing of a girl lying on a couch with presents": 1, "shuimosuxiebysim a lineart drawing of a woman holding a flower": 3, "shuimosuxiebysim a drawing of a woman with a mask on": 1, "shuimosuxiebysim a drawing of a woman sitting on a bed with a book": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman with long hair": 1, "shuimosuxiebysim a drawing of a woman with long hair": 5, "shuimosuxiebysim a drawing of a woman with a flower in her hair": 1, "shuimosuxiebysim a drawing of a woman in a black latex holding a spear": 1, "shuimosuxiebysim a drawing of a girl with a bow on her head": 2, "shuimosuxiebysim a drawing of a drawing of a woman in a skirt and a shirt": 1, "shuimosuxiebysim a drawing of a woman with a ponytail is looking away": 1, "shuimosuxiebysim a drawing of a woman with her arm on her head": 1, "shuimosuxiebysim a drawing of a girl with a blue shirt": 1, "shuimosuxiebysim a woman in a black dress holding a knife": 1, "shuimosuxiebysim a lineart drawing of a woman laying on a bed": 1, "shuimosuxiebysim a drawing of a drawing of a woman sitting on a chair": 1, "shuimosuxiebysim a drawing of a drawing of a woman with long hair": 2, "shuimosuxiebysim a drawing of a woman holding a bouquet of flowers": 1, "shuimosuxiebysim a drawing of a woman sitting on a motorcycle with a mountain in the background": 1, "shuimosuxiebysim a drawing of a woman with a necklace on her neck": 1, "shuimosuxiebysim a drawing of a woman in a blue dress is holding a tuan-shan fan": 1, "shuimosuxiebysim a drawing of a woman in a red corset": 1, "shuimosuxiebysim a lineart drawing of a man on a motorcycle": 1, "shuimosuxiebysim a drawing of a drawing of a woman with a jacket open": 1, "shuimosuxiebysim a drawing of a drawing of a woman sitting on the ground holding a large pillow": 1, "shuimosuxiebysim a drawing of a woman with long hair": 3, "shuimosuxiebysim a drawing of a woman in a blue dress holding a fan": 1, "shuimosuxiebysim a drawing of a drawing of a woman in armor": 1, "shuimosuxiebysim a drawing of a girl in a school uniform holding a knife": 1, "shuimosuxiebysim a drawing of a woman in motocycle holding a bubble tea": 1, "shuimosuxiebysim a drawing of a woman with tattos on her arm": 1, "shuimosuxiebysim a drawing of a woman sitting on a bed with a book": 1, "shuimosuxiebysim a drawing of a girl sitting on a couch eating a sandwich": 1, "shuimosuxiebysim a drawing of a girl with a cat ear": 1, "shuimosuxiebysim a drawing of a girl with a necklace and hair ornament": 1, "shuimosuxiebysim a drawing of a woman eating a salad with a fork": 1, "shuimosuxiebysim a woman in a kimono sitting on the ground": 1, "shuimosuxiebysim a drawing of a drawing of a girl with her arms crossed": 1, "shuimosuxiebysim a drawing of a woman in a blue hanfu is standing": 1, "shuimosuxiebysim a drawing of a baseball player holding a bat": 2, "shuimosuxiebysim a lineart drawing of a baseball player holding a bat": 2, "shuimosuxiebysim a drawing of a woman holding a black cat on her shoulder": 1, "shuimosuxiebysim a woman in a blue kimono is standing": 1, "shuimosuxiebysim a drawing of a woman in a kimono sitting on the ground": 2, "shuimosuxiebysim a drawing of a woman sitting at a table with a pink stuffed animal and tokyo tower on the background": 1, "shuimosuxiebysim a drawing of a person on a motorcycle": 1, "shuimosuxiebysim a drawing of a woman in a kimono with a mask": 1, "shuimosuxiebysim a lineart drawing of a woman with hair ornament on her head": 1, "shuimosuxiebysim a lineart drawing of a girl holding a sword": 1, "shuimosuxiebysim a drawing of a woman with a hat and a sword": 1, "shuimosuxiebysim a drawing of a woman with a ponytail": 2, "shuimosuxiebysim a drawing of a girl sitting at a table with a plate of food": 2, "shuimosuxiebysim a drawing of a woman with a scarf": 2, "shuimosuxiebysim a drawing of a woman with a hat on": 1, "shuimosuxiebysim a drawing of a girl with a scarf and gloves": 1, "shuimosuxiebysim a drawing of a girl with a cat ear": 1, "shuimosuxiebysim a drawing of a girl with a purple shirt": 1, "shuimosuxiebysim a drawing of a drawing of a girl sitting and holding a pillow": 1, "shuimosuxiebysim a drawing of two girls with long hair and a white shirt": 1, "shuimosuxiebysim a drawing of a woman with a flower hair pings in her hair": 1, "shuimosuxiebysim a drawing of a woman holding a flower": 1, "shuimosuxiebysim a drawing of a woman with glasses on": 1, "shuimosuxiebysim a drawing of a woman with a bow in her hair": 1, "shuimosuxiebysim a drawing of a girl with a red scarf": 1, "shuimosuxiebysim a drawing of a girl with a scarf on her neck": 1, "shuimosuxiebysim a drawing of a woman with blue eyes": 1, "shuimosuxiebysim a drawing of a drawing of a girl with long hair": 1, "shuimosuxiebysim a drawing of a girl with a scarf and a backpack": 1, "shuimosuxiebysim a drawing of a woman in a uniform holding a pole": 1, "shuimosuxiebysim a drawing of a woman in a kimono is holding a flower": 1, "shuimosuxiebysim a sketch drawing of a woman": 1, "shuimosuxiebysim a lineart drawing of a woman with a high neck sweaters": 1, "shuimosuxiebysim a drawing of a woman with a purse": 2, "shuimosuxiebysim a lineart drawing of back view of a girl in a skirt": 1, "shuimosuxiebysim a lineart drawing of 2 girls hugging": 1, "shuimosuxiebysim a drawing of a girl kneeling down with her legs crossed": 1, "shuimosuxiebysim a drawing of a girl sitting on a couch with a cat": 1, "shuimosuxiebysim a drawing of a woman in a hanfu is holding an umbrella": 1, "shuimosuxiebysim a drawing of a drawing of a woman with a blue jacket": 1, "shuimosuxiebysim a drawing of a woman in a kimono is holding a lantern": 1, "shuimosuxiebysim a drawing of a woman sitting on top of a motorcycle": 1, "shuimosuxiebysim a drawing of a drawing of a woman with a purse": 1, "shuimosuxiebysim a drawing of hatsune miku in chinese dress with tuan-shan fan": 1, "shuimosuxiebysim a drawing of a girl in a kimono dress is holding a bag": 1, "shuimosuxiebysim a drawing of a woman in a jacket": 1, "shuimosuxiebysim a drawing a girl sitting with bag": 1, "shuimosuxiebysim a drawing a woman in a blue jacket": 1, "shuimosuxiebysim a drawing of a woman in hanfu is holding a fan": 1, "shuimosuxiebysim a lineartdrawing of a woman with a bird on her head": 1, "shuimosuxiebysim a lineart drawing of a woman": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman sitting on the ground": 1, "shuimosuxiebysim a drawing of a drawing of a girl sitting on a pillow": 1, "shuimosuxiebysim a drawing of a drawing of a girl holding a basketball ball": 1, "shuimosuxiebysim a drawing of a drawing of a girl sitting on a motorcycle": 1, "shuimosuxiebysim a drawing of a drawing of a girl laying on a bench": 1, "shuimosuxiebysim a drawing of a girl sitting on the ground with a bag": 1, "shuimosuxiebysim a drawing of a girl holding a pink teddy bear in her hand": 1, "shuimosuxiebysim a drawing of a girl with a backpack and a water bottle": 1, "shuimosuxiebysim a drawing of a woman holding a bamboo scroll with bamboo backpack": 1, "shuimosuxiebysim a drawing of a woman with a hair bun and a flower in her hair": 1, "shuimosuxiebysim a drawing of a woman in hanfu dress sitting on a bed": 1, "shuimosuxiebysim a drawing of a woman with a pink tuan-shan fan in her hand": 1, "shuimosuxiebysim a drawing of a girl in a blue dress is walking down the street": 1, "shuimosuxiebysim a drawing of a girl in a blue dress is sitting on a railing with clouds on the background": 1, "shuimosuxiebysim a drawing of a woman with red hair ribbons": 1, "shuimosuxiebysim a drawing of a woman in hanfu dress with a fan": 1, "shuimosuxiebysim a drawing of a woman in a red hanfu is looking up": 1, "shuimosuxiebysim a drawing of a woman holding a baseball bat next to a motocycle": 1, "shuimosuxiebysim a drawing of a drawing of a woman with a short tank top and jeans": 1, "shuimosuxiebysim a drawing of a girl in a hanfu with a rabbit": 1, "shuimosuxiebysim a drawing of a woman in a boxing ring with a glove in tight pants": 1, "shuimosuxiebysim a drawing of a woman with a purple fan and a red and white fan": 1, "shuimosuxiebysim a drawing of a girl with long hair and a blue dress": 1, "shuimosuxiebysim a drawing of a woman in hanfu walking on a cloudy day": 1, "shuimosuxiebysim a drawing of a woman with long hair holding a chinese brush pen": 1, "shuimosuxiebysim a drawing of a woman in a pink hanfu dress sitting on a boat": 1, "shuimosuxiebysim a drawing of a girl with long hair and blue eyes": 1, "shuimosuxiebysim a drawing of a woman with two cranes on the top and bottom of the image": 1, "shuimosuxiebysim a drawing of a woman in a blue and white dress and a red cape": 1, "shuimosuxiebysim a drawing of a woman in a red dress and hat with silk veil curtains holding a sword": 1, "shuimosuxiebysim a drawing of a girl with long hair wearing a scarf": 1, "shuimosuxiebysim a drawing of a woman in a red hanfu dress with flowers on the background": 1, "shuimosuxiebysim a drawing of a woman in a white hanfu dress standing on a bridge with chinese buildings and moutains and clouds on the background": 1, "shuimosuxiebysim a drawing of a woman in a red dress with flowers": 1, "shuimosuxiebysim a drawing of a girl holding a cell phone and a book": 1, "shuimosuxiebysim a drawing of a woman in hanfu with butterflies surrounding": 1, "shuimosuxiebysim a drawing of a girl taking a picture with a camera": 1, "shuimosuxiebysim a drawing of a girl in a red hanfu dress sitting on a rock": 1, "shuimosuxiebysim a drawing of a drawing of a girl with a top hat and a bow tie": 1, "shuimosuxiebysim a drawing of a woman in a hanfu is playing a pipa musical instrument": 1, "shuimosuxiebysim a drawing of a drawing of a woman in a costume": 1, "shuimosuxiebysim a drawing of a woman in a kimono dress holding a bamboo boat": 1, "shuimosuxiebysim a drawing of a woman in a hanfu outfit holding scrolls": 1, "shuimosuxiebysim a drawing of a woman in hanfu is standing under a willow tree and swallows": 1, "shuimosuxiebysim a drawing of a woman in a blue hanfu dress holding a fan": 1, "shuimosuxiebysim a drawing of a woman in a green dress holding an umbrella": 1, "shuimosuxiebysim a drawing of a woman in a red hanfu with 2 cranes on the background": 1, "shuimosuxiebysim a drawing of a girl in a space suit": 1, "shuimosuxiebysim a drawing of a woman in a blue and orange hanfu dress": 1, "shuimosuxiebysim a drawing of a drawing of a woman in armor with a bow and arrows": 1, "shuimosuxiebysim a drawing of a girl on a motorcycle with a helmet on": 1, "shuimosuxiebysim a drawing of a woman in a hanfu is standing under a tree": 1, "shuimosuxiebysim a drawing of a woman in a red hanfu coat and hair ornament": 1, "shuimosuxiebysim a drawing of a girl in a helmet and a cat": 1, "shuimosuxiebysim a drawing of a woman in a blue dress holding a basket with flowers on the background": 1, "shuimosuxiebysim a drawing of a girl in a hat and jeans": 1, "shuimosuxiebysim a lineart drawing of a woman in a dress": 1, "shuimosuxiebysim a lineart drawing of a woman with a bunch of flowers carried on her shoulder": 1, "shuimosuxiebysim a lineart drawing of a woman sitting on a bench with chinese brush pen in her hand": 1, "shuimosuxiebysim a lineart drawing of a woman with an umbrella": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman in a dress": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman holding an umbrella": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman with a tuan-shan in her hand": 1, "shuimosuxiebysim a lineart drawing of a drawing of a woman leaning on a bamboo boat": 1, "shuimosuxiebysim a linart drawing of a woman in a hanfu is holding a basket": 1, "shuimosuxiebysim a drawing of a woman in a hanfu dress holding a tuan-shan fan with garden on the background": 1, "shuimosuxiebysim a drawing of a budda in a blue dress holding a white and orange ribbon": 1, "shuimosuxiebysim a drawing of a bridge with a couple of umbrellas": 1, "shuimosuxiebysim a drawing of a woman in a hanfu dress holding a scrolls": 1, "shuimosuxiebysim a drawing of a girl in coat leaning on a grocery cart with arms crossed with supermaket on the background": 1, "shuimosuxiebysim a drawing of a woman in a blue hanfu sitting on a bench with chinese paper umbrella in her hand with snow on the background": 1, "shuimosuxiebysim a drawing of a woman sitting on a rock with a watermelon and swallows in the background": 1, "shuimosuxiebysim a drawing of a girl sitting on the ground with a cat": 1, "shuimosuxiebysim a drawing of a woman with a flower in her hair and sakura flowers flying on the background": 1, "shuimosuxiebysim a drawing of a woman holding a tuan-shan fan and looking to the bottom": 1, "shuimosuxiebysim a drawing of a woman with a black glove on her hand": 1, "shuimosuxiebysim a drawing of a girl with long hair and earrings and necklace": 1, "shuimosuxiebysim a drawing of a woman in a hanfu outfit with a dragon on the background": 1, "shuimosuxiebysim a drawing of a woman with a wine gourd in her hand": 1, "shuimosuxiebysim a drawing of a woman in a hanfu outfit with a tiger": 1, "shuimosuxiebysim a drawing of a woman in a blue dress holding a sheep and grassland on the background": 1, "shuimosuxiebysim a drawing of a woman with a pipa in her hand": 1, "shuimosuxiebysim a drawing of a woman with a horse": 1, "shuimosuxiebysim a drawing of a woman holding a rabbit in her hand with tree branchs on the background": 1, "shuimosuxiebysim a drawing of a woman in tears with handkerchief in her hand": 1, "shuimosuxiebysim a drawing of a painting of a woman with flowers and hair ornament in her hair": 1, "shuimosuxiebysim a drawing of a woman with a flower in her hair": 1, "bonian a painting of birds sitting on a branch": 1, "bonian two hens are standing in the snow": 1, "bonian a bird sitting on a branch with yellow flowers": 1, "bonian a painting of a pineapple and other fruit": 1, "bonian a bird flying over a body of water": 1, "bonian a painting of a bird on a branch": 2, "bonian a painting of a cat sitting on a branch": 1, "bonian a painting of two birds flying over a flower": 1, "bonian a painting of fish and a basket of fruits": 1, "bonian a bird sitting on a flower covered plate": 1, "bonian a bird sitting on a branch of a tree": 2, "bonian a bird sitting on a rock with bamboo leaves": 1, "bonian a painting of a bird on a branch of a tree": 1, "bonian a painting of a butterfly and flowers on a beige background": 1, "bonian a painting of a woman lying on a branch of flowers": 1, "bonian a painting of a man riding a man-drawn carriage with a crane in the foeground": 1, "bonian a painting of sheeps in a field": 1, "bonian a painting of a bird sitting on a leafy branch": 1, "bonian a painting of a tree with a cat in it": 1, "bonian a painting of a hen and chickens and a tree": 1, "bonian a painting of a tree and birds flying over it": 1, "bonian a painting of a bird sitting on a rock": 1, "bonian a painting of cock and hen and chickens under a tree": 1, "bonian a painting of birds sitting on a tree branch": 1, "bonian a drawing of a man in a boat with a dog": 1, "bonian two birds sitting on a branch of a tree": 1, "bonian two birds are flying around a willow tree branch": 1, "bonian a painting of a basket with fruits and fish": 1, "bonian a painting of a mountain with red berries": 1, "bonian a painting of a bunch of flowers on a branch": 1, "bonian a painting of flowers and leaves on a white background": 4, "bonian a painting of flowers and leafs": 1, "bonian a painting of flower and leafs": 1, "bonian a painting of flowers and leaves": 1, "bonian a painting of a yellow flower with green leaves": 1, "bonian a painting of flowers and leaves with chinese writing": 1, "bonian a painting of a yellow flower on a branch": 1, "bonian a woman in a pink dress is sitting on a tree branch": 1, "bonian a fan with a painting of a woman and a man": 1, "bonian a fan with a painting of a bird on it": 1, "bonian a painting of a vase with flowers": 1, "bonian a woman sitting on a rock next to a bamboo tree": 1, "bonian a painting of a crane standing on a rock and some red maples": 1, "fubaoshi a painting of a woman in a hanfu": 1, "fubaoshi a painting of three women sitting on a rug": 1, "fubaoshi a woman in a hanfu is holding a fan": 1, "fubaoshi a painting of a man and woman playing music": 1, "fubaoshi a painting of a tree and house in a field": 1, "fubaoshi a painting of a couple sitting under a tree": 1, "fubaoshi a painting of a mountain with a waterfall": 3, "fubaoshi a painting of a waterfall with a person on pavilion": 1, "fubaoshi a painting of a mountain and a herdboy with water buffalo in the water": 1, "fubaoshi a painting of a mountain range with a few trees": 1, "fubaoshi a painting of a tree in foeground and boats in distance": 1, "fubaoshi a painting of two people in a boat and trees with flowers": 1, "fubaoshi a painting of a boat in a body of water with red sunset and it's reflection in water": 1, "fubaoshi a painting of a mountain with a bunch of flowers and a small boat in river": 1, "fubaoshi a painting of a waterfall with people standing on it": 1, "fubaoshi a painting of a mountain with a house in the foreground": 1, "fubaoshi a painting of a huge rock based moutain next to vast river with several boats in distance": 1, "fubaoshi a painting of a waterfall in a mountainous area": 1, "fubaoshi a painting of a mountain scene with foggy clouds": 1, "fubaoshi a painting of a person on a hill": 1, "fubaoshi a man in hanfu standing on a river": 1, "wuchangshuo a painting of a tree with red flowers": 4, "wuchangshuo a painting of a mountain with a tree and flowers": 2, "wuchangshuo a painting of flowers on a branch next to a basket of fruits": 1, "wuchangshuo a painting of a flowers next to a rock": 1, "wuchangshuo a painting of a lots of flowers in foeground and background": 1, "wuchangshuo a painting of a bunch of flowers on a white surface": 1, "wuchangshuo a painting of a tree and flowers in a field": 1, "wuchangshuo a painting of a vase with flowers and leaves": 1, "wuchangshuo a painting of flowers and a rock in a field": 1, "wuchangshuo a painting of a rock with flowers": 1, "wuchangshuo a painting of a flowers and leafs with chinese writing": 3, "wuchangshuo a painting of a yellow gourd and trees": 1, "wuchangshuo a painting of flowers in a vase with a mountain in the background": 1, "wuchangshuo a painting of pears and leafs with chinese writing": 1, "wuchangshuo a painting of flowers and leafs with chinese writing": 3, "wuchangshuo a painting of a tree": 1, "wuchangshuo a painting of flowers and leafs and rocks with chinese writing": 2, "wuchangshuo a painting of a lotus branch and leafs": 1, "wuchangshuo a painting of a tree and fan and cooking tea": 1, "wuchangshuo a painting of a mountain with a river and trees": 1, "wuchangshuo a painting of maples and branch with chinese writing": 2, "wuchangshuo a painting of a vase with flowers in it": 1, "wuchangshuo a painting of a plant with flowers and chinese writing": 2, "wuchangshuo a painting of a pine tree with a rock in the foreground": 1, "wuchangshuo a painting of flowers and leafs": 1, "wuchangshuo a painting of a river with trees and rocks": 1, "wuchangshuo a painting of a pine tree": 1, "wuchangshuo a painting of yellow fruits with chinese writing": 1, "wuchangshuo a painting of a group of flowers": 1, "wuchangshuo a painting of a tree with flowers and leaves": 1, "wuchangshuo a painting of flowers and leaves on a white surface": 1, "wuchangshuo a painting of flowers and birds on a branch": 1, "wuchangshuo a painting of flowers and leaves on a white background": 1, "wuchangshuo a painting of a flower and leaves on a white surface": 1, "badashanren a drawing of a mountain range with a tree": 1, "badashanren a painting of a mountain with a village in the background": 1, "badashanren a drawing of a mountain with a village in the background": 1, "badashanren a drawing of a mountain with a village on it": 1, "badashanren a painting of a mountain with a house on top": 1, "badashanren a painting of a mountain with a group of trees": 1, "badashanren a drawing of a mountain with houses": 1, "badashanren a drawing of a mountain with a tree in the foreground": 1, "badashanren a drawing of a mountain with a river running through it": 1, "badashanren a drawing of a mountain with a hut and trees": 1, "badashanren a painting of a mountain": 1, "badashanren a painting of a mountain with a herd of sheep": 1, "badashanren a drawing of a tree and a mountain": 1, "badashanren a painting of a mountain and trees": 2, "badashanren a painting of a mountain with a bridge": 1, "badashanren a painting of mountain and trees": 1, "badashanren a painting of a mountain scene with trees": 1, "badashanren a drawing of a mountain with boats in distants": 1, "badashanren a drawing of a mountain with a house in the distance": 1, "badashanren a painting of a mountain with a person in the distance": 1, "badashanren a drawing of a mountain with a house": 1, "badashanren a painting of mountain and snow and a man ridding a donkey": 1, "badashanren a drawing of a bird with chinese writing on it": 1, "badashanren a painting of flowers on a branch": 1, "badashanren two birds are standing next to each other": 1, "badashanren a painting of a tree with flowers and leaves": 1, "badashanren a painting of 2 birds next to a stone": 1, "badashanren a painting of lotus and leaf": 1, "badashanren a painting of a mountain with trees and bushes": 1, "badashanren a drawing of a mountain with trees": 1, "badashanren a fish with chinese writing on it is shown": 1, "badashanren a painting of a tree with a bird perched on it": 1, "badashanren a painting of a brid standing on a rock under the louts leaf and flower": 1, "badashanren a painting of a bird on a pear": 1, "badashanren a painting of a lotus flower and leafs": 1, "badashanren a bird is sitting on a branch of a tree": 1, "badashanren a painting of a fish with chinese writing on it": 1, "badashanren a drawing of a willow tree next to water": 1, "badashanren a bird sitting on a branch of a tree": 1, "badashanren a painting of two egales on a branch": 1, "badashanren a painting of a deer and a bird in a landscape": 1, "badashanren a painting of a tree": 1, "badashanren a painting of a mountain landscape with a river": 1, "badashanren a painting of lotus with a bird on it": 1, "badashanren a painting of fishs next to a rock": 1, "badashanren a painting of two birds with chinese writing": 1, "likuchan a bird sitting on a branch of a pine tree": 1, "likuchan a painting of a two birds standing on a branch": 1, "likuchan a bird is sitting on a rock": 1, "likuchan a painting of a bird sitting on a rock": 1, "likuchan a bird sitting on a branch with chinese writing": 1, "likuchan a painting of a bird with a large leaf": 1, "likuchan a painting of cabbages and mushrooms with chinese writings": 1, "likuchan a painting of a flower with chinese writing": 1, "likuchan a painting of a plant with leaves and flowers": 1, "likuchan a painting of a plant with chinese writing": 1, "likuchan a painting of flowers in a vase with a chinese writing": 1, "likuchan a painting of a bird flying over a flower": 1, "likuchan a painting of a plant with chinese writing on it": 1, "likuchan a painting of flowers": 1, "likuchan a painting of a bird standing on a branch in a lotus pool": 1, "likuchan a painting of a flower and cabbages": 1, "likuchan a painting of a bird perched on a tree branch": 1, "likuchan a painting of a tree with branches and flowers": 1, "likuchan two birds sitting on a branch with chinese writing": 1, "likuchan a painting of birds in a field with trees": 1, "likuchan three birds are sitting on a branch in a painting": 1, "zhenbanqiao a painting of bamboo trees with chinese writing": 16, "zhenbanqiao a painting of plants in vase": 1, "zhenbanqiao a painting of bamboo trees with asian writing": 1, "zhenbanqiao a painting of bamboo trees and a rock with chinese writing": 2, "zhenbanqiao a painting of a plant with chinese writing on it": 1 } }, ```

In this case, there are a lot of phrases demonstrating 7 different keywords (at the start of each phrase, for different artists/styles I believe).

SDNext:

SDNext removes the 100_ from "100_shuimosuxiebysim": {, and gives: shuimosuxiebysim which happens to match one of the keywords seen in the metadata list.

Side note: I found another model that starts with "8_bmt": {, but bmt isn't a keyword actually used in the tags. (See: https://civitai.com/models/20759)

A1111:

A1111 breaks down all of the phrases by spaces into individual tags: (notice things like and and with)

gNX5tF5dsz

And since it truncates the tag list by frequency, it cuts out 4 of the 7 keywords!

CivitAI:

For completeness, I compared to CivitAI's trainedWords:

(Click to expand...) **CivitAI trainedWords:** ``` shuimobysim wuchangshuo bonian zhenbanqiao badashanren ```

CivitAI's trainedWords are almost convinent in this example, but it is missing two keywords from the model metadata ('fubaoshi', 'likuchan'), and one has a typo ('shuimobysim' should be 'shuimosuxiebysim', I assume.. or vise versa?).