{"id":6621,"date":"2024-03-29T11:17:29","date_gmt":"2024-03-29T03:17:29","guid":{"rendered":"https:\/\/www.1ai.net\/?p=6621"},"modified":"2024-03-29T11:17:29","modified_gmt":"2024-03-29T03:17:29","slug":"%e4%b8%8d%e7%9f%a5%e9%81%93%e6%8f%90%e7%a4%ba%e8%af%8d%e6%80%8e%e4%b9%88%e5%86%99%ef%bc%9fstable-diffusion%e6%9c%80%e5%bc%ba%e6%8f%90%e7%a4%ba%e8%af%8d%e6%8f%92%e4%bb%b6%e4%ba%86%e8%a7%a3%e4%b8%80","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/6621.html","title":{"rendered":"Don\u2019t know how to write prompt words? Check out Stable Diffusion\u2019s most powerful prompt word plugin!"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"0 0 []\">I don&#039;t know what my friends are using.<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>When painting, have you ever suddenly run out of ideas? You want to draw something, but you just don\u2019t know where to start. You wrote the beginning of 1girl, but you don\u2019t know what to write next. Anyway, Tingyu often encounters this situation.<\/p>\n<p data-track=\"2\">Or I just don&#039;t know.<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8f%90%e7%a4%ba%e8%af%8d\" title=\"[View articles tagged with [cue word]]\" target=\"_blank\" >Prompt word<\/a>How to write to be rich.<\/p>\n<p data-track=\"3\">Used the old six<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8f%92%e4%bb%b6\" title=\"[See articles with [plug-in] labels]\" target=\"_blank\" >Plugins<\/a>There are random inspirations, but it seems that there are only a few prompts, and if you use them too much, you will find that they are repeated over and over again.<\/p>\n<p data-track=\"4\">Today we will introduce another plug-in DTG, which has a richer tag library and can bring us more inspiration.<\/p>\n<p data-track=\"5\">Okay, without further ado, let\u2019s get started.<\/p>\n<p data-track=\"8\">The full name of the plug-in is: z-a1111-sd-webui-dtg, which mainly uses DanTagGen to enhance the prompt word generation function.<\/p>\n<p data-track=\"10\">So what is DanTagGen? To put it simply, it is the Danbooru tag generator, a large language model designed to generate Danbooru tags.<\/p>\n<p data-track=\"12\">The goal is to provide users with a more convenient way to make prompt words for text-to-image models trained on the Danbooru dataset.<\/p>\n<p data-track=\"14\">This extension can generate detailed tags\/core tags based on the prompt words you enter, and can add some additional elements to your prompt words.<\/p>\n<p data-track=\"16\">Well, that\u2019s about it. Friends who are interested in this model can go and take a look at the face.<\/p>\n<p data-track=\"18\">Website:<\/p>\n<p data-track=\"19\">https:\/\/huggingface.co\/KBlueLeaf\/DanTagGen-beta<\/p>\n<p data-track=\"21\">Then let\u2019s talk about how to install and use this model. A great god has made a plug-in that allows us to access this model.<\/p>\n<p data-track=\"23\">This plugin can currently only be installed from a URL.<\/p>\n<p data-track=\"25\">Website:<\/p>\n<p data-track=\"26\">https:\/\/github.com\/KohakuBlueleaf\/z-a1111-sd-webui-dtg<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6625\" title=\"get-51\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-51.jpg\" alt=\"get-51\" width=\"1236\" height=\"779\" \/><\/div>\n<p data-track=\"29\">After the installation is complete and SD is restarted, you can see the directory of this plug-in on the interface.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6622\" title=\"get-48\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-48.jpg\" alt=\"get-48\" width=\"1175\" height=\"462\" \/><\/div>\n<p data-track=\"32\">The usage is also very simple. Although there seem to be many parameters below, we can actually use most of them by default.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6623\" title=\"get-49\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-49.jpg\" alt=\"get-49\" width=\"1079\" height=\"660\" \/><\/div>\n<p data-track=\"35\">Remember to click Enable.<\/p>\n<p data-track=\"37\">The option we usually modify most often is the &quot;Total tag length&quot;.<\/p>\n<p data-track=\"39\">It is obvious at a glance. The four options below are: very short, short, long, and very long.<\/p>\n<p data-track=\"41\">This means how many prompt word labels the model randomly generates. This should be easy to understand.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6624\" title=\"get-50\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-50.jpg\" alt=\"get-50\" width=\"848\" height=\"260\" \/><\/div>\n<p data-track=\"44\">Let\u2019s try the shortest and the longest one here.<\/p>\n<p data-track=\"46\">Let\u2019s start with some basic prompts. Wow, the model is well chosen, and the output of the basic prompts is also very beautiful.<\/p>\n<pre><code>1girl,souryuu asuka langley,neon genesis evangelion,very aesthetic,masterpiece, Negative prompt: wings,nsfw,low quality,worst quality,normal quality,aidxlv05_neg, Steps: 28, Sampler: Euler a, CFG scale: 7, Seed: 4103425799 , Size: 896x1152, Model hash: e3c47aedb0, Model: animagine-xl-3.1, FP8 weight: Enable for SDXL, Cache FP16 weight for LoRA: True, VAE hash: c6a580b13a, VAE: sdxl_vae.safetensors, ENSD: 31337, TI hashes : &quot;aidxlv05_neg: 84a6266ecaa6, aidxlv05_neg: 84a6266ecaa6&quot;, Version: v1.8.0<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6626\" title=\"get-52\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-52.jpg\" alt=\"get-52\" width=\"894\" height=\"1082\" \/><\/div>\n<p data-track=\"49\">Next, we enable DanTagGen and select &quot;very short&quot; to see the effect. Compared with our original prompt words, many more adjectives and detailed description words have been added.<\/p>\n<p data-track=\"51\">Different images of the same character immediately emerged.<\/p>\n<pre><code>1girl, souryuu asuka langley, neon genesis evangelion, small breasts, black gloves, turtleneck, looking to the side, blush, long hair, hand on own hip, nerv, :d, looking at viewer, glowing, pilot suit, smile, narrowed eyes, upper body, red gloves, breasts apart, hair between eyes, blue background, foreshortening, gloves, bodysuit, open mouth, simple background, solo, breasts, blue eyes, floating hair, two side up, orange hair, from side, impossible clothes, headgear, gradient background, glowing eye, plugsuit, very aesthetic, masterpiece Negative prompt: wings,nsfw,low quality,worst quality,normal quality,aidxlv05_neg, Steps: 28, Sampler: Euler a, CFG scale: 7, Seed : 4103425799, Size: 896x1152, Model hash: e3c47aedb0, Model: animagine-xl-3.1, FP8 weight: Enable for SDXL, Cache FP16 weight for LoRA: True, VAE hash: c6a580b13a, VAE: sdxl_vae.safetensors, ENSD: 31337, Version: v1.8.0<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6627\" title=\"get-53\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-53.jpg\" alt=\"get-53\" width=\"895\" height=\"1069\" \/><\/div>\n<p data-track=\"54\">Here I need to remind you that when you enable generation for the first time, the DanTagGen model will be automatically downloaded. You can check the background. The model will also be placed in the network disk at the end of the article. Those who need it can pick it up by themselves.<\/p>\n<p data-track=\"56\">let's try \"very long\" again. it's possible to label the rain more, but it's just a picture that didn't... but that's what we want, right<\/p>\n<pre><code>1girl, souryuu asuka langley, neon genesis evangelion, small breasts, nervous, twintails, looking to the side, standing, blush, long hair, hair over shoulder, pilot suit, interface headset, cowboy shot, aged up, wide hips, thick mustache , covered navel, souryuu asuka langley \\(cosplay\\), green eyes, smile, pinky out, red gloves, skin tight, crossed arms, cosplay, pregnant, imagining, nervous smile, grin, tsurime, curvy, very long hair, hair between eyes, red bodysuit, gloves, hand on own stomach, bodysuit, full stomach, solo, sidelocks, blue bodysuit, breasts, simple background, glasses, sideways mouth, mustache, low twintails, beard, facial hair, lens flare, parted bangs , red-framed eyewear, thought bubble, multicolored bodysuit, alternate hair color, headgear, tape, plugsuit, science fiction, brown hair, multicolored clothes, very aesthetic, masterpiece Negative prompt: wings,nsfw,low quality,worst quality,normal quality,aidxlv05_neg, Steps: 28, Sampler: Euler a, CFG scale: 7, Seed: 4103425799, Size: 896x1152, Model hash: e3c47aedb0, Model: animagine-xl-3.1, FP8 weight: Enable for SDXL, Cache FP16 weight for LoRA: True, VAE hash: c6a580b13a, VAE: sdxl_vae.safetensors, ENSD: 31337, Version: v1.8.0<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6629\" title=\"get-55\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-55.jpg\" alt=\"get-55\" width=\"894\" height=\"1098\" \/><\/div>\n<p data-track=\"59\">Okay, let&#039;s continue reading:<\/p>\n<p data-track=\"61\">Ban tags: The label that needs to be disabled to support the regular expression, the model still needs this function... some sensitive labels..<\/p>\n<p data-track=\"63\">Prompt Format: The format of the generated prompt words, which is also the default. It mainly refers to the prompt word labels classified into different categories in a prompt word, such as quality label, artist label, etc.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6631\" title=\"get-57\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-57.jpg\" alt=\"get-57\" width=\"758\" height=\"649\" \/><\/div>\n<p data-track=\"66\">This is the default. If you choose randomization, a fixed seed will be generated like the random seed number. After the fixed seed number is generated, the prompt word will be fixed and no new prompt words will be added.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6628\" title=\"get-54\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-54.jpg\" alt=\"get-54\" width=\"575\" height=\"92\" \/><\/div>\n<p data-track=\"69\">Upsampling timing: The time point when the prompt word is enhanced, before or after other prompt word plug-ins are processed. This function can be used with other dynamic prompt words or wildcard function plug-ins.<\/p>\n<p data-track=\"71\">We can choose the right time.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6630\" title=\"get-56\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-56.jpg\" alt=\"get-56\" width=\"811\" height=\"240\" \/><\/div>\n<p data-track=\"74\">This parameter represents temperature: higher temperatures represent more diverse results, lower temperatures represent greater consistency with our original prompt word.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6632\" title=\"get-58\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-58.jpg\" alt=\"get-58\" width=\"1144\" height=\"225\" \/><\/div>\n<p data-track=\"77\">Let&#039;s compare the effects by adjusting &quot;Temperature&quot; to the lowest and highest settings and try them respectively:<\/p>\n<p data-track=\"79\">Adjust it to the lowest setting, and the labels are pretty standard. I tried it several times, and the pictures I got are basically the same as the one below, and the labels are also similar every time.<\/p>\n<pre><code>1girl, souryuu asuka langley, neon genesis evangelion, pilot suit, interface headset, red bodysuit, bodysuit, solo, medium breasts, breasts, plugsuit, blue eyes, long hair, orange hair, very aesthetic, masterpiece Negative prompt: wings,nsfw, low quality,worst quality,normal quality,aidxlv05_neg, Steps: 28, Sampler: Euler a, CFG scale: 7, Seed: 4103425799, Size: 896x1152, Model hash: e3c47aedb0, Model: animagine-xl-3.1, FP8 weight: Enable for SDXL, Cache FP16 weight for LoRA: True, VAE hash: c6a580b13a, VAE: sdxl_vae.safetensors, ENSD: 31337, Version: v1.8.0<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6633\" title=\"get-59\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-59.jpg\" alt=\"get-59\" width=\"891\" height=\"1082\" \/><\/div>\n<p data-track=\"82\">When the setting is set to the highest level, the style that comes out is different every time. The styles are varied and there are all kinds of images. I have run a lot and basically haven&#039;t seen any duplicate ones.<\/p>\n<pre><code>1girl, souryuu asuka langley, neon genesis evangelion, twitter username, holding polearm, musblstone, lance renguahau \\(craft viwony itee croata\\) \\(cast bank broad symbol\\) art numberfayw movie interior, holding cyrgesight, blue buruma, hands on weapon , biceps, medium breasts, smile, two-tone border, muscular female, plugsuit, logo, lance, blue egun, interface back dx, very aesthetic, masterpiece Negative prompt: wings,nsfw,low quality,worst quality,normal quality,aidxlv05_neg , Steps: 28, Sampler: Euler a, CFG scale: 7, Seed: 4103425799, Size: 896x1152, Model hash: e3c47aedb0, Model: animagine-xl-3.1, FP8 weight: Enable for SDXL, Cache FP16 weight for LoRA: True, VAE hash: c6a580b13a, VAE: sdxl_vae.safetensors, ENSD: 31337, Version: v1.8.0<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6636\" title=\"get-62\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-62.jpg\" alt=\"get-62\" width=\"894\" height=\"1101\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6635\" title=\"get-61\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-61.jpg\" alt=\"get-61\" width=\"895\" height=\"1091\" \/><\/div>\n<p data-track=\"87\">Here is another little trick I would like to share. When you enable the plugin and set multiple batches in the total batch, the styles of the pictures that come out at the same time are all in the same series! Isn\u2019t this feature pretty nice?<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6634\" title=\"get-60\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-60.jpg\" alt=\"get-60\" width=\"1080\" height=\"297\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6637\" title=\"get-63\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/get-63.jpg\" alt=\"get-63\" width=\"1080\" height=\"265\" \/><\/div>\n<p data-track=\"91\">Okay, that\u2019s all the functions of the plug-in have been introduced. I have to say that the card drawing function of this plug-in is really powerful and full of creativity.<\/p>\n<p data-track=\"93\">But this card, um, it's easier for everyone to be careful with their eyes..<\/p>\n<p data-track=\"95\">Okay, that\u2019s all for today\u2019s sharing. If you are interested, go and try it!<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>I do not know partners in the use of Stable Diffusion painting, there is no sudden no idea, want to paint something, but just can not start, wrote the beginning of 1girl, the follow-up do not know what to write the dilemma. Anyway, I've often encountered this situation. Or simply do not know how to write the prompt word is considered rich. Used the old six plug-ins random inspiration, but it seems that the prompt word is so some, with more back and forth is so some repetitive. Then today we come to introduce another plug-in DTG, with a richer label library, can give us more inspiration. Well, without further ado, we directly open the whole. Plug-in comprehensive called: z-a1111-sd-webui-dtg, mainly utilizes the DanTag<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[197,837,223],"collection":[262],"class_list":["post-6621","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-stable-diffusion","tag-837","tag-223","collection-stablediffusion"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/6621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=6621"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/6621\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=6621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=6621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=6621"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=6621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}