From 5a8f303c5c6af3fa1e88c9f860b07d4fbd79e693 Mon Sep 17 00:00:00 2001 From: Bingsu Date: Sat, 7 Oct 2023 15:13:11 +0900 Subject: [PATCH] docs: update readme --- README.md | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d6fe5e4..3a00116 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# !After Detailer +# ADetailer -!After Detailer is a extension for stable diffusion webui, similar to Detection Detailer, except it uses ultralytics instead of the mmdet. +ADetailer is a extension for stable diffusion webui, similar to Detection Detailer, except it uses ultralytics instead of the mmdet. ## Install @@ -22,15 +22,17 @@ You **DON'T** need to download any model from huggingface. ## Options -| Model, Prompts | | | -| --------------------------------- | ------------------------------------- | ------------------------------------------------- | -| ADetailer model | Determine what to detect. | `None` = disable | -| ADetailer prompt, negative prompt | Prompts and negative prompts to apply | If left blank, it will use the same as the input. | +| Model, Prompts | | | +| --------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------- | +| ADetailer model | Determine what to detect. | `None` = disable | +| ADetailer prompt, negative prompt | Prompts and negative prompts to apply | If left blank, it will use the same as the input. | +| Skip img2img | Skip img2img. In practice, this works by changing the step count of img2img to 1. | img2img only | -| Detection | | | -| ------------------------------------ | -------------------------------------------------------------------------------------------- | --- | -| Detection model confidence threshold | Only objects with a detection model confidence above this threshold are used for inpainting. | | -| Mask min/max ratio | Only use masks whose area is between those ratios for the area of the entire image. | | +| Detection | | | +| ------------------------------------ | -------------------------------------------------------------------------------------------- | ------------ | +| Detection model confidence threshold | Only objects with a detection model confidence above this threshold are used for inpainting. | | +| Mask min/max ratio | Only use masks whose area is between those ratios for the area of the entire image. | | +| Mask only the top k largest | Only use the k objects with the largest area of the bbox. | 0 to disable | If you want to exclude objects in the background, try setting the min ratio to around `0.01`. @@ -86,9 +88,10 @@ Put your [ultralytics](https://github.com/ultralytics/ultralytics) yolo model in It must be a bbox detection or segment model and use all label. -## Example +## How it works -![image](https://i.imgur.com/38RSxSO.png) -![image](https://i.imgur.com/2CYgjLx.png) +ADetailer works in three simple steps. -[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F1L7V2N) +1. Create an image. +2. Detect object with a detection model and create a mask image. +3. Inpaint using the image from 1 and the mask from 2.