Bing-su / adetailer

Auto detecting, masking and inpainting with detection model.
GNU Affero General Public License v3.0
4.18k stars 324 forks source link

[Bug]: Error when using ADetailer API #335

Closed isoyaoya closed 1 year ago

isoyaoya commented 1 year ago

Describe the bug

Dear Bing,

When I am using ADetailer API, it returns following error. Could you please help to figure out reason and help to fix it? Thank you very much.

My input is :

inputs = {
    "task": "image-to-image",
    "model": "chilloutmix_NiPrunedFp32Fix.safetensors",
    "img2img_payload": {
        "init_images": [encode_image_to_base64(image3)],
        "resize_mode": 0, 
        "denoising_strength": 0.75,
        "mask": encode_image_to_base64(image3_mask), 
        "mask_blur": 4, 
        "inpainting_fill": 1, 
        "inpaint_full_res": False,
        "inpaint_full_res_padding": 32, 
        "inpainting_mask_invert": 1, 
        "styles": [
            "None", "None"
        ],
        "prompt": " a real woman, portril photography, full body, slim body, best quality, good hands",
        "seed": -1, 
        "subseed": -1, 
        "subseed_strength": 0, 
        "seed_resize_from_h": 0, 
        "seed_resize_from_w": 0, 
        "sampler_name": "DPM++ SDE Karras",
        "batch_size": 1, 
        "n_iter": 1,
        "steps": 20, 
        "cfg_scale": 7, 
        "width": 768,
        "height": 1024, 
        "restore_faces": False, 
        "tiling": False, 
        "do_not_save_samples": True,
        "do_not_save_grid": True,
         "negative_prompt": "",
        "eta": 0,
        "s_churn": 0,
        "s_tmax": 0,
        "s_tmin": 0,
        "s_noise": 1,
        "override_settings_restore_afterwards": False,
        "sampler_index": "DPM++ SDE Karras", 
        "include_init_images": True,
        "send_images": True,
        "save_images": False,
        "alwayson_scripts": {
                "ADetailer": {
                      "args": [
                        True,
                        {
                          "ad_model": "face_yolov8m.pt",
                          "ad_prompt": "detailed face",
                          "ad_negative_prompt": "",
                          "ad_confidence": 0.3,
                          "ad_mask_k_largest": 0,
                          "ad_mask_min_ratio": 0.0,
                          "ad_mask_max_ratio": 1.0,
                          "ad_dilate_erode": 32,
                          "ad_x_offset": 0,
                          "ad_y_offset": 0,
                          "ad_mask_merge_invert": "None",
                          "ad_mask_blur": 4,
                          "ad_denoising_strength": 0.4,
                          "ad_inpaint_only_masked": False,
                          "ad_inpaint_only_masked_padding": 0,
                          "ad_use_inpaint_width_height": True,
                          "ad_inpaint_width": 768,
                          "ad_inpaint_height": 1024,
                          "ad_use_steps": True,
                          "ad_steps": 28,
                          "ad_use_cfg_scale": False,
                          "ad_cfg_scale": 7.0,
                          "ad_use_sampler": False,
                          "ad_sampler": "DPM++ 2M Karras",
                          "ad_use_noise_multiplier": False,
                          "ad_noise_multiplier": 1.0,
                          "ad_use_clip_skip": False,
                          "ad_clip_skip": 1,
                          "ad_restore_face": False,
                          "ad_controlnet_model": "openpose",
                          "ad_controlnet_weight": 1.0,
                          "ad_controlnet_guidance_start": 0.0,
                          "ad_controlnet_guidance_end": 1.0
                        }
                      ]
                    }
        }
    }
}

Screenshots

No response

Console logs, from start to end.

2023-09-22T06:10:04.912Z    Error running process: /opt/ml/code/extensions/adetailer/scripts/!adetailer.py

2023-09-22T06:10:04.912Z    Traceback (most recent call last): File "/opt/ml/code/modules/scripts.py", line 417, in process script.process(p, *script_args) File "/opt/ml/code/extensions/adetailer/adetailer/traceback.py", line 159, in wrapper raise error from None

