Home Creators Posts Import Register Favorites Logout

Downloads

Content

Tag:1girl,1boy,(head swap),headswap male,headswap female,breasts,skirt,pants,

Section 1: Introduction & Tools

这个lora适用于waiNSFWIllustrious_v140及其以上,我是用140训练的。这个lora可以在solo或者双人的时候起效。 在使用的时候最好使用https://github.com/hako-mikan/sd-webui-lora-block-weight 这样这个lora就不会污染你的画风。 在使用中,它和画风的lora的叠加效果很不错,大多数都是和谐的。

このLoRAはwaiNSFWIllustrious_v140およびそれ以降のバージョンに対応しており、v140を使用して学習させました。ソロ(単体)またはペア(二人)の構図で効果を発揮します。 使用する際は、https://github.com/hako-mikan/sd-webui-lora-block-weight の使用を強く推奨します。 これを使用することで、このLoRAがあなたの画風を汚染するのを防ぐことができます。 使用感として、画風LoRAとの重ね合わせ効果は非常に良く、その多くは調和のとれた結果になります。

This LoRA is suitable for waiNSFWIllustrious_v140 and above; I trained it using v140. It works effectively for both solo and duo compositions. When using it, it is highly recommended to use https://github.com/hako-mikan/sd-webui-lora-block-weight. This ensures that the LoRA does not contaminate your art style. In practice, it stacks very well with style LoRAs, producing harmonious results in most cases.

Section 2: Parameters & Troubleshooting

<lora:插替:lbw=1,0,0,0,1,1,1,0.1,0.1,0,0,0>这是我使用lora-block-weight 插件的参数。 Tag:1girl,1boy,(head swap),headswap male,headswap female。 但是很多时候这个lora会失效,需要你多次使用,或者加大权重。或者减小另一个lora的权重。 有时候加上裙子或者胸部的tag会有些帮助。 非常建议在生完图片之后用adetailer插件修复脸,这样的话效果会更好。

<lora:插替:lbw=1,0,0,0,1,1,1,0.1,0.1,0,0,0>、これは私が使用しているlora-block-weightプラグインのパラメータです。 タグ: 1girl, 1boy, (head swap), headswap male, headswap female。 しかし、このLoRAは頻繁に効果が出ないことがあります。その場合、何度も生成を試すか、このLoRAのウェイト(重み)を上げる、あるいはもう一方のLoRAのウェイトを下げる必要があります。 スカートや胸などのタグを追加すると改善する場合もあります。 生成後にADetailerプラグインを使って顔を修正することを強くお勧めします。そうすることで、より良い結果が得られます。

<lora:插替:lbw=1,0,0,0,1,1,1,0.1,0.1,0,0,0>, these are the parameters I use with the lora-block-weight extension. Tags: 1girl, 1boy, (head swap), headswap male, headswap female. However, this LoRA often fails to take effect. You may need to generate multiple times, increase its weight, or decrease the weight of the other LoRA. Sometimes adding tags for skirts or breasts can be helpful. It is highly recommended to use the ADetailer extension to fix the faces after generation; this will yield much better results.

Section 3: Example Prompt 1

<lora:插替:lbw=1,0,0,0,1,1,1,0.1,0.1,0,0,0>,(head swap),1girl,emiya shirou,headswap male,short hair,cowboy shot,1boy,matou sakura,long hair,headswap female,breasts,<lora:n92go_92styleIllustrious:0.75>,n92go,Negative prompt: lowres,(worst quality, bad quality:1.2),bad anatomy,sketch,jpeg artifacts,signature,watermark,old,oldest,censored,bar_censor,simple background,extra head,conjoined,artist name,patreon username,web address,text:1.5,multiple views:1.8,Steps: 20, Sampler: Euler a, Schedule type: Karras, CFG scale: 5, Seed: 177227103, Size: 1024x1536, Model hash: a5f58eb1c3, Model: waiIllustriousSDXL_v160, RNG: CPU, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.4, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 25.3.0, Lora hashes: "插替: bb5b65a340da, n92go_92styleIllustrious: 294602df7092", Version: f2.0.1v1.10.1-previous-669-gdfdcbab6

Section 4: Tips for Character Tags

不过有时候,直接放入两个角色的名字,却没有办法生效,这时候在女角色的后面加上 name(cosplay),人名(cosplay),最好不要忘了加breasts这类tag, 这样效果可能就会好很多。

ただし、2人のキャラクター名を直接入れても効果がない場合があります。その時は、女性キャラクターの後ろに name(cosplay)、つまり キャラクター名(cosplay) を追加してみてください。また、breasts などのタグも忘れずに追加すると、効果が大幅に改善される可能性があります。

However, sometimes simply putting in the names of the two characters doesn't work. In this case, add name(cosplay) — specifically CharacterName(cosplay) — after the female character's name. Also, it's best not to forget tags like breasts, as this might significantly improve the results.

Section 5: Example Prompt 2 (Cosplay variant)

<lora:插替:lbw=1,0,0,0,1,1,1,0.1,0.1,0,0,0>,(head swap),1girl,emiya shirou,headswap male,short hair,cowboy shot,1boy,matou sakura\(cosplay\),long hair,headswap female,breasts,kiss,<lora:n92go_92styleIllustrious:0.75>,n92go,Negative prompt: lowres,(worst quality, bad quality:1.2),bad anatomy,sketch,jpeg artifacts,signature,watermark,old,oldest,censored,bar_censor,simple background,extra head,conjoined,artist name,patreon username,web address,text:1.5,multiple views:1.8,Steps: 20, Sampler: Euler a, Schedule type: Karras, CFG scale: 5, Seed: 4136528589, Size: 1024x1536, Model hash: a5f58eb1c3, Model: waiIllustriousSDXL_v160, RNG: CPU, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.4, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 25.3.0, Lora hashes: "插替: bb5b65a340da, n92go_92styleIllustrious: 294602df7092", Version: f2.0.1v1.10.1-previous-669-gdfdcbab6

Section 6: Advanced Usage & Limitations

它也可以作用于有多个角色的lora之中。 不过如果角色间的体型过于巨大,有时候脸部会有些幼化或者女性化。 女性化的话推荐用adetailer插件修复一下。 也适用于部分的单角色lora叠加使用。但是请注意,这样很容易被其他的角色特征污染。 但很多情况下,这个lora似乎无法生效。这个时候我们可以用另外一个方法,也就是图生图。这也就意味着只要能正常生成的一男一女,我们都可以交换他们。

このLoRAは、複数のキャラクターが含まれるLoRAに対しても機能します。 ただし、キャラクター間の体格差が大きすぎる場合、顔が少し幼くなったり、女性化したりすることがあります。 女性化してしまった場合は、ADetailerプラグインで修正することをお勧めします。 また、一部の単体キャラクターLoRAとの重ね合わせも可能ですが、他のキャラクターの特徴によって汚染されやすいので注意してください。 しかし、多くの状況でこのLoRAが効かないように見えることがあります。その場合は、別の方法、つまりimg2img(画像から画像生成)を使用できます。これは、正常に生成された男女のペアであれば、誰でも入れ替えることができることを意味します。

It can also work within LoRAs that contain multiple characters. However, if the size difference between the characters is too significant, the faces may sometimes appear slightly infantilized or feminized. If feminization occurs, it is recommended to fix it using the ADetailer extension. It is also suitable for stacking with some single-character LoRAs, but please note that this is prone to contamination by other character traits. In many cases, though, this LoRA might seem ineffective. When this happens, we can use another method: Img2Img. This means that as long as we can generate a normal male-female pair, we can swap them.

Section 7: Img2Img Workflow Part 1

这是一张正常的男女图。我们将他放入图生图。 加上我们的tag, 我们在图片上先交换两个角色的发色,用色块把女角色的头发变短

これは通常の男女の画像です。これをimg2imgに入れます。 タグを追加し、 画像上でまず2人のキャラクターの髪の色を交換し、色のブロックを使って女性キャラクターの髪を短く塗りつぶします。

This is a normal image of a man and a woman. We put it into Img2Img. Add our tags. On the image, strictly swap the hair colors of the two characters first, and use color blocks to paint the female character's hair shorter.

Section 8: Img2Img Workflow Part 2

这样就生成了交换的效果了。不过很明显的,女角色的单lora对男角色的脸有些污染,你可以用ADetailer修复看看,或者调小女角色的lora权重后,对脸局部重绘(之后再ADetailer修复)。

これで入れ替わりの効果が生成されました。しかし、明らかに女性キャラクターの単体LoRAが男性キャラクターの顔を少し汚染しています。ADetailerで修正してみるか、女性キャラクターのLoRAウェイトを下げてから、顔の部分をインペイント(部分修正)し、その後さらにADetailerで修正してみてください。

This generates the swap effect. However, it is obvious that the female character's single LoRA has slightly contaminated the male character's face. You can try fixing it with ADetailer, or lower the weight of the female character's LoRA, then perform inpainting on the face (and follow up with ADetailer repair).

Files

Comments

No comments found for this post.