プロンプトの一部をコメントアウトする
拡張機能を使う
$ # comment out
ComfyUI
C言語と同じようにコメントを書ける
$ // comment out
$ /* comment out */
バニラで無理やり書く
新方法
コメントアウトしたい部分を[コメント:999]とする
https://gyazo.com/02f2f97711409b19fe4233ecd93daea5https://gyazo.com/5a0585f7e422b36eba399e17efe5194ahttps://gyazo.com/70aafd2926d4d42821fb45c4bb1f81d0
左
code:unico
1girl,fine details of girl,cinematic lighting,cinematic scene,Hyper-realistic,4K, Highly Detailed,looking at viewer,black hair,upper body,from front,bangs,wide view
中
code:unico
1girl,fine details of girl,cinematic lighting,cinematic scene,Hyper-realistic,4K, Highly Detailed,looking at viewer,black hair,upper body,from front,bangs,wide view
Negativeは下と同じ
右
少しでも違いがあれば差分が浮き上がる
[:-1]と違い完全に反応しなくなったnomadoor.icon
面白いことに[:999]で囲んだ部分はトークン数に影響しない
旧方法(不安定)
カンマも大事
https://gyazo.com/1c0192e09c9f578e0a57333b831f4f11https://gyazo.com/b0201994c32d96d1f4c9590a9d0a02behttps://gyazo.com/06c7cc021a273003409904c349b6e04f
左
code:unico
1girl,fine details of girl,cinematic lighting,cinematic scene,Hyper-realistic,4K, Highly Detailed,looking at viewer,black hair,upper body,from front,bangs,wide view
code:negative
nsfw,lowres,bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, missing arms, long neck, Abnormal
中
code:unico
1girl,fine details of girl,cinematic lighting,cinematic scene,Hyper-realistic,4K, Highly Detailed,comment out,:-1looking at viewer,black hair,upper body,from front,bangs,wide view code:negative
nsfw,lowres,bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, missing arms, long neck, Abnormal
$ Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3830190373
右
二枚重ねて、差の絶対値を取る
ほんのちょっとだけ違ってしまうnomadoor.icon
ただ、今はあんまり長いプロンプトを書くのは推奨されてない(意味がない)から無駄かもしれない