2023-09-22T06:10:04.912Z    ValueError:

2023-09-22T06:10:04.912Z    ╭──────────────────────────────────────────────────────────────────────────╮

2023-09-22T06:10:04.912Z    │ System info │

2023-09-22T06:10:04.912Z    │ ┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:04.912Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:04.912Z    │ ┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:04.912Z    │ │ Platform │ Linux-4.14.322-244.539.amzn2.x86_64-x86_64-with-glibc… │ │

2023-09-22T06:10:04.912Z    │ │ Python │ 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0] │ │

2023-09-22T06:10:04.912Z    │ │ Version │ Unknown (too old or vladmandic) │ │

2023-09-22T06:10:04.912Z    │ │ Commit │ Unknown │ │

2023-09-22T06:10:04.912Z    │ │ Commandline │ ['launch.py', '--api', '--listen', '--port', '8080', │ │

2023-09-22T06:10:04.912Z    │ │ │ '--xformers', '--ckpt-dir', │ │

2023-09-22T06:10:04.912Z    │ │ │ '/tmp/models/Stable-diffusion', '--controlnet-dir', │ │

2023-09-22T06:10:04.912Z    │ │ │ '/tmp/models/ControlNet', '--lora-dir', │ │

2023-09-22T06:10:04.912Z    │ │ │ '/tmp/models/Lora', '--vae-dir', '/tmp/models/VAE', │ │

2023-09-22T06:10:04.912Z    │ │ │ '--embeddings-s3uri', │ │

2023-09-22T06:10:04.912Z    │ │ │ 's3://sagemaker-us-west-2-69/stable-diffusi… │ │

2023-09-22T06:10:04.912Z    │ │ │ '--embeddings-dir', '/tmp/embeddings', │ │

2023-09-22T06:10:04.912Z    │ │ │ '--hypernetwork-s3uri', │ │

2023-09-22T06:10:04.912Z    │ │ │ 's3://sagemaker-us-west-2-69118/stable-diffusi… │ │

2023-09-22T06:10:04.912Z    │ │ │ '--hypernetwork-dir', '/tmp/hypernetwork', '--ckpt', │ │

2023-09-22T06:10:04.912Z    │ │ │ '/tmp/models/Stable-diffusion/v1-5-pruned.ckpt'] │ │

2023-09-22T06:10:04.912Z    │ │ Libraries │ {'torch': '1.13.1', 'torchvision': '0.14.1', │ │

2023-09-22T06:10:04.912Z    │ │ │ 'ultralytics': '8.0.184', 'mediapipe': '0.10.5'} │ │

2023-09-22T06:10:04.912Z    │ └─────────────┴────────────────────────────────────────────────────────┘ │

2023-09-22T06:10:04.912Z    │ Inputs │

2023-09-22T06:10:04.912Z    │ ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:04.912Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:04.912Z    │ ┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:04.912Z    │ │ prompt │ a real woman, portril photography, full body, │ │

2023-09-22T06:10:04.912Z    │ │ │ slim body, best quality, good hands │ │

2023-09-22T06:10:04.912Z    │ │ negative_prompt │ │ │

2023-09-22T06:10:04.912Z    │ │ n_iter │ 1 │ │

2023-09-22T06:10:04.912Z    │ │ batch_size │ 1 │ │

2023-09-22T06:10:04.912Z    │ │ width │ 768 │ │

2023-09-22T06:10:04.912Z    │ │ height │ 1024 │ │

2023-09-22T06:10:04.912Z    │ │ sampler_name │ DPM++ SDE Karras │ │

2023-09-22T06:10:04.912Z    │ │ enable_hr │ False │ │

2023-09-22T06:10:04.912Z    │ │ hr_upscaler │ │ │

2023-09-22T06:10:04.912Z    │ │ checkpoint │ chilloutmix_NiPrunedFp32Fix.safetensors │ │

2023-09-22T06:10:04.912Z    │ │ vae │ Automatic │ │

2023-09-22T06:10:04.912Z    │ │ unet │ ------ │ │

