Automatic detection, masking and inpainting tool for details
Go to file
Bingsu 298a43000e chore: v23.5.6 2023-05-05 14:06:26 +09:00
adetailer chore: v23.5.6 2023-05-05 14:06:26 +09:00
controlnet_ext fix: revert ad_model `None`, dtype bool, annotation 2023-05-04 13:05:39 +09:00
scripts refactor: _postprocess_image 2023-05-05 13:54:33 +09:00
.gitignore chore: project metadata 2023-04-26 13:42:05 +09:00
.pre-commit-config.yaml chore: update pre-commit ruff 2023-05-03 12:15:04 +09:00
CHANGELOG.md chore: v23.5.6 2023-05-05 14:06:26 +09:00
LICENSE.md Initial commit 2023-04-26 12:58:26 +09:00
README.md docs: changelog, install 2023-05-05 08:43:52 +09:00
install.py feat: pydantic args 2023-05-04 13:40:15 +09:00
pyproject.toml docs: changlog 2023-05-04 15:04:53 +09:00

README.md

!After Detailer

!After Detailer is a extension for stable diffusion webui, similar to Detection Detailer, except it uses ultralytics instead of the mmdet.

Install

(from Mikubill/sd-webui-controlnet)

  1. Open "Extensions" tab.
  2. Open "Install from URL" tab in the tab.
  3. Enter https://github.com/Bing-su/adetailer.git to "URL for extension's git repository".
  4. Press "Install" button.
  5. Wait 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\adetailer. Use Installed tab to restart".
  6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use this method to update extensions.)
  7. Completely restart A1111 webui including your terminal. (If you do not know what is a "terminal", you can reboot your computer: turn your computer off and turn it on again.)

You DON'T need to download any model from huggingface.

Model

Model Target mAP 50 mAP 50-95
face_yolov8n.pt 2D / realistic face 0.660 0.366
face_yolov8s.pt 2D / realistic face 0.713 0.404
mediapipe_face_full realistic - -
mediapipe_face_short realistic - -

The yolo models can be found on huggingface Bingsu/adetailer.

Dataset

Datasets used for training the yolo face detection models are:

User Model

Put your ultralytics model in webui/models/adetailer. The model name should end with .pt or .pth.

It must be a bbox detection model and use only label 0.

ControlNet Inpainting

You can use the ControlNet inpaint extension if you have ControlNet installed and a ControlNet inpaint model.

On the ControlNet tab, select a ControlNet inpaint model and set the model weights.

Example

image image