Stable Diffusion RandomTags
最新版↓
上の画像はAIによる生成画像(実際に以下のタグを使用している。)
Stable diffusion 向けのランダムタグに役立つテキストを書き置き。
忙しい人向け (v1.00.noboy)
{| best quality | (best quality:1.25) | (best quality:1.5)}
{1girl | 2girls | 3girls | many girls},
{smile | light smile | evil smile | grin | evil grin | sad smile | angry smile | :d | :p | angry | annoyed | furious | disgust | frown | glaring | scowl | sad | tears | streaming tears | wiping tears | crying | sobbing | blush | closed eyes | confused | disappointed | drunk | one eye closed | shy | open mouth | scared | worried | panicking | serious | nervous | expressionless},
{red hair | orange hair | deepyellow hair | yellow hair | lightgreen hair | green hair | deepgreen hair | aqua hair | skyblue hair | blue hair | violet hair | purple hair | pink hair | black hair | gray hair | white hair | brown hair | blonde hair | silver hair},
{| shiny hair | colored inner hair | two-tone hair | streaked hair},
{| t-shirt | blouse | coat | cardigan | sweater | hoodle | raincoat | tank top | skirt | pants | shorts | maid | bunny girl | sport | swimsuit | bikini | competition swimsuit | yukata | kimono | suit | dress | pajamas | cheerleader | kigurumi | waitress | miko | nurse | china dress | gothic lolita | leotard | japanese clothes | armor | thighhighs | idol girl | gyaru},
{| | |hair ribbon | hairband | hat | crown | helmet | necklace | animal ears | piercing | earrings | choker | glasses | sunglasses | blindfold | mouth mask},
{| | | look up | look down | looking ahead | look left | look right | looking to the side | looking back},
{| | | arm up | arm down | spread arms | close arms},
{| | | raise hand | lower hand | spread hand | close hand},
{| | | step | footpace | spread legs | close legs},
{| | | dawn | sunrise | early morning | morning | late morning | afternoon | early afternoon | early evening | evening | eventide | sunset | nightfall | twilight | gloaming | dusk | night | midnight},
{| | | diffusion light | reflection light | frontlighting | backlighting | sidelighting | top lighting | underlighting | natural light | artificial light | spotlight | stage lights | glowing | soft light | hard light | warm light | cool light | highlights | bloom | dappled sunlight | sunbeam | darkness | moonlight},
{spring | summer | autumn | winter},
{| | | 14mm | 24mm | 85mm | 125mm},
{| | | ISO200 | ISO400 | ISO800 | ISO1600 | ISO3200},
{| | | F1.8 | F2 | F2.8 | F4 | F5.6 | F8 | F16},
{| | | front angle, from front | above angle, from above | below angle, from below | side angle, from side | angle from behind | close-up angle | distance angle | dynamic angle | upside-down},
{| | | depth of field | fisheye lens},
{masterpiece | exquisite | beautiful | best quality | highest quality | high quality | normal quality | lower quality | low quality | 4k | 8k | 16k | highres | absurdres | highly detailed | extremely detailed CG unity}
コメントあり (v1.04.noboy)
// 品質向上: なし | best quality[1.00, 1.25, 1.50]
{| best quality | (best quality:1.25) | (best quality:1.5)},
// 品質向上: いずれか1つ
{masterpiece | exquisite | beautiful | best quality | highest quality | 4k | 8k | 16k | highres | absurdres | highly detailed | extremely detailed CG unity | hyperdetailed },
// 登場する人物
{1girl | 2girls | 3girls | many girls},
// そのキャラクターの年齢
{loli | female | young woman | young female | girl | child female | 6 years old | 12 years old | 18 years old},
// そのキャラクターの表情、喜怒哀楽+その他。いずれか1つ
{smile | light smile | evil smile | grin | evil grin | sad smile | angry smile | :d | :p | angry | annoyed | furious | disgust | frown | glaring | scowl | sad | tears | streaming tears | wiping tears | crying | sobbing | blush | closed eyes | confused | disappointed | drunk | one eye closed | shy | open mouth | scared | worried | panicking | serious | nervous | expressionless},
// そのキャラクターの髪の毛のカラー
{red hair | orange hair | deepyellow hair | yellow hair | lightgreen hair | green hair | deepgreen hair | aqua hair | skyblue hair | blue hair | violet hair | purple hair | pink hair | black hair | gray hair | white hair | brown hair | blonde hair | silver hair},
// アホ毛(低確率1/12)
{| | | | | | | | | | | ahoge}
// そのキャラクターの髪の毛の配色構図(モデルによって得意不得意あり)
{| | | | shiny hair | colored inner hair | two-tone hair | streaked hair},
// そのキャラクターがしている行動(身体的で、大きな動作に限定)
{| | | | | sleeping | running | eating | studying | driving | diving | flying | jumping | standing | waiting | squatting | crouching},
// そのキャラクターの上着下着
{| | | | | armor | bikini | bikini | blouse | blouson | bodysuit | bra | brassiere | brief | bunny girl | camisole | cardigan | cargo pants | cheerleader | china dress | coat | competition swimsuit | cropped pants | denim shirt | dress | dungarees | fleece | gothic lolita | gyaru | hoodle | idol girl | jacket | japanese clothes | jogger pants | khaki pants | kigurumi | kimono | leotard | lingerielong skirt | maid | miko | miniskirt | nurse | overalls | overcoat | pajamas | pants | pantyhose | polo shirt | poncho | raincoat | shirt | shorts | skirt | sleeveless shirt | sport | stockings | suit | sweat shirt | sweater | swimsuit | t-shirt | tank top | tanktop | thighhighs | tights | tube top | tunic | tuxedo | undies | uniform | vest | waitress | wide pants | yukata},
// そのキャラクターに身につける被り物や小物
{| | | cap | gloves | hat | scarf | ear muffs | hair ribbon | hairband | hat | crown | helmet | necklace | animal ears | piercing | earrings | choker | glasses | sunglasses | blindfold | mouth mask},
// キャラクター外見の大まかな印象の構図
{| | | | | | | | attractive | attrocious | baggy | beautifu | cute | drab | elegant | exquisite | fancy | gorgeous | loose | plain | polished | pretty | sexy | strikingstylish | tight | unattractive},
// そのキャラクターが見る方向
{| | | look up | look down | looking ahead | look left | look right | looking to the side | looking back},
// 腕に関する構図
{| | | arm up | arm down | spread arms | close arms},
// 手に関する構図
{| | | raise hand | lower hand | spread hand | close hand | v},
// 足に関する構図
{| | | step | footpace | spread legs | close legs | legs up},
// 場所に関するタグ
{| | | | | academy | airport | area | bank | bar | bridge | building | cafe | camp | canal | castle | cathedral | church | cinema | city | country | countryside | court | dam | dormitory | downtown | exhibition | farm | fort | grave | ground | hall | harbor | hospital | hotel | inn | jail | lane | library | market | mill | mine | monument | museum | palace | park | path | pit | place | platform | playground | pole | port | prison | resort | restaurant | shelter | shrine | slope | slum | space | stadium | stallstand | store | street | studio | supermarket | temple | theater | tower | town | track | village | zoo},
// ライティングに関する構図
{| | | diffusion light | reflection light | frontlighting | backlighting | sidelighting | top lighting | underlighting | natural light | artificial light | spotlight | stage lights | glowing | soft light | hard light | warm light | cool light | highlights | bloom | dappled sunlight | sunbeam | darkness | moonlight},
// 時間に関するタグ
{| | dawn | sunrise | early morning | morning | late morning | afternoon | early afternoon | early evening | evening | eventide | sunset | nightfall | twilight | gloaming | dusk | night | midnight},
// 季節に関するタグ
{spring | summer | autumn | winter},
// カメラ集点距離
{| | | 14mm | 24mm | 85mm | 125mm},
// カメラ光源投影
{| | | ISO200 | ISO400 | ISO800 | ISO1600 | ISO3200},
// カメラ絞り
{| | | F1.8 | F2 | F2.8 | F4 | F5.6 | F8 | F12},
// カメラアングル
{| | | front angle, from front | above angle, from above | below angle, from below | side angle, from side | angle from behind | close-up angle | distance angle | dynamic angle | upside-down},
// カメラ効果
{| | | depth of field | fisheye lens},
// 作画効果
{| | | | Studio Ghibli | painting | pop art | acrylic painting | oil painting | miniature painting | watercolor painting | watercolour painting | illustration | graphic design | cinematic | vivid colors | {| | portrait | landscape | scenery}},
// 作画効果2
{| | | | | | chalk | pastel | pen and ink | charcoal | pencil},
// 作画効果3
{| | | | | | | | trending on pixiv},
Ehなタグ (1.0.1)
Wiki を参照。
備考
生成されるイラストの可能性を狭めないように、オプションとなるタグ群には一定確率でタグが指定されないように | | | というような空白を入れています。
モデルによっては露骨な職場等では適さないセンシティブな画像が生成されることがあります。肌や体型に関するタグが含まれているためです。極力避けたい場合は、ネガティブにnsfwなど入れてください。
モデルによっては生成されること画像が崩れやすいものもあります。
コメントと改行をすべて削除するコード
# 入力ファイルのパス
input_file = "infile.txt"
# 出力ファイルのパス
output_file = "outfile.txt"
delete_chars = "//"
with open(input_file, "r", encoding="UTF-8") as fin:
with open(output_file, "w") as fout:
for line in fin:
if line[:2] != delete_chars:
fout.write(line[:-1])