Bing-su / adetailer

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

[Bug]: TypeError: StableDiffusionProcessing.__init__() got an unexpected keyword argument 'restore_faces': SDNNext Dev #729

Closed MysticDaedra closed 1 month ago

MysticDaedra commented 1 month ago

Describe the bug

Likely not an issue with adetailer, but unsure. Posting here as a requirement for SDNext bug report. Error occurs with adetailer enabled or disabled (accordion open or closed, tabs enabled or disabled).

Steps to reproduce

  1. Have adetailer installed on SDNext.
  2. Generate an image. Enabling, disabling, or putting in a prompt is irrelevant.
  3. If adetailer was enabled, it will not function. Either way (enabled or disabled), the typeerror will appear in the console.

Screenshots

No response

Console logs, from start to end.

Using VENV: D:\SDNext\venv
00:10:01-502292 INFO     Starting SD.Next
00:10:01-505792 INFO     Logger: file="D:\SDNext\sdnext.log" level=DEBUG size=65 mode=create
00:10:01-507293 INFO     Python: version=3.11.8 platform=Windows bin="D:\SDNext\venv\Scripts\Python.exe"
                         venv="D:\SDNext\venv"
00:10:02-377963 INFO     Version: app=sd.next updated=2024-10-09 hash=bc47e49c branch=dev
                         url=https://github.com/vladmandic/automatic/tree/dev ui=dev
00:10:03-158279 INFO     Updating main repository
00:10:05-217802 INFO     Repository upgraded: bc47e49c Wed Oct 9 11:22:03 2024 -0400
00:10:05-260855 INFO     Platform: arch=AMD64 cpu=AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD system=Windows
                         release=Windows-10-10.0.22631-SP0 python=3.11.8
00:10:05-262856 DEBUG    Setting environment tuning
00:10:05-263855 DEBUG    Torch allocator:
                         "garbage_collection_threshold:0.25,max_split_size_mb:512,backend:cudaMallocAsync"
00:10:05-277870 DEBUG    Torch overrides: cuda=False rocm=False ipex=False diml=False openvino=False zluda=False
00:10:05-301892 INFO     CUDA: nVidia toolkit detected
00:10:05-612471 INFO     Verifying requirements
00:10:05-617471 INFO     Verifying packages
00:10:05-617972 INFO     Startup: standard
00:10:05-619485 INFO     Verifying submodules
00:10:14-832174 DEBUG    Git submodule: extensions-builtin/sd-extension-chainner / main
00:10:16-103300 DEBUG    Git submodule: extensions-builtin/sd-extension-system-info / main
00:10:17-692053 DEBUG    Git submodule: extensions-builtin/sd-webui-agent-scheduler / main
00:10:18-924354 DEBUG    Git submodule: extensions-builtin/sdnext-modernui / dev
00:10:20-180998 DEBUG    Git submodule: extensions-builtin/stable-diffusion-webui-rembg / master
00:10:21-466934 DEBUG    Git submodule: modules/k-diffusion / master
00:10:22-787786 DEBUG    Git submodule: wiki / master
00:10:23-953911 DEBUG    Register paths
00:10:24-036941 DEBUG    Installed packages: 212
00:10:24-037941 DEBUG    Extensions all: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg']
00:10:25-027955 DEBUG    Git submodule: extensions-builtin\sd-extension-chainner / main
00:10:26-340441 DEBUG    Git submodule: extensions-builtin\sd-extension-system-info / main
00:10:27-704567 DEBUG    Git submodule: extensions-builtin\sd-webui-agent-scheduler / main
00:10:28-858028 DEBUG    Extension installer: D:\SDNext\extensions-builtin\sd-webui-agent-scheduler\install.py
00:10:31-739429 DEBUG    Git submodule: extensions-builtin\sdnext-modernui / dev
00:10:33-171101 DEBUG    Git submodule: extensions-builtin\stable-diffusion-webui-rembg / master
00:10:34-297367 DEBUG    Extension installer: D:\SDNext\extensions-builtin\stable-diffusion-webui-rembg\install.py
00:10:42-891912 DEBUG    Extensions all: ['adetailer']
00:10:43-061110 DEBUG    Git submodule: extensions\adetailer / main
00:10:45-195255 DEBUG    Extension force: name="adetailer" commit=a89c01d
00:10:45-196755 DEBUG    Extension installer: D:\SDNext\extensions\adetailer\install.py
00:10:45-537636 INFO     Extensions enabled: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg', 'adetailer']
00:10:45-540149 INFO     Verifying requirements
00:10:45-541146 INFO     Updating Wiki
00:10:45-681337 DEBUG    Git submodule: D:\SDNext\wiki / master
00:10:46-757599 DEBUG    Setup complete without errors: 1728544247
00:10:46-765113 DEBUG    Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0}
00:10:46-766114 DEBUG    Starting module: <module 'webui' from 'D:\\SDNext\\webui.py'>
00:10:46-767112 INFO     Command line args: ['--medvram', '--upgrade', '--debug'] medvram=True upgrade=True debug=True
00:10:46-768620 DEBUG    Env flags: []
00:10:55-804770 INFO     System packages: {'torch': '2.4.1+cu124', 'diffusers': '0.31.0.dev0', 'gradio': '3.43.2',
                         'transformers': '4.45.2', 'accelerate': '1.0.0'}
