# bing-su/adetailer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/bing-su-adetailer).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,763 stars · 389 forks · Python · AGPL-3.0

## Links

- GitHub: https://github.com/Bing-su/adetailer
- awesome-repositories: https://awesome-repositories.com/repository/bing-su-adetailer.md

## Topics

`sd-webui` `stable-diffusion-webui` `stable-diffusion-webui-plugin`

## Description

Adetailer is a Stable Diffusion inpainting extension and automated detail enhancer that identifies specific image regions to improve quality through targeted inpainting. It functions as an AI image masking tool that uses detection models to create precise masks for automated image editing.

The system distinguishes itself by integrating structural guides, such as depth and pose, to constrain the inpainting process and maintain anatomical consistency. It also supports object-specific prompt assignment, allowing unique text instructions to be mapped to multiple detected objects within a single image using separator tokens.

The tool provides a full pipeline for image refinement, covering automated mask generation, morphological mask transformations, and object filtering based on confidence thresholds and size ratios. It combines these capabilities into an iterative process of detection, masking, and diffusion to refine details without altering the global composition.

## Tags

### Graphics & Multimedia

- [Image Enhancement Tools](https://awesome-repositories.com/f/graphics-multimedia/image-editing-processing/image-enhancement-tools.md) — Automates the process of improving specific image regions through detection-driven targeted inpainting.
- [AI Image Masking](https://awesome-repositories.com/f/graphics-multimedia/ai-image-masking.md) — Functions as an AI tool that uses detection models to automatically generate masks for image enhancement.
- [Automated Image Enhancements](https://awesome-repositories.com/f/graphics-multimedia/automated-image-enhancements.md) — Automatically identifies image regions and applies unique prompts to improve visual quality via inpainting.
- [Morphological Operations](https://awesome-repositories.com/f/graphics-multimedia/image-editing-processing/image-processing/morphological-operations.md) — Uses dilation and erosion operations to adjust the boundaries of detected masks.
- [Masking Tools](https://awesome-repositories.com/f/graphics-multimedia/masking-tools.md) — Provides tools for modifying detected masks via erosion, dilation, and offsets for precise control. ([source](https://github.com/bing-su/adetailer#readme))

### Artificial Intelligence & ML

- [Iterative Image Inpainting](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agentic-workflows/iterative-refinement-workflows/mask-refinement-loops/iterative-image-inpainting.md) — Executes a sequential pipeline of detection, masking, and diffusion to iteratively refine image details.
- [Binary Mask Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation/object-mask-generators/point-based-mask-generators/binary-mask-generators.md) — Automatically generates binary masks around detected objects to isolate them for targeted processing.
- [ControlNet Guidance](https://awesome-repositories.com/f/artificial-intelligence-ml/controlnet-guidance.md) — Integrates spatial control networks to maintain anatomical and structural consistency during localized inpainting.
- [Image Inpainting](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-pipelines/text-to-image-generators/image-inpainting.md) — Performs targeted generative filling of specific image regions based on detected objects and tailored text prompts.
- [Generative Masking](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation/image-editing/generative-masking.md) — Automatically generates precise masks using detection models to isolate objects for targeted editing.
- [Object-Specific Prompt Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/object-specific-prompt-mapping.md) — Provides the ability to map distinct inpainting prompts to different detected objects using separator tokens for targeted refinement. ([source](https://github.com/Bing-su/adetailer/wiki/Advanced))
- [Object Detection](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/object-detection-tracking/object-detection.md) — Utilizes object detection to identify regions that should be processed or ignored based on size and confidence. ([source](https://github.com/bing-su/adetailer#readme))
- [Inpainting Constraint Plugins](https://awesome-repositories.com/f/artificial-intelligence-ml/controlnet-guidance/inpainting-constraint-plugins.md) — Provides a bridge that uses depth and pose guides to constrain automated inpainting masks.
- [Confidence Filtering](https://awesome-repositories.com/f/artificial-intelligence-ml/face-detection/confidence-filtering.md) — Implements a mechanism to prune detection results based on statistical reliability scores to prevent false positives.
- [ControlNet Depth Replacements](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation-models/conditional-image-generation/depth-map-conditioning/controlnet-depth-replacements.md) — Integrates depth, openpose, and lineart guides to provide structural constraints during the inpainting process. ([source](https://github.com/bing-su/adetailer#readme))
- [Object-Specific Prompt Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/token-level-prompt-augmentations/object-specific-prompt-mapping.md) — Allows assigning unique text instructions to different detected objects within a single image.

### Part of an Awesome List

- [Stable Diffusion Ecosystem](https://awesome-repositories.com/f/awesome-lists/ai/stable-diffusion-ecosystem.md) — Extends the Stable Diffusion ecosystem with automated object detection and targeted inpainting capabilities.
