
キャラLoRAが反応するかを時短で試すワイルカード化の拡張ツール「combination-lora」とDynamic promptsを活用
LoRAをDLしてキャラクターを生成する時に私の場合は、1個だけではなく、2個3個取得します。
シリーズものであれば、大量に取得してLoRAを試しますが、1個1個張り替えるのが手間なのとLoRAのwegihtの調整もあるため手間だなーと思っていたら自分で作った「combination-lora」で自動でワイルカードを生成かつLoRAのwegithも設定できる事に気づきました。
拡張ツール「combination-lora」について
上記記事で紹介している自作の拡張ツールになります。
元々の目的は、複数のLoRAを組み合わせて使うようにしていました。
使用する場合のワイルカードは、下記のような形で組み合わせができます。
__親フォルダー/lora-combination__
上記で組み合わせができますが、LoRAを組み合わせるためにLoRA自体をリスト化しているのが下記のワイルカードになります。
__親フォルダー/Lora-list__
ワイルカード名は基本固定なので、変動する部分は親フォルダー部分になります。
このLoRA-listとcombination-LoRAを使用する際のLoRAのwegiht範囲を設定できるのでそれも試す事ができます。
0.4から0.8に設定するとLoRA-listの中身は下記のようにプロンプトが格納されます。
<lora:wildcard-name:{0.4|0.5|0.6|0.7|0.8}>
次にDynamic promptsの設定をします。
Dynamic promptsのCombinatorial generationを活用
Dynamic prompts内でCombinatorial generationというのがあります。

これにチェックを入れるとワイルカードの中身を1ずつ出力してくれます。
そして{0.4|0.5|0.6|0.7|0.8}の記載があるため、一番最初のLoRAのweightを0.4から0.8まで生成してくれるので一通り生成を確認することができます。
これを活用し、LoRAが効くか効かないか、効いた場合はLoRAのweightによって生成状態がどうなるかを確認できます。
今回は、今ハマっている「ZenlessZoneZero-ゼンレスゾーンゼロ」のキャラLoRAを取得し、combinaiton-LoRAでワイルカード化したもので生成しました。
civitai Helper用
https://civitai.com/models/628759/zenless-zone-zero-characters-style-illustrious-pony
https://civitai.com/models/957510/hoshimi-miyabi-zenless-zone-zero-or-goofy-ai
https://civitai.com/models/588717/ellen-joe-zenless-zone-zero-xl-pony-illustrious
https://civitai.com/models/569630/piper-wheel-zenless-zone-zero-xl-pony-illustrious
https://civitai.com/models/827206/burnice-white-zenless-zone-zero-or-goofy-ai
https://civitai.com/models/569641/luciana-lucy-de-montefio-zenless-zone-zero-xl-pony-illustrious
https://civitai.com/models/447184/koleda-belobog-or-zenless-zone-zero-illustrious-and-pony-and-sd15
https://civitai.com/models/449070/nicole-demara-or-zenless-zone-zero-illustrious-and-pony-and-sd15
https://civitai.com/models/1080122/evelyn-chevalier-or-zenless-zone-zero-illustriousxl
https://civitai.com/models/471854/all-characters-in-zenless-zone-zero
https://civitai.com/models/794688/yanagi-zenless-zone-zero-pony-il
https://civitai.com/models/1097018/astra-yao-or-zenless-zone-zero-illustriousxl
https://civitai.com/models/447165/ellen-joe-or-zenless-zone-zero-illustrious-and-sd15
https://civitai.com/models/727099/lora-jane-doe-zenless-zone-zero-flux-or-sdxl-or-pony-or-noob-or-artiwaifu-or-sd15
https://civitai.com/models/580325/soukaku-zenless-zone-zero-xl-pony-illustrious
https://civitai.com/models/1013016/yanagi-tsukishiro-or-zenless-zone-zero-illustriousxl
https://civitai.com/models/1007728/burnice-white-or-zenless-zone-zero-illustriousxl
https://civitai.com/models/1142611/character-zenless-zone-zero
https://civitai.com/models/1023283/nicole-demara-or-zenless-zone-zero-illustriousxl
https://civitai.com/models/723906/lora-qingyi-zenless-zone-zero-sdxl-or-pony-or-noob-or-artiwaifu-or-sd15
https://civitai.com/models/941992/illustriousxl-v01-jane-doe-or-zenless-zone-zero
https://civitai.com/models/961804/illustriousxl-v01-locon-belle-or-zenless-zone-zero
https://civitai.com/models/820023/illustriousxl-v01-zhu-yuan-or-zenless-zone-zero
https://civitai.com/models/985014/burnice-white-zenless-zone-zero
https://civitai.com/models/1199574/koleda-belobog-zenless-zone-zero-pony-illustrious
https://civitai.com/models/1144208/pony-illustrious-zenless-zone-zero-soukaku
ZenlessZoneZeroの生成結果





いろんなキャラが混じってオリジナルな感じになっています。
トリガーワードが、またはの||となっている場合は、単一のトリガーワードでないとしっかり反応しないのでこういったトリガーワードは、あとで試す必要があります。
下記がトリガーワードの中身になります。
||部分が分割部分で、実際に使用する場合は、||で区切りを判断して不要な部分は削除する形になります。
nic07d3m, pink hair, hair ribbon, earrings, hairclip, tube top, shoulder cutout, bare shoulders, cleavage, detached sleeves, micro shorts, cutoffs, thigh strap, single thighhigh, torn thighhighs || c4esark1ng, light green hair, hair ornament, gloves, fur-trimmed jacket, short dress, cleavage, belt, thighhighs || ellen, black hair, ear piercing, hairclip, spiked collar, maid headdress, black dress, puffy short sleeves, maid apron, wrist cuffs, pantyhose, shark tail || ellen, black hair, ear piercing, hairclip, choker, dress shirt, pantyhose, high-waist skirt, shark tail || jnedw, gradient hair, black hair, red hair, fur-trimmed jacket, necktie, fingerless gloves, high-waist shorts, single garter strap, torn pantyhose, mouse tail, high heel boots belle, hair ornament, earrings, necklace, hooded jacket, skirt, asymmetrical legwear || zzzanby, grey hair, headphones, choker, detached sleeves, sleeveless jacket, midriff, fingerless gloves, belt, pleated skirt, thigh strap, thighhighs, panty straps || zhuyuan, ponytail, cropped jacket, collared shirt, green necktie, black gloves, belt, pants || qingyi, green hair, twintails, green eyes, hair ornament, crop top, sleeveless, blue shirt, elbow gloves, fingerless gloves, robot joints, short shorts, knee boots || yanagi, pink eyes, pink hair, semi-rimless eyewear, dress shirt, black neck ribbon, shoulder armor, underbust, belt, black gloves, id card, high-waist skirt || miyabi, red eyes, green jacket, necktie, black necktie, white shirt, id card, hakama skirt, pantyhose, high heel boots || paethon, short over long sleeves, open jacket, black shirt
蒼角ちゃん





現状0.6-0.7がベスト。
星見雅





これはどれでも良いぐらいいい感じでLoRAが効いています。
クレタ





0.7だけ服装が違うけどどれでも良い感じのクオリティ。
借金王ニコ





0.7-0.8はマシで、0.6以下は微妙。
エレン・ジョー





これもどれでもいい感じですが、0.5のかわいいけど予期していないものは除外対象です。
2025年2月の新キャラのアストラ





どれでもいい感じであんまり分からないので判断つかいない('ω')
飲んだくれの火炎放射器のバーニス





私服でいろいろ着せれる感じのLoRAっぽいですが、普段の衣装じゃないので誰なのかなという感じになります。
あのダイナマイトボディーが見えない事には普通の私服はあんまりかもですね。
キャラLoRAが反応するかを時短で試すワイルカード化の拡張ツール「combination-lora」の注意点
上記一部の生成を載せています。
この中で2つほどillustrious系のcheckPointが反応しませんでした。
反応しないというのが分かった場合は、LoRAの説明サイトにいき、使用を確認する事で次に活かせます。
LoRAをワイルドカード化したい時の注意点があります。
LoRAの名前に アンダーバーが2個あるやつはエラーとなり、Dynamic prompts自体が使えなくなり、ワイルカードがそのまま出力されます。
これが手間なのですが、ワイルカード化する時に__アンバーが名前に2つ連続続いている場合は修正する処理を入れられるようできればしたいと思います。
いいなと思ったら応援しよう!