00:10:56-744359 DEBUG    Huggingface cache: folder="C:\Users\Joshua\.cache\huggingface\hub"
00:10:56-834636 DEBUG    Read: file="config.json" json=65 bytes=3734 time=0.000
00:10:56-836309 DEBUG    Unknown settings: ['ad_max_models', 'ad_save_images_before', 'ad_same_seed_for_each_tab',
                         'ad_extra_models_dir', 'multiple_tqdm']
00:10:56-837309 INFO     Engine: backend=Backend.DIFFUSERS compute=None device=cuda attention="Scaled-Dot-Product"
                         mode=no_grad
00:10:56-839316 DEBUG    Read: file="html\reference.json" json=52 bytes=29118 time=0.001
00:10:56-881863 INFO     Torch parameters: backend=cuda device=cuda config=Auto dtype=torch.bfloat16 vae=torch.bfloat16
                         unet=torch.bfloat16 context=no_grad nohalf=False nohalfvae=False upscast=False
                         deterministic=True test-fp16=True test-bf16=True optimization="Scaled-Dot-Product"
00:10:57-887772 DEBUG    ONNX: version=1.19.2 provider=CPUExecutionProvider, available=['AzureExecutionProvider',
                         'CPUExecutionProvider']
00:10:58-121587 INFO     Device: device=NVIDIA GeForce RTX 3070 n=1 arch=sm_90 capability=(8, 6) cuda=12.4 cudnn=90100
                         driver=
00:10:58-288905 DEBUG    Importing LDM
00:10:58-315557 DEBUG    Entering start sequence
00:10:58-318420 DEBUG    Initializing
00:10:58-377543 INFO     Available VAEs: path="D:\Stable Diffusion Files\Models\VAE" items=5
00:10:58-379552 INFO     Available UNets: path="D:\Stable Diffusion Files\Models\UNET" items=2
00:10:58-380558 INFO     Available TEs: path="D:\Stable Diffusion Files\Models\Text-encoder" items=0
00:10:58-382058 INFO     Disabled extensions: ['sdnext-modernui']
00:10:58-385559 DEBUG    Read: file="cache.json" json=2 bytes=4434 time=0.000
00:10:58-396080 DEBUG    Read: file="metadata.json" json=190 bytes=1016037 time=0.010
00:10:58-402598 DEBUG    Scanning diffusers cache: folder="D:\Stable Diffusion Files\Models\Diffusers" items=4 time=0.00
00:10:58-403597 INFO     Available Models: path="D:\Stable Diffusion Files\Models\Checkpoints" items=23 time=0.02
00:10:58-540408 INFO     Available Yolo: path="D:\Stable Diffusion Files\Models\yolo items=6 downloaded=1
00:10:58-541408 DEBUG    Load extensions
00:10:58-633951 INFO     Extension: script='extensions-builtin\Lora\scripts\lora_script.py'
                         [2;36m00:10:58-628950[0m[2;36m [0m[34mINFO    [0m Available LoRAs: [33mitems[0m=[1;36m159[0m
                         [33mfolders[0m=[1;36m2[0m
00:10:59-161349 INFO     Extension: script='extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py' Using
                         sqlite file: extensions-builtin\sd-webui-agent-scheduler\task_scheduler.sqlite3
00:10:59-397738 INFO     Extension: script='extensions\adetailer\scripts\!adetailer.py' [-] ADetailer initialized.
                         version: 24.5.1, num models: 20
00:10:59-399245 DEBUG    Extensions init time: 0.86 sd-extension-chainner=0.05 sd-webui-agent-scheduler=0.47
                         adetailer=0.23
00:10:59-421833 DEBUG    Read: file="html/upscalers.json" json=4 bytes=2672 time=0.000
00:10:59-423338 DEBUG    Read: file="extensions-builtin\sd-extension-chainner\models.json" json=24 bytes=2719 time=0.000
00:10:59-426336 DEBUG    chaiNNer models: path="D:\Stable Diffusion Files\Models\chaiNNer" defined=24 discovered=9
                         downloaded=17
00:10:59-428842 DEBUG    Upscaler type=ESRGAN folder="D:\Stable Diffusion Files\Models\ESRGAN"
                         model="4x_foolhardy_Remacri" path="D:\Stable Diffusion
                         Files\Models\ESRGAN\4x_foolhardy_Remacri.pth"
00:10:59-429848 DEBUG    Upscaler type=ESRGAN folder="D:\Stable Diffusion Files\Models\ESRGAN" model="4x_NMKD-Siax_200k"
                         path="D:\Stable Diffusion Files\Models\ESRGAN\4x_NMKD-Siax_200k.pth"
00:10:59-433352 DEBUG    Upscaler type=SwinIR folder="D:\Stable Diffusion Files\Models\SwinIR" model="SwinIR_4x"
                         path="D:\Stable Diffusion Files\Models\SwinIR\SwinIR_4x.pth"
00:10:59-436352 INFO     Available Upscalers: items=65 downloaded=30 user=12 time=0.03 types=['None', 'Lanczos',
                         'Nearest', 'ChaiNNer', 'AuraSR', 'ESRGAN', 'LDSR', 'RealESRGAN', 'SCUNet', 'SD', 'SwinIR']
00:10:59-455879 INFO     Available Styles: folder="D:\Stable Diffusion Files\Models\Styles" items=297 time=0.02
00:10:59-459890 DEBUG    Creating UI
00:10:59-461554 DEBUG    UI themes available: type=Standard themes=12
00:10:59-462553 INFO     UI theme: type=Standard name="invoked"
00:10:59-470064 DEBUG    UI theme: css="D:\SDNext\javascript\invoked.css" base="sdnext.css" user="None"
00:10:59-473220 DEBUG    UI initialize: txt2img
00:10:59-594263 DEBUG    Networks: page='model' items=74 subfolders=4 tab=txt2img folders=['D:\\Stable Diffusion
                         Files\\Models\\Checkpoints', 'D:\\Stable Diffusion Files\\Models\\Diffusers',
                         'models\\Reference'] list=0.09 thumb=0.02 desc=0.01 info=0.01 workers=8 sort=Default
00:10:59-600776 DEBUG    Networks: page='lora' items=159 subfolders=1 tab=txt2img folders=['D:\\Stable Diffusion
                         Files\\Models\\Loras', 'D:\\Stable Diffusion Files\\Models\\LyCORIS'] list=0.10 thumb=0.02
                         desc=0.09 info=0.19 workers=8 sort=Default
00:10:59-610287 DEBUG    Networks: page='style' items=297 subfolders=1 tab=txt2img folders=['D:\\Stable Diffusion
                         Files\\Models\\Styles', 'html'] list=0.10 thumb=0.00 desc=0.00 info=0.00 workers=8 sort=Default
00:10:59-615289 DEBUG    Networks: page='embedding' items=22 subfolders=1 tab=txt2img folders=['D:\\Stable Diffusion
                         Files\\Models\\Embeddings'] list=0.09 thumb=0.01 desc=0.01 info=0.04 workers=8 sort=Default
00:10:59-617790 DEBUG    Networks: page='vae' items=5 subfolders=0 tab=txt2img folders=['D:\\Stable Diffusion
                         Files\\Models\\VAE'] list=0.05 thumb=0.03 desc=0.00 info=0.01 workers=8 sort=Default
00:10:59-620851 DEBUG    Networks: page='history' items=0 subfolders=0 tab=txt2img folders=[] list=0.00 thumb=0.00
                         desc=0.00 info=0.00 workers=8 sort=Default
00:10:59-983287 DEBUG    UI initialize: img2img
00:11:00-195717 DEBUG    UI initialize: control models=D:\Stable Diffusion Files\Models\Control
00:11:00-776571 DEBUG    Read: file="ui-config.json" json=0 bytes=2 time=0.000
00:11:00-907325 DEBUG    UI themes available: type=Standard themes=12
00:11:03-815969 DEBUG    Extension list: processed=393 installed=7 enabled=6 disabled=1 visible=393 hidden=0
00:11:04-167541 DEBUG    Root paths: ['D:\\SDNext']
00:11:04-262849 INFO     Local URL: http://127.0.0.1:7860/
00:11:04-264350 DEBUG    Gradio functions: registered=3188
00:11:04-267349 DEBUG    FastAPI middleware: ['Middleware', 'Middleware']
00:11:04-270360 DEBUG    Creating API
00:11:04-446644 INFO     [AgentScheduler] Task queue is empty
00:11:04-447649 INFO     [AgentScheduler] Registering APIs
00:11:04-837825 DEBUG    Scripts setup: ['IP Adapters:0.022', 'Upscale:0.006', 'XYZ Grid:0.024', 'ADetailer:0.273',
                         'Face:0.017', 'AnimateDiff:0.007', 'CogVideoX:0.007', 'Ctrl-X:0.006', 'HDR:0.005', 'LUT Color
                         grading:0.006', 'Prompt enhance:0.005', 'Image-to-Video:0.007']
00:11:04-840340 DEBUG    Model metadata: file="metadata.json" no changes
00:11:04-842342 DEBUG    Model requested: fn=<lambda>
00:11:04-843344 INFO     Load model: select="tzigorealmixxl_v081VAE [78f67d5c38]"
00:11:04-844841 DEBUG    Load model: target="D:\Stable Diffusion
                         Files\Models\Checkpoints\tzigorealmixxl_v081VAE.safetensors" existing=False info=None
00:11:04-846341 DEBUG    Load model: path="D:\Stable Diffusion
                         Files\Models\Checkpoints\tzigorealmixxl_v081VAE.safetensors"
00:11:04-847841 INFO     Autodetect model: detect="Stable Diffusion XL" class=StableDiffusionXLPipeline file="D:\Stable
                         Diffusion Files\Models\Checkpoints\tzigorealmixxl_v081VAE.safetensors" size=6617MB
Diffusers  2.51s/it ████████ 100% 7/7 00:17 00:00 Loading pipeline components...
00:11:24-172880 DEBUG    Setting model: pipeline=StableDiffusionXLPipeline config={'low_cpu_mem_usage': True,
                         'torch_dtype': torch.bfloat16, 'load_connected_pipeline': True, 'extract_ema': True, 'config':
                         'configs/sdxl', 'use_safetensors': True, 'cache_dir':
                         'C:\\Users\\Joshua\\.cache\\huggingface\\hub', 'force_upcast': False}
00:11:29-821606 INFO     Load network: type=embeddings loaded=14 skipped=8 time=5.65
00:11:29-823106 DEBUG    Setting model: component=VAE upcast=False
00:11:29-824106 DEBUG    Setting model: component=VAE slicing=True
00:11:29-825106 DEBUG    Setting model: component=VAE tiling=True
00:11:29-826105 DEBUG    Setting model: attention="Scaled-Dot-Product"
00:11:29-849629 INFO     NNCF Compress Weights: ['Model', 'VAE', 'Text Encoder']
INFO:nncf:NNCF initialized successfully. Supported frameworks detected: torch, onnx
WARNING:nncf:NNCF provides best results with torch==2.1.0, while current torch version is 2.4.1+cu124. If you encounter issues, consider switching to torch==2.1.0
00:11:44-389493 DEBUG    GC: utilization={'gpu': 14, 'ram': 24, 'threshold': 25} gc={'collected': 127, 'saved': 0.0}
                         before={'gpu': 1.13, 'ram': 7.63} after={'gpu': 1.13, 'ram': 7.63, 'retries': 0, 'oom': 0}
                         device=cuda fn=nncf_compress_model time=0.28
00:11:45-275374 DEBUG    GC: utilization={'gpu': 14, 'ram': 22, 'threshold': 25} gc={'collected': 127, 'saved': 0.0}
                         before={'gpu': 1.13, 'ram': 7.04} after={'gpu': 1.13, 'ram': 7.04, 'retries': 0, 'oom': 0}
                         device=cuda fn=nncf_compress_model time=0.29
00:11:48-977071 DEBUG    GC: utilization={'gpu': 14, 'ram': 20, 'threshold': 25} gc={'collected': 133, 'saved': 0.0}
                         before={'gpu': 1.13, 'ram': 6.52} after={'gpu': 1.13, 'ram': 6.52, 'retries': 0, 'oom': 0}
                         device=cuda fn=nncf_compress_model time=0.29
00:11:49-646750 DEBUG    GC: utilization={'gpu': 14, 'ram': 20, 'threshold': 25} gc={'collected': 127, 'saved': 0.0}
                         before={'gpu': 1.13, 'ram': 6.25} after={'gpu': 1.13, 'ram': 6.25, 'retries': 0, 'oom': 0}
                         device=cuda fn=nncf_compress_model time=0.29
00:11:49-649763 INFO     NNCF Compress Weights: time=19.80
00:11:49-650764 DEBUG    Setting model: offload=model
00:11:49-690380 DEBUG    Read: file="D:\SDNext\configs\sdxl\vae\config.json" json=15 bytes=674 time=0.000
00:11:49-972382 DEBUG    GC: utilization={'gpu': 14, 'ram': 20, 'threshold': 25} gc={'collected': 127, 'saved': 0.0}
                         before={'gpu': 1.13, 'ram': 6.25} after={'gpu': 1.13, 'ram': 6.25, 'retries': 0, 'oom': 0}
                         device=cuda fn=load_diffuser time=0.28
00:11:49-991400 INFO     Load model: time=44.85 load=19.33 embeddings=5.65 options=19.83 native=1024 memory={'ram':
                         {'used': 6.25, 'total': 31.9}, 'gpu': {'used': 1.13, 'total': 8.0}, 'retries': 0, 'oom': 0}
00:11:49-995399 DEBUG    Script callback init time: system-info.py:app_started=0.06 task_scheduler.py:app_started=0.42
00:11:49-996899 INFO     Startup time: 63.22 torch=6.97 gradio=1.66 diffusers=0.14 libraries=2.74 samplers=0.06
                         extensions=0.86 detailer=0.14 ui-networks=0.28 ui-txt2img=0.34 ui-img2img=0.17 ui-control=0.24
                         ui-models=0.19 ui-settings=0.26 ui-extensions=2.80 ui-defaults=0.29 launch=0.15 api=0.08
                         app-started=0.49 checkpoint=45.16
00:11:49-998404 DEBUG    Save: file="config.json" json=65 bytes=3619 time=0.003
00:11:50-001410 DEBUG    Unused settings: ['ad_same_seed_for_each_tab', 'multiple_tqdm']
00:12:00-003962 DEBUG    Server: alive=True jobs=1 requests=10 uptime=64 memory=6.25/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:12:12-676762 INFO     MOTD: N/A
00:12:17-325212 DEBUG    UI themes available: type=Standard themes=12
00:12:33-754109 INFO     Browser session: user=None client=127.0.0.1 agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64;
                         rv:131.0) Gecko/20100101 Firefox/131.0
00:14:00-132839 DEBUG    Server: alive=True jobs=1 requests=202 uptime=184 memory=6.27/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:16:00-170550 DEBUG    Server: alive=True jobs=1 requests=226 uptime=304 memory=6.27/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:18:00-207122 DEBUG    Server: alive=True jobs=1 requests=250 uptime=424 memory=6.27/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:20:00-270283 DEBUG    Server: alive=True jobs=1 requests=275 uptime=544 memory=6.27/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:22:00-305370 DEBUG    Server: alive=True jobs=1 requests=380 uptime=664 memory=6.27/31.9 backend=Backend.DIFFUSERS
                         state=idle
00:22:03-838159 INFO     Applying hypertile: unet=512
00:22:03-931796 INFO     Base: class=StableDiffusionXLPipeline
00:22:03-991867 DEBUG    Sampler: sampler="DPM SDE" class="DPMSolverSDEScheduler config={'num_train_timesteps': 1000,
                         'beta_start': 0.00085, 'beta_end': 0.012, 'beta_schedule': 'scaled_linear', 'prediction_type':
                         'epsilon', 'use_karras_sigmas': True, 'noise_sampler_seed': None, 'timestep_spacing':
                         'leading', 'steps_offset': 1}
00:22:06-170857 DEBUG    Torch generator: device=cuda seeds=[2060160209]
00:22:06-172863 DEBUG    Diffuser pipeline: StableDiffusionXLPipeline task=DiffusersTaskType.TEXT_2_IMAGE batch=1/1x1
                         set={'prompt_embeds': torch.Size([1, 77, 2048]), 'pooled_prompt_embeds': torch.Size([1, 1280]),
                         'negative_prompt_embeds': torch.Size([1, 77, 2048]), 'negative_pooled_prompt_embeds':
                         torch.Size([1, 1280]), 'guidance_scale': 4, 'num_inference_steps': 20, 'eta': 1.0,
                         'guidance_rescale': 0.7, 'denoising_end': None, 'output_type': 'latent', 'width': 1024,
                         'height': 1024, 'parser': 'Full parser'}
Progress  8.51s/it █▋                                   5% 1/20 00:08 02:41 Base00:22:15-885489 DEBUG    VAE load: type=taesd model=D:\Stable Diffusion Files\Models\TAESD\taesdxl_decoder.pth
Progress  1.80s/it █████████████████████████████████ 100% 20/20 00:36 00:00 Base
00:22:46-222296 DEBUG    Init hires: upscaler="chaiNNer 4x DAT Helaman-LSDIR" sampler="DPM SDE" resize=0x0
                         upscale=1536x1536
00:22:46-223799 INFO     Upscale: mode=1 upscaler="chaiNNer 4x DAT Helaman-LSDIR" context="Add with forward" resize=0x0
                         upscale=1536x1536
00:22:52-400446 DEBUG    VAE decode: vae name="default" dtype=torch.bfloat16 device=cuda:0 upcast=False slicing=True
                         tiling=True latents shape=torch.Size([1, 4, 128, 128]) dtype=torch.bfloat16 device=cuda:0
                         time=6.175
00:22:52-770148 DEBUG    GC: utilization={'gpu': 26, 'ram': 20, 'threshold': 25} gc={'collected': 693, 'saved': 0.54}
                         before={'gpu': 2.1, 'ram': 6.3} after={'gpu': 1.56, 'ram': 6.3, 'retries': 0, 'oom': 0}
                         device=cuda fn=vae_decode time=0.31
00:22:55-095248 INFO     Upscaler loaded: type=chaiNNer model='D:\Stable Diffusion
                         Files\Models\chaiNNer\DAT-Helaman-LSDIR-4x.pth'
Upscaling ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:53

00:23:48-801920 DEBUG    Upscaler unloaded: type=chaiNNer model=D:\Stable Diffusion
                         Files\Models\chaiNNer\DAT-Helaman-LSDIR-4x.pth
00:23:49-077855 DEBUG    GC: utilization={'gpu': 22, 'ram': 21, 'threshold': 25} gc={'collected': 686, 'saved': 0.0}
                         before={'gpu': 1.72, 'ram': 6.77} after={'gpu': 1.72, 'ram': 6.77, 'retries': 0, 'oom': 0}
                         device=cuda fn=do_upscale time=0.27
00:23:49-232086 DEBUG    Image resize: input=<PIL.Image.Image image mode=RGB size=1024x1024 at 0x19038BAB5D0> width=1536
                         height=1536 mode="Fixed" upscaler="chaiNNer 4x DAT Helaman-LSDIR" context="Add with forward"
                         type=image result=<PIL.Image.Image image mode=RGB size=1536x1536 at 0x1903426E390> time=56.45
                         fn=D:\SDNext\modules\processing_helpers.py:resize_hires
00:23:49-236098 DEBUG    Pipeline class change: original=StableDiffusionXLPipeline
                         target=StableDiffusionXLImg2ImgPipeline device=cpu fn=process_hires
00:23:49-237599 INFO     HiRes: class=StableDiffusionXLImg2ImgPipeline sampler="DPM SDE"
00:23:49-288647 DEBUG    Sampler: sampler="DPM SDE" class="DPMSolverSDEScheduler config={'num_train_timesteps': 1000,
                         'beta_start': 0.00085, 'beta_end': 0.012, 'beta_schedule': 'scaled_linear', 'prediction_type':
                         'epsilon', 'use_karras_sigmas': True, 'noise_sampler_seed': None, 'timestep_spacing':
                         'leading', 'steps_offset': 1}
00:23:50-171029 DEBUG    GC: utilization={'gpu': 28, 'ram': 20, 'threshold': 25} gc={'collected': 508, 'saved': 0.09}
                         before={'gpu': 2.22, 'ram': 6.46} after={'gpu': 2.13, 'ram': 6.46, 'retries': 0, 'oom': 0}
                         device=cuda fn=encode_prompts time=0.28
00:23:50-175534 DEBUG    Torch generator: device=cuda seeds=[2060160209]
00:23:50-176531 DEBUG    Diffuser pipeline: StableDiffusionXLImg2ImgPipeline task=DiffusersTaskType.IMAGE_2_IMAGE
                         batch=1/1x1 set={'prompt_embeds': torch.Size([1, 77, 2048]), 'pooled_prompt_embeds':
                         torch.Size([1, 1280]), 'negative_prompt_embeds': torch.Size([1, 77, 2048]),
                         'negative_pooled_prompt_embeds': torch.Size([1, 1280]), 'guidance_scale': 5,
                         'num_inference_steps': 31, 'eta': 1.0, 'guidance_rescale': 0.7, 'output_type': 'latent',
                         'image': [<PIL.Image.Image image mode=RGB size=1536x1536 at 0x1903426E390>], 'strength': 0.5,
                         'width': 1536, 'height': 1536, 'parser': 'Full parser'}
00:24:00-350589 DEBUG    Server: alive=True jobs=1 requests=629 uptime=784 memory=5.81/31.9 backend=Backend.DIFFUSERS
                         state=idle
Progress  3.03s/it ████████████████████████████████ 100% 15/15 00:45 00:00 Hires
00:24:50-687640 DEBUG    GC: utilization={'gpu': 61, 'ram': 11, 'threshold': 25} gc={'collected': 384, 'saved': 0.62}
                         before={'gpu': 4.88, 'ram': 3.5} after={'gpu': 4.26, 'ram': 3.5, 'retries': 0, 'oom': 0}
                         device=cuda fn=nextjob time=0.29
00:25:03-718725 DEBUG    VAE decode: vae name="default" dtype=torch.bfloat16 device=cuda:0 upcast=False slicing=True
                         tiling=True latents shape=torch.Size([1, 4, 192, 192]) dtype=torch.bfloat16 device=cuda:0
                         time=13.029
00:25:04-025166 DEBUG    GC: utilization={'gpu': 25, 'ram': 19, 'threshold': 25} gc={'collected': 335, 'saved': 0.25}
                         before={'gpu': 1.97, 'ram': 6.16} after={'gpu': 1.72, 'ram': 6.16, 'retries': 0, 'oom': 0}
                         device=cuda fn=vae_decode time=0.3
00:25:04-908961 INFO     Upscaler loaded: type=chaiNNer model='D:\Stable Diffusion
                         Files\Models\chaiNNer\DAT-Helaman-LSDIR-4x.pth'
00:26:00-424087 DEBUG    Server: alive=True jobs=1 requests=866 uptime=904 memory=6.68/31.9 backend=Backend.DIFFUSERS
                         state=idle
Upscaling ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:01:26

00:26:32-465532 DEBUG    Upscaler unloaded: type=chaiNNer model=D:\Stable Diffusion
                         Files\Models\chaiNNer\DAT-Helaman-LSDIR-4x.pth
00:26:32-805063 DEBUG    GC: utilization={'gpu': 22, 'ram': 22, 'threshold': 25} gc={'collected': 1701, 'saved': 0.0}
                         before={'gpu': 1.79, 'ram': 7.09} after={'gpu': 1.79, 'ram': 7.09, 'retries': 0, 'oom': 0}
                         device=cuda fn=do_upscale time=0.34
00:26:33-741322 ERROR    Running script postprocess image: extensions\adetailer\scripts\!adetailer.py: TypeError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ D:\SDNext\modules\scripts.py:626 in postprocess_image                                                                │
│                                                                                                                      │
│   625 │   │   │   │   │   args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to │
│ ❱ 626 │   │   │   │   │   script.postprocess_image(p, pp, *args)                                                     │
│   627 │   │   │   except Exception as e:                                                                             │
│                                                                                                                      │
│ D:\SDNext\extensions\adetailer\aaaaaa\traceback.py:167 in wrapper                                                    │
│                                                                                                                      │
│   166 │   │   │   │   error = RuntimeError(output)                                                                   │
│ ❱ 167 │   │   │   raise error from None                                                                              │
│   168                                                                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError:
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                   System info                                                    │
│ ┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │
│ ┃             ┃ Value                                                                                          ┃ │
│ ┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │
│ │    Platform │ Windows-10-10.0.22631-SP0                                                                      │ │
│ │      Python │ 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]               │ │
│ │     Version │ Unknown (too old or vladmandic)                                                                │ │
│ │      Commit │ Unknown                                                                                        │ │
│ │ Commandline │ ['launch.py', '--medvram', '--upgrade', '--debug']                                             │ │
│ │   Libraries │ {'torch': '2.4.1+cu124', 'torchvision': '0.19.1+cu124', 'ultralytics': '8.3.5', 'mediapipe':   │ │
│ │             │ '0.10.14'}                                                                                     │ │
│ └─────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│                                                      Inputs                                                      │
│ ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │
│ ┃                 ┃ Value                                                                                      ┃ │
│ ┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │
│ │          prompt │ full body medieval fantasy photograph of small young blonde girl, very pale ethereal skin, │ │
│ │                 │ slender with b-cup breasts and very slim waist, wearing a modest dress of pure white, the  │ │
│ │                 │ fabric of her dress falling in gentle pleats to her ankles, innocent and pure, timid and   │ │
│ │                 │ shy, entering the cold stone castle room                                                   │ │
│ │ negative_prompt │                                                                                            │ │
│ │          n_iter │ 1                                                                                          │ │
│ │      batch_size │ 1                                                                                          │ │
│ │           width │ 1024                                                                                       │ │
│ │          height │ 1024                                                                                       │ │
│ │    sampler_name │ DPM SDE                                                                                    │ │
│ │       enable_hr │ True                                                                                       │ │
│ │     hr_upscaler │ chaiNNer 4x DAT Helaman-LSDIR                                                              │ │
│ │      checkpoint │ tzigorealmixxl_v081VAE [78f67d5c38]                                                        │ │
│ │             vae │ Automatic                                                                                  │ │
│ │            unet │ None                                                                                       │ │
│ └─────────────────┴────────────────────────────────────────────────────────────────────────────────────────────┘ │
│                                                    ADetailer                                                     │
│ ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │
│ ┃                     ┃ Value                                                                                  ┃ │
│ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │
│ │             version │ 24.5.1                                                                                 │ │
│ │            ad_model │ person_yolov8m-seg.pt                                                                  │ │
│ │           ad_prompt │ small young teenCla1re, medieval setting, very pale ethereal skin, slender with b-cup  │ │
│ │                     │ breasts and very slim waist, wearing a modest dress of pure white, the fabric of her   │ │
│ │                     │ dress falling in gentle pleats to her ankles, innocent and pure, timid and shy,        │ │
│ │                     │ <lora:teenCla1rev1:0.9>                                                                │ │
│ │  ad_negative_prompt │                                                                                        │ │
│ │ ad_controlnet_model │ None                                                                                   │ │
│ │              is_api │ False                                                                                  │ │
│ └─────────────────────┴────────────────────────────────────────────────────────────────────────────────────────┘ │
│ ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮             │
│ │ D:\SDNext\extensions\adetailer\aaaaaa\traceback.py:147 in wrapper                                │             │
│ │                                                                                                  │             │
│ │   146 │   │   try:                                                                               │             │
│ │ ❱ 147 │   │   │   return func(*args, **kwargs)                                                   │             │
│ │   148 │   │   except Exception as e:                                                             │             │
│ │                                                                                                  │             │
│ │ D:\SDNext\extensions\adetailer\scripts\!adetailer.py:821 in postprocess_image                    │             │
│ │                                                                                                  │             │
│ │    820 │   │   │   │   │   continue                                                              │             │
│ │ ❱  821 │   │   │   │   is_processed |= self._postprocess_image_inner(p, pp, args, n=n)           │             │
│ │    822                                                                                           │             │
│ │                                                                                                  │             │
│ │ D:\SDNext\extensions\adetailer\scripts\!adetailer.py:725 in _postprocess_image_inner             │             │
│ │                                                                                                  │             │
│ │    724 │   │                                                                                     │             │
│ │ ❱  725 │   │   i2i = self.get_i2i_p(p, args, pp.image)                                           │             │
│ │    726 │   │   seed, subseed = self.get_seed(p)                                                  │             │
│ │                                                                                                  │             │
│ │ D:\SDNext\extensions\adetailer\scripts\!adetailer.py:504 in get_i2i_p                            │             │
│ │                                                                                                  │             │
│ │    503 │   │                                                                                     │             │
│ │ ❱  504 │   │   i2i = StableDiffusionProcessingImg2Img(                                           │             │
│ │    505 │   │   │   init_images=[image],                                                          │             │
│ │                                                                                                  │             │
│ │ D:\SDNext\modules\processing_class.py:285 in __init__                                            │             │
│ │                                                                                                  │             │
│ │   284 │   def __init__(self, init_images: list = None, resize_mode: int = 0, resize_name: str    │             │
│ │ ❱ 285 │   │   super().__init__(**kwargs)                                                         │             │
│ │   286 │   │   self.init_images = init_images                                                     │             │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯             │
│ TypeError: StableDiffusionProcessing.__init__() got an unexpected keyword argument 'restore_faces'               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

00:26:33-880908 INFO     Save: image="D:\Stable Diffusion Files\Outputs\text\12182-tzigorealmixxl_v081VAE-full body
                         medieval fantasy photograph of small young.jpg" type=JPEG width=3072 height=3072 size=1252162
00:26:33-967514 INFO     Processed: images=1 its=0.07 time=269.99 timers={'gc': 1.79, 'init': 0.08, 'prepare': 0.07,
                         'encode': 68.81, 'args': 2.34, 'move': 0.02, 'pipeline': 37.12, 'hires': 127.21, 'decode':
                         13.34, 'post': 89.94} memory={'ram': {'used': 6.48, 'total': 31.9}, 'gpu': {'used': 1.79,
                         'total': 8.0}, 'retries': 0, 'oom': 0}

List of installed extensions

Lora, sd-extension-system-info, sd-extension-rembg, sd-extension-chainner, sd-webui-agent-scheduler, Adetailer.

Please note that the only extension here that I installed manually was adetailer. The rest are automatically installed with SDNext and are effectively considered part of its regular feature set.

dosubot[bot] commented 1 month ago

To resolve the TypeError related to the restore_faces argument in StableDiffusionProcessing, ensure that the restore_faces argument is correctly referenced as args.ad_restore_face in the StableDiffusionProcessingImg2Img initialization. Here's how it should be set:

i2i = StableDiffusionProcessingImg2Img(
    ...
    restore_faces=args.ad_restore_face,
    ...
)

Make sure that ad_restore_face is properly defined and initialized in your ADetailerArgs class [1].

To continue talking to Dosu, mention @dosu.

Bing-su commented 1 month ago

It seems like SD-Next is trying to add a Detailer-like feature on its own, which I think is a good move. Look for sd-next's documentation to be updated in the future.

MysticDaedra commented 1 month ago

Unfortunately most of the functionality included in Adetailer will be absent from SDNext's implementation, including separate prompts per detection model and different tabs etc. At least for now there is no plan to expand it beyond very basic functionality.

On Thu, Oct 10, 2024 at 1:37 AM Dowon @.***> wrote:

It seems like SD-Next is trying to add a Detailer-like feature on its own, which I think is a good move. Look for sd-next's documentation to be updated in the future.

— Reply to this email directly, view it on GitHub https://github.com/Bing-su/adetailer/issues/729#issuecomment-2404459024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDDLFAACLHFDLLDHSVKX33Z2Y4DBAVCNFSM6AAAAABPWD7HTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGQ2TSMBSGQ . You are receiving this because you authored the thread.Message ID: @.***>

vladmandic commented 1 month ago

fixed in latest sdnext dev.