2023-09-22T06:10:04.912Z    │ └─────────────────┴────────────────────────────────────────────────────┘ │

2023-09-22T06:10:04.912Z    │ ADetailer │

2023-09-22T06:10:04.912Z    │ ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:04.912Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:04.912Z    │ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:04.912Z    │ │ version │ 23.9.3 │ │

2023-09-22T06:10:04.912Z    │ │ ad_model │ face_yolov8m.pt │ │

2023-09-22T06:10:04.912Z    │ │ ad_prompt │ detailed face │ │

2023-09-22T06:10:04.912Z    │ │ ad_negative_prompt │ │ │

2023-09-22T06:10:04.912Z    │ │ ad_controlnet_model │ openpose │ │

2023-09-22T06:10:04.912Z    │ │ is_api │ True │ │

2023-09-22T06:10:04.912Z    │ └─────────────────────┴─────────────────┘ │

2023-09-22T06:10:04.912Z    │ ╭───────────────── Traceback (most recent call last) ──────────────────╮ │

2023-09-22T06:10:04.912Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:208 in │ │

2023-09-22T06:10:04.912Z    │ │ get_args │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 205 │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 206 │ │ for n, arg_dict in enumerate(args, 1): │ │

2023-09-22T06:10:04.912Z    │ │ 207 │ │ │ try: │ │

2023-09-22T06:10:04.912Z    │ │ ❱ 208 │ │ │ │ inp = ADetailerArgs(**arg_dict) │ │

2023-09-22T06:10:04.912Z    │ │ 209 │ │ │ except ValueError as e: │ │

