Skip to content

Settings

Dowon edited this page Sep 2, 2024 · 6 revisions

Commandline option

  • --ad-no-huggingface

Disable downloading models from huggingface.

Settings tap option

Max models

The total number of models you want to use, default = 4

Extra paths to scan adetailer models separated by vertical bars(|)

Extra paths to scan adetailer models. Separated by vertical bars(|), get the files with extension .pt in those folders.

Output directory for adetailer images (https://github.com/Bing-su/adetailer/pull/689)

The directory to store images with the ad- suffix.

Save mask preview

Save the prediction image of the detection model together in the image output path.

Save image before ADetailer

Save the image before ADetailer together in the image output path.

Apply only selected scripts to ADetailer

Only the specified scripts are applied to ADetailer. This option exists because some extensions cause errors when used with ADetailer.

Script names to apply to ADetailer

Scripts names to apply to ADetailer. You should write the name of the python file, not the name of the extension.

Sort bounding boxes by

Sort the bounding boxes. Only makes sense when used in conjunction with the [SEP] features.

  • None: None
  • Position (left to right): Sort by the left x-coordinate of the bounding box
  • Position (center to edge): Sort by the center of the bounding box being closer to the center of the image
  • Area (large to small): Sort by area of bounding box (not area of mask)

Power scaling for dynamic denoise strength based on bounding box size (https://github.com/Bing-su/adetailer/pull/678)

Purpose: Automatically adjusts the denoising strength for each subject, reducing or eliminating the need for manual tweaking. Accepted values: -10 to 10. Recommended setting: Between 2 and 4, or set to 0 to disable. When enabled, the Inpaint denoising strength will be dynamically scaled based on the size of each bounding box relative to the entire image. The value of this setting controls the steepness of the scaling curve: higher values lead to smaller areas receiving more denoising and larger areas less, while lower values create a more gradual curve. Note that Inpaint denoising strength sets the maximum denoising strength this scaling can apply.

Try to match inpainting size to bounding box size, if 'Use separate width/height' is not set (https://github.com/Bing-su/adetailer/pull/678)

Purpose: Automatically adjusts the inpainting dimensions to match the bounding box aspect ratio, reducing the need to manually set inpainting width/height. Accepted values: Off, Strict, Free. Recommended setting: Use "Strict" for SDXL models and "Free" for other models. When enabled, this setting overrides the inpainting width and height per bounding box with values that better match the box's aspect ratio, as long as the new dimensions are not significantly smaller. In "Strict" mode, the nearest SDXL-trained resolution is used to maximize compatibility. In "Free" mode, the larger of the original inpainting dimensions is scaled by the aspect ratio. This results in an exact match, but may not conform to the model's recommended aspect ratios/resolutions. For either mode to work, you must disable the Use separate width/height option in ADetailer's inpainting settings.

Clone this wiki locally