「ADetailer」(アフターディテイラー)とは、画像の生成時に顔と手足を認識しその箇所をマスキングし自動で修正をかけてくれるという拡張機能になります。導入方法はいたって簡単。コードを入力するだけです。

「ADetailer」の導入方法
下記のコードをコピーし赤枠の部分へ挿入するだけです。
!git clone https://github.com/Bing-su/adetailer /content/stable-diffusion-webui/extensions/adetailer

「ADetailer」の使用方法
使い方も簡単で、「Enable ADetailer」にチェックを入れるだけです。

モデルは、「face_yolov8s.pt」がおすすめですが、ご自分の好みに合わせて色々試してください。
もっと「ADetailer」を掘り下げたい方は、「AI is in wonderland」さんの動画がめちゃくちゃわかりやすいので参考にされてください。
「ADetailer」で「full body」も怖いものなし!?
全身画像を生成すると顔が潰れることがよくあります。hires.fixを使えば、高画質な画像が生成できるのですがデメリットとして時間がかかるという点があります。その点こちらの「ADetailer」は時間もかからず顔を修正してくれるため「full body」での全身画像でもバンバン生成することができるようになります。

「ADetailer」を使った作例
best quality, masterpiece, illustration, an extremely delicate and beautiful, extremely detailed CG unity 8k wallpaper, amazing, finely detail, masterpiece, best quality, (full body:1.4), official art, extremely detailed eyes, huge file size, ultra-detailed, high res, extremely detailed, beautiful detailed girl, extremely detailed eyes and face, beautiful detailed eyes, face, face, face, angry, night city, night street, ((outdoors)), looking back, <lora:baggysockslayerb2e1:0.9>, school uniform,
Negative prompt: paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), low res, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (outdoor:1.6), backlight, (ugly), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), mutated hands, (poorly drawn hands:1.331), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (more than 2 nipples:1.331), (missing arms), (extra legs), (fused fingers:1.61051), (too many fingers), (unclear eyes:1.331), low res, bad hands, missing fingers, extra digit, (futa:1.1), bad hands, missing fingers, skin spots, acnes, skin blemishes, age spot, glans, nude, nipples,
Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 8, Seed: 6276101878, Size: 800×1200, Model hash: ac68270450, Model: bra_v5, ADetailer model: face_yolov8s.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: 23.6.4
「full body」(全身画)でもこのとおり、顔が潰れることなく生成されます。





「ADetailer」のおかげで全身画像を臆することなく生成ができるようになりました。AI画像の表現の幅も広がったため、AI画像の創作意欲もモリモリ湧いてきます。AI画像の日進月歩には日々、驚かされるばかりです。
コメント