2023-09-22T06:10:04.912Z    │ │ 210 │ │ │ │ msgs = [ │ │

2023-09-22T06:10:04.912Z    │ │ 211 │ │ │ │ │ f"[-] ADetailer: ValidationError when vali │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ in pydantic.main.BaseModel.__init__:341 │ │

2023-09-22T06:10:04.912Z    │ ╰──────────────────────────────────────────────────────────────────────╯ │

2023-09-22T06:10:04.912Z    │ ValidationError: 19 validation errors for ADetailerArgs │

2023-09-22T06:10:04.912Z    │ batch_images │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ control_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ enabled │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ guidance_end │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ guidance_start │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ image │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ input_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ is_ui │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ loopback │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ low_vram │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ model │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ module │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ output_dir │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ pixel_perfect │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ processor_res │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ resize_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ threshold_a │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ threshold_b │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ weight │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ │

2023-09-22T06:10:04.912Z    │ The above exception was the direct cause of the following exception: │

2023-09-22T06:10:04.912Z    │ │

2023-09-22T06:10:04.912Z    │ ╭───────────────── Traceback (most recent call last) ──────────────────╮ │

2023-09-22T06:10:04.912Z    │ │ /opt/ml/code/extensions/adetailer/adetailer/traceback.py:139 in │ │

2023-09-22T06:10:04.912Z    │ │ wrapper │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 136 │ │ width = width - 4 if width > 4 else None │ │

2023-09-22T06:10:04.912Z    │ │ 137 │ │ console = Console(file=string, width=width) │ │

2023-09-22T06:10:04.912Z    │ │ 138 │ │ try: │ │

2023-09-22T06:10:04.912Z    │ │ ❱ 139 │ │ │ return func(*args, **kwargs) │ │

2023-09-22T06:10:04.912Z    │ │ 140 │ │ except Exception as e: │ │

2023-09-22T06:10:04.912Z    │ │ 141 │ │ │ tables = [ │ │

2023-09-22T06:10:04.912Z    │ │ 142 │ │ │ │ get_table(title, data) │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:544 in │ │

2023-09-22T06:10:04.912Z    │ │ process │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 541 │ │ │ return │ │

2023-09-22T06:10:04.912Z    │ │ 542 │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 543 │ │ if self.is_ad_enabled(*args_): │ │

2023-09-22T06:10:04.912Z    │ │ ❱ 544 │ │ │ arg_list = self.get_args(p, *args_) │ │

2023-09-22T06:10:04.912Z    │ │ 545 │ │ │ extra_params = self.extra_params(arg_list) │ │

2023-09-22T06:10:04.912Z    │ │ 546 │ │ │ p.extra_generation_params.update(extra_params) │ │

2023-09-22T06:10:04.912Z    │ │ 547 │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:218 in │ │

2023-09-22T06:10:04.912Z    │ │ get_args │ │

2023-09-22T06:10:04.912Z    │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 215 │ │ │ │ │ dtype = type(arg) │ │

2023-09-22T06:10:04.912Z    │ │ 216 │ │ │ │ │ arg = "DEFAULT" if arg is None else repr(a │ │

2023-09-22T06:10:04.912Z    │ │ 217 │ │ │ │ │ msgs.append(f" {attr}: {arg} ({dtype})" │ │

2023-09-22T06:10:04.912Z    │ │ ❱ 218 │ │ │ │ raise ValueError("\n".join(msgs)) from e │ │

2023-09-22T06:10:04.912Z    │ │ 219 │ │ │ │ │

2023-09-22T06:10:04.912Z    │ │ 220 │ │ │ all_inputs.append(inp) │ │

2023-09-22T06:10:04.912Z    │ │ 221 │ │

2023-09-22T06:10:04.912Z    │ ╰──────────────────────────────────────────────────────────────────────╯ │

2023-09-22T06:10:04.912Z    │ ValueError: [-] ADetailer: ValidationError when validating 2nd │

2023-09-22T06:10:04.912Z    │ arguments: 19 validation errors for ADetailerArgs │

2023-09-22T06:10:04.912Z    │ batch_images │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ control_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ enabled │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ guidance_end │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ guidance_start │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ image │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ input_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ is_ui │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ loopback │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ low_vram │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ model │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ module │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ output_dir │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ pixel_perfect │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ processor_res │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ resize_mode │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ threshold_a │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ threshold_b │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ weight │

2023-09-22T06:10:04.912Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:04.912Z    │ │

2023-09-22T06:10:04.912Z    │ ad_model: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_prompt: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_negative_prompt: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_confidence: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_mask_k_largest: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_mask_min_ratio: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_mask_max_ratio: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_x_offset: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_y_offset: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_dilate_erode: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_mask_merge_invert: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_mask_blur: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_denoising_strength: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_inpaint_only_masked: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_inpaint_only_masked_padding: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_inpaint_width_height: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_inpaint_width: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_inpaint_height: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_steps: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_steps: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_cfg_scale: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_cfg_scale: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_checkpoint: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_checkpoint: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_vae: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_vae: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_sampler: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_sampler: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_noise_multiplier: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_noise_multiplier: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_use_clip_skip: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_clip_skip: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_restore_face: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_controlnet_model: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_controlnet_module: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_controlnet_weight: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_controlnet_guidance_start: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    │ ad_controlnet_guidance_end: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:04.912Z    ╰──────────────────────────────────────────────────────────────────────────╯

2023-09-22T06:10:04.912Z    Error running process: /opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_faceswap.py

2023-09-22T06:10:04.912Z    Traceback (most recent call last): File "/opt/ml/code/modules/scripts.py", line 417, in process script.process(p, *script_args) File "/opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_faceswap.py", line 260, in process result, output, swapped = swap_face( File "/opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 271, in swap_face source_img = cv2.cvtColor(np.array(source_img), cv2.COLOR_RGB2BGR)

2023-09-22T06:10:04.912Z    cv2.error: OpenCV(4.8.0) :-1: error: (-5:Bad argument) in function 'cvtColor'

2023-09-22T06:10:04.912Z    > Overload resolution failed:

2023-09-22T06:10:04.912Z    > - src data type = 0 is not supported

2023-09-22T06:10:05.412Z    > - Expected Ptr<cv::UMat> for argument 'src'

2023-09-22T06:10:05.412Z    ---path--- /tmp/hypernetwork

2023-09-22T06:10:09.714Z    ---path--- /tmp/embeddings

2023-09-22T06:10:14.682Z    #015Total progress: 281it [1:17:45, 124.02s/it]#033[A

2023-09-22T06:10:15.685Z    #015Total progress: 282it [1:17:46, 87.17s/it] #033[A

2023-09-22T06:10:16.938Z    #015Total progress: 283it [1:17:48, 61.38s/it]#033[A

2023-09-22T06:10:18.190Z    #015Total progress: 284it [1:17:49, 43.32s/it]#033[A

2023-09-22T06:10:19.444Z    #015Total progress: 285it [1:17:50, 30.68s/it]#033[A

2023-09-22T06:10:20.446Z    #015Total progress: 286it [1:17:51, 21.83s/it]#033[A

2023-09-22T06:10:21.699Z    #015Total progress: 287it [1:17:52, 15.64s/it]#033[A

2023-09-22T06:10:22.951Z    #015Total progress: 288it [1:17:53, 11.31s/it]#033[A

2023-09-22T06:10:24.204Z    #015Total progress: 289it [1:17:55, 8.27s/it]#033[A

2023-09-22T06:10:25.457Z    #015Total progress: 290it [1:17:56, 6.15s/it]#033[A

2023-09-22T06:10:26.459Z    #015Total progress: 291it [1:17:57, 4.67s/it]#033[A

2023-09-22T06:10:27.712Z    #015Total progress: 292it [1:17:58, 3.63s/it]#033[A

2023-09-22T06:10:28.965Z    #015Total progress: 293it [1:17:59, 2.90s/it]#033[A

2023-09-22T06:10:30.217Z    #015Total progress: 294it [1:18:01, 2.39s/it]#033[A

2023-09-22T06:10:30.217Z    #015Total progress: 295it [1:18:02, 2.03s/it]#033[A

2023-09-22T06:10:30.969Z    #015 0%| | 0/16 [00:00<?, ?it/s]#015 6%|▋ | 1/16 [00:07<01:51, 7.45s/it]#015 12%|█▎ | 2/16 [00:08<00:52, 3.77s/it]#015 19%|█▉ | 3/16 [00:09<00:33, 2.59s/it]#015 25%|██▌ | 4/16 [00:11<00:24, 2.04s/it]#015 31%|███▏ | 5/16 [00:12<00:19, 1.73s/it]#015 38%|███▊ | 6/16 [00:13<00:15, 1.55s/it]#015 44%|████▍ | 7/16 [00:14<00:12, 1.43s/it]#015 50%|█████ | 8/16 [00:15<00:10, 1.35s/it]#015 56%|█████▋ | 9/16 [00:16<00:09, 1.31s/it]#015 62%|██████▎ | 10/16 [00:18<00:07, 1.27s/it]#015 69%|██████▉ | 11/16 [00:19<00:06, 1.25s/it]#015 75%|███████▌ | 12/16 [00:20<00:04, 1.24s/it]#015 81%|████████▏ | 13/16 [00:21<00:03, 1.23s/it]#015 88%|████████▊ | 14/16 [00:22<00:02, 1.22s/it]#015 94%|█████████▍| 15/16 [00:24<00:01, 1.21s/it]#015100%|██████████| 16/16 [00:24<00:00, 1.03s/it]#015100%|██████████| 16/16 [00:24<00:00, 1.55s/it]

2023-09-22T06:10:30.969Z    Error running postprocess_batch: /opt/ml/code/extensions/adetailer/scripts/!adetailer.py

2023-09-22T06:10:30.969Z    Traceback (most recent call last): File "/opt/ml/code/modules/scripts.py", line 462, in postprocess_image script.postprocess_image(p, pp, *script_args) File "/opt/ml/code/extensions/adetailer/adetailer/traceback.py", line 159, in wrapper raise error from None

2023-09-22T06:10:30.969Z    ValueError:

2023-09-22T06:10:30.969Z    ╭──────────────────────────────────────────────────────────────────────────╮

2023-09-22T06:10:30.969Z    │ System info │

2023-09-22T06:10:30.969Z    │ ┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:30.969Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:30.969Z    │ ┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:30.969Z    │ │ Platform │ Linux-4.14.322-244.539.amzn2.x86_64-x86_64-with-glibc… │ │

2023-09-22T06:10:30.969Z    │ │ Python │ 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0] │ │

2023-09-22T06:10:30.969Z    │ │ Version │ Unknown (too old or vladmandic) │ │

2023-09-22T06:10:30.969Z    │ │ Commit │ Unknown │ │

2023-09-22T06:10:30.969Z    │ │ Commandline │ ['launch.py', '--api', '--listen', '--port', '8080', │ │

2023-09-22T06:10:30.969Z    │ │ │ '--xformers', '--ckpt-dir', │ │

2023-09-22T06:10:30.969Z    │ │ │ '/tmp/models/Stable-diffusion', '--controlnet-dir', │ │

2023-09-22T06:10:30.969Z    │ │ │ '/tmp/models/ControlNet', '--lora-dir', │ │

2023-09-22T06:10:30.969Z    │ │ │ '/tmp/models/Lora', '--vae-dir', '/tmp/models/VAE', │ │

2023-09-22T06:10:30.969Z    │ │ │ '--embeddings-s3uri', │ │

2023-09-22T06:10:30.969Z    │ │ │ 's3://sagemaker-us-west-2-6911/stable-diffusi… │ │

2023-09-22T06:10:30.969Z    │ │ │ '--embeddings-dir', '/tmp/embeddings', │ │

2023-09-22T06:10:30.969Z    │ │ │ '--hypernetwork-s3uri', │ │

2023-09-22T06:10:30.969Z    │ │ │ 's3://sagemaker-us-west-2-69/stable-diffusi… │ │

2023-09-22T06:10:30.969Z    │ │ │ '--hypernetwork-dir', '/tmp/hypernetwork', '--ckpt', │ │

2023-09-22T06:10:30.969Z    │ │ │ '/tmp/models/Stable-diffusion/v1-5-pruned.ckpt'] │ │

2023-09-22T06:10:30.969Z    │ │ Libraries │ {'torch': '1.13.1', 'torchvision': '0.14.1', │ │

2023-09-22T06:10:30.969Z    │ │ │ 'ultralytics': '8.0.184', 'mediapipe': '0.10.5'} │ │

2023-09-22T06:10:30.969Z    │ └─────────────┴────────────────────────────────────────────────────────┘ │

2023-09-22T06:10:30.969Z    │ Inputs │

2023-09-22T06:10:30.969Z    │ ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:30.969Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:30.969Z    │ ┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:30.969Z    │ │ prompt │ a real woman, portril photography, full body, │ │

2023-09-22T06:10:30.969Z    │ │ │ slim body, best quality, good hands │ │

2023-09-22T06:10:30.969Z    │ │ negative_prompt │ │ │

2023-09-22T06:10:30.969Z    │ │ n_iter │ 1 │ │

2023-09-22T06:10:30.969Z    │ │ batch_size │ 1 │ │

2023-09-22T06:10:30.969Z    │ │ width │ 768 │ │

2023-09-22T06:10:30.969Z    │ │ height │ 1024 │ │

2023-09-22T06:10:30.969Z    │ │ sampler_name │ DPM++ SDE Karras │ │

2023-09-22T06:10:30.969Z    │ │ enable_hr │ False │ │

2023-09-22T06:10:30.969Z    │ │ hr_upscaler │ │ │

2023-09-22T06:10:30.969Z    │ │ checkpoint │ chilloutmix_NiPrunedFp32Fix.safetensors │ │

2023-09-22T06:10:30.969Z    │ │ vae │ Automatic │ │

2023-09-22T06:10:30.969Z    │ │ unet │ ------ │ │

2023-09-22T06:10:30.969Z    │ └─────────────────┴────────────────────────────────────────────────────┘ │

2023-09-22T06:10:30.969Z    │ ADetailer │

2023-09-22T06:10:30.969Z    │ ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓ │

2023-09-22T06:10:30.969Z    │ ┃ ┃ Value ┃ │

2023-09-22T06:10:30.969Z    │ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩ │

2023-09-22T06:10:30.969Z    │ │ version │ 23.9.3 │ │

2023-09-22T06:10:30.969Z    │ │ ad_model │ face_yolov8m.pt │ │

2023-09-22T06:10:30.969Z    │ │ ad_prompt │ detailed face │ │

2023-09-22T06:10:30.969Z    │ │ ad_negative_prompt │ │ │

2023-09-22T06:10:30.969Z    │ │ ad_controlnet_model │ openpose │ │

2023-09-22T06:10:30.969Z    │ │ is_api │ True │ │

2023-09-22T06:10:30.969Z    │ └─────────────────────┴─────────────────┘ │

2023-09-22T06:10:30.969Z    │ ╭───────────────── Traceback (most recent call last) ──────────────────╮ │

2023-09-22T06:10:30.969Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:208 in │ │

2023-09-22T06:10:30.969Z    │ │ get_args │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 205 │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 206 │ │ for n, arg_dict in enumerate(args, 1): │ │

2023-09-22T06:10:30.969Z    │ │ 207 │ │ │ try: │ │

2023-09-22T06:10:30.969Z    │ │ ❱ 208 │ │ │ │ inp = ADetailerArgs(**arg_dict) │ │

2023-09-22T06:10:30.969Z    │ │ 209 │ │ │ except ValueError as e: │ │

2023-09-22T06:10:30.969Z    │ │ 210 │ │ │ │ msgs = [ │ │

2023-09-22T06:10:30.969Z    │ │ 211 │ │ │ │ │ f"[-] ADetailer: ValidationError when vali │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ in pydantic.main.BaseModel.__init__:341 │ │

2023-09-22T06:10:30.969Z    │ ╰──────────────────────────────────────────────────────────────────────╯ │

2023-09-22T06:10:30.969Z    │ ValidationError: 19 validation errors for ADetailerArgs │

2023-09-22T06:10:30.969Z    │ batch_images │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ control_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ enabled │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ guidance_end │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ guidance_start │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ image │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ input_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ is_ui │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ loopback │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ low_vram │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ model │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ module │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ output_dir │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ pixel_perfect │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ processor_res │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ resize_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ threshold_a │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ threshold_b │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ weight │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ │

2023-09-22T06:10:30.969Z    │ The above exception was the direct cause of the following exception: │

2023-09-22T06:10:30.969Z    │ │

2023-09-22T06:10:30.969Z    │ ╭───────────────── Traceback (most recent call last) ──────────────────╮ │

2023-09-22T06:10:30.969Z    │ │ /opt/ml/code/extensions/adetailer/adetailer/traceback.py:139 in │ │

2023-09-22T06:10:30.969Z    │ │ wrapper │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 136 │ │ width = width - 4 if width > 4 else None │ │

2023-09-22T06:10:30.969Z    │ │ 137 │ │ console = Console(file=string, width=width) │ │

2023-09-22T06:10:30.969Z    │ │ 138 │ │ try: │ │

2023-09-22T06:10:30.969Z    │ │ ❱ 139 │ │ │ return func(*args, **kwargs) │ │

2023-09-22T06:10:30.969Z    │ │ 140 │ │ except Exception as e: │ │

2023-09-22T06:10:30.969Z    │ │ 141 │ │ │ tables = [ │ │

2023-09-22T06:10:30.969Z    │ │ 142 │ │ │ │ get_table(title, data) │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:644 in │ │

2023-09-22T06:10:30.969Z    │ │ postprocess_image │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 641 │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 642 │ │ p._ad_idx = getattr(p, "_ad_idx", -1) + 1 │ │

2023-09-22T06:10:30.969Z    │ │ 643 │ │ init_image = copy(pp.image) │ │

2023-09-22T06:10:30.969Z    │ │ ❱ 644 │ │ arg_list = self.get_args(p, *args_) │ │

2023-09-22T06:10:30.969Z    │ │ 645 │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 646 │ │ if p.scripts is not None and self.need_call_postproces │ │

2023-09-22T06:10:30.969Z    │ │ 647 │ │ │ dummy = Processed(p, [], p.seed, "") │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ /opt/ml/code/extensions/adetailer/scripts/!adetailer.py:218 in │ │

2023-09-22T06:10:30.969Z    │ │ get_args │ │

2023-09-22T06:10:30.969Z    │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 215 │ │ │ │ │ dtype = type(arg) │ │

2023-09-22T06:10:30.969Z    │ │ 216 │ │ │ │ │ arg = "DEFAULT" if arg is None else repr(a │ │

2023-09-22T06:10:30.969Z    │ │ 217 │ │ │ │ │ msgs.append(f" {attr}: {arg} ({dtype})" │ │

2023-09-22T06:10:30.969Z    │ │ ❱ 218 │ │ │ │ raise ValueError("\n".join(msgs)) from e │ │

2023-09-22T06:10:30.969Z    │ │ 219 │ │ │ │ │

2023-09-22T06:10:30.969Z    │ │ 220 │ │ │ all_inputs.append(inp) │ │

2023-09-22T06:10:30.969Z    │ │ 221 │ │

2023-09-22T06:10:30.969Z    │ ╰──────────────────────────────────────────────────────────────────────╯ │

2023-09-22T06:10:30.969Z    │ ValueError: [-] ADetailer: ValidationError when validating 2nd │

2023-09-22T06:10:30.969Z    │ arguments: 19 validation errors for ADetailerArgs │

2023-09-22T06:10:30.969Z    │ batch_images │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ control_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ enabled │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ guidance_end │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ guidance_start │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ image │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ input_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ is_ui │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ loopback │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ low_vram │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ model │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ module │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ output_dir │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ pixel_perfect │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ processor_res │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ resize_mode │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ threshold_a │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ threshold_b │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ weight │

2023-09-22T06:10:30.969Z    │ extra fields not permitted (type=value_error.extra) │

2023-09-22T06:10:30.969Z    │ │

2023-09-22T06:10:30.969Z    │ ad_model: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_prompt: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_negative_prompt: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_confidence: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_mask_k_largest: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_mask_min_ratio: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_mask_max_ratio: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_x_offset: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_y_offset: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_dilate_erode: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_mask_merge_invert: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_mask_blur: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_denoising_strength: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_inpaint_only_masked: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_inpaint_only_masked_padding: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_inpaint_width_height: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_inpaint_width: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_inpaint_height: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_steps: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_steps: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_cfg_scale: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_cfg_scale: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_checkpoint: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_checkpoint: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_vae: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_vae: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_sampler: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_sampler: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_noise_multiplier: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_noise_multiplier: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_use_clip_skip: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_clip_skip: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_restore_face: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_controlnet_model: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_controlnet_module: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_controlnet_weight: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_controlnet_guidance_start: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    │ ad_controlnet_guidance_end: DEFAULT (<class 'NoneType'>) │

2023-09-22T06:10:30.969Z    ╰──────────────────────────────────────────────────────────────────────────╯

2023-09-22T06:10:30.969Z    Error running postprocess: /opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_faceswap.py

2023-09-22T06:10:30.969Z    Traceback (most recent call last): File "/opt/ml/code/modules/scripts.py", line 444, in postprocess script.postprocess(p, processed, *script_args) File "/opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_faceswap.py", line 308, in postprocess result, output, swapped = swap_face( File "/opt/ml/code/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 271, in swap_face source_img = cv2.cvtColor(np.array(source_img), cv2.COLOR_RGB2BGR)

2023-09-22T06:10:30.969Z    cv2.error: OpenCV(4.8.0) :-1: error: (-5:Bad argument) in function 'cvtColor'

2023-09-22T06:10:30.969Z    > Overload resolution failed:

2023-09-22T06:10:30.969Z    > - src data type = 0 is not supported

2023-09-22T06:10:35.714Z    > - Expected Ptr<cv::UMat> for argument 'src'

List of installed extensions

No response

Bing-su commented 1 year ago

Thank you for your report. It looks like this is not an adetailer error, but rather a propagated error from somewhere else.

isoyaoya commented 1 year ago

Hi, SU. If I just use controlnet and reactor extension, it won't be any error. So looks like it is error caused by adetailer. How to both use Controlnet and adetailer via api?