GithubHelp home page GithubHelp logo

bing-su / dddetailer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dustysys/ddetailer

131.0 3.0 14.0 1.49 MB

Detection Detailer hijack edition

Python 100.00%
sd-webui stable-diffusion-webui stable-diffusion-webui-plugin

dddetailer's Introduction

돚거 Detection Detailer

Dotgeo(hijack) Detection Detailer

ddetailer with torch 2.0, mmcv 2.0, mmdet 3.0

integrated with noahge4/ddetailer

AI실사채널 ChatGPT23님의 ddetailer 수정본 병합됨

Installation

  1. remove original ddetailer extension - stable-diffusion-webui/extensions/ddetailer folder
  2. remove original model files - stable-diffusion-webui/models/mmdet folder
  3. install from the extensions tab with url https://github.com/Bing-su/dddetailer

Problem

The predictive accuracy of the segmentation model has become very poor.

Detection Detailer

An object detection and auto-mask extension for Stable Diffusion web UI. See Installation.

adoringfan

Segmentation

Default models enable person and face instance segmentation.

amgothic

Detailing

With full-resolution inpainting, the extension is handy for improving faces without the hassle of manual masking.

zion

Installation

  1. Use git clone https://github.com/dustysys/ddetailer.git from your SD web UI /extensions folder. Alternatively, install from the extensions tab with url https://github.com/dustysys/ddetailer
  2. Start or reload SD web UI.

The models and dependencies should download automatically. To install them manually, follow the official instructions for installing mmdet. The models can be downloaded here and should be placed in /models/mmdet/bbox for bounding box (anime-face_yolov3) or /models/mmdet/segm for instance segmentation models (dd-person_mask2former). See the MMDetection docs for guidance on training your own models. For using official MMDetection pretrained models see here, these are trained for photorealism. See Troubleshooting if you encounter issues during installation.

Usage

Select Detection Detailer as the script in SD web UI to use the extension. Click 'Generate' to run the script. Here are some tips:

  • anime-face_yolov3 can detect the bounding box of faces as the primary model while dd-person_mask2former isolates the head's silhouette as the secondary model by using the bitwise AND option. Refer to this example.
  • The dilation factor expands the mask, while the x & y offsets move the mask around.
  • The script is available in txt2img mode as well and can improve the quality of your 10 pulls with moderate settings (low denoise).

Troubleshooting

If you get the message ERROR: 'Failed building wheel for pycocotools' follow these steps.

Any other issues installing, open an issue.

Credits

hysts/anime-face-detector - Creator of anime-face_yolov3, which has impressive performance on a variety of art styles.

skytnt/anime-segmentation - Synthetic dataset used to train dd-person_mask2former.

jerryli27/AniSeg - Annotated dataset used to train dd-person_mask2former.

open-mmlab/mmdetection - Object detection toolset. dd-person_mask2former was trained via transfer learning using their R-50 Mask2Former instance segmentation model as a base.

AUTOMATIC1111/stable-diffusion-webui - Web UI for Stable Diffusion, base application for this extension.

dddetailer's People

Contributors

bing-su avatar dustysys avatar jwfraustro avatar noahge4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dddetailer's Issues

PNG Info "Send to" Errors

Hi, if I have used this script on a created image I can load it in PNG info but from there I am unable to load it back in with Send to txt2img and etc. The prompt fields become errors.

This is what the console prints when this happens

File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
    result = await self.call_function(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "V:\AI\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 347, in paste_func
    params = parse_generation_parameters(prompt)
  File "V:\AI\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 265, in parse_generation_parameters
    v = v[1:-1] if v[0] == '"' and v[-1] == '"' else v
IndexError: string index out of range

Thanks for any help.

No model A detections for output generation 0 with current settings

Hi, I am having problems using the script, showing the following message:
No model A detections for output generation 0 with current settings.

I have debugged the code and I have detected that in line 1037 of the file dddetailer.py, the element "filter_inds" is empty and this seems to be because the variable "scores" should be a numpy array but it is only an integer.

The version of the libraries that I have installed are as follows:

torch 2.0.1+cu118
mmdet 3.0.0
mmcv 2.0.0
mmcv-full 1.7.1
mmengine 0.7.3

Greetings.

ImportError: Please install petrel_client to enable PetrelBackend.

Hey there! I receive this error when I try to use the script in Inpaint. I only tried it using it this way tbh. Is there a way I can fix this installing something? Thanks!
EDIT: Only happens with the dd-person model, the Face one works.

ModuleNotFoundError: No module named 'petrel_client'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\registry\build_functions.py", line 122, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmdet\datasets\base_det_dataset.py", line 40, in init
super().init(*args, **kwargs)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\dataset\base_dataset.py", line 239, in init
self._join_prefix()
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\dataset\base_dataset.py", line 538, in _join_prefix
self.ann_file = join_path(self.data_root, self.ann_file)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\fileio\io.py", line 366, in join_path
backend = get_file_backend(
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\fileio\io.py", line 152, in get_file_backend
backend = _get_file_backend(prefix, backend_args)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\fileio\io.py", line 99, in _get_file_backend
backend = prefix_to_backendsprefix
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\fileio\backends\petrel_backend.py", line 48, in init
raise ImportError('Please install petrel_client to enable '
ImportError: Please install petrel_client to enable PetrelBackend.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\modules\call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\modules\img2img.py", line 176, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\modules\scripts.py", line 441, in run
processed = script.run(p, *script_args)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 685, in run
results_a = inference(init_image, dd_model_a, dd_conf_a / 100.0, label_a)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 991, in inference
results = inference_mmdet_segm(image, modelname, conf_thres, label)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 999, in inference_mmdet_segm
model = init_detector(model_config, model_checkpoint, device=model_device)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmdet\apis\inference.py", line 97, in init_detector
metainfo = DATASETS.build(test_dataset_cfg).metainfo
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\registry\registry.py", line 548, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "I:\Stable Diffusion (Art AI) Automatic1111 WebUI\stable-diffusion-webui\venv\lib\site-packages\mmengine\registry\build_functions.py", line 144, in build_from_cfg
raise type(e)(
ImportError: class CocoDataset in mmdet/datasets/coco.py: Please install petrel_client to enable PetrelBackend.

Error running install.py for extension F:\AI\WebUI2\webui\extensions\dddetailer.

I tried to install ddetailer on a Windows 10 PC, but the following error occurred.
My Python version is 3.10.6.

Error running install.py for extension F:\AI\WebUI2\webui\extensions\dddetailer.
Command: "F:\AI\WebUI2\system\python\python.exe" "F:\AI\WebUI2\webui\extensions\dddetailer\install.py"
Error code: 1
stdout:
stderr: Traceback (most recent call last):
File "F:\AI\WebUI2\webui\extensions\dddetailer\install.py", line 8, in
from launch import (
ImportError: cannot import name 'extensions_dir' from 'launch' (F:\AI\WebUI2\webui\launch.py)

Closing server running on port: 7860
Restarting UI...
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: F:\AI\WebUI2\webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
Installing openmim
Installing mmdet
Error loading script: ddetailer.py
Traceback (most recent call last):
File "F:\AI\WebUI2\webui\modules\scripts.py", line 218, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "F:\AI\WebUI2\webui\modules\script_loading.py", line 13, in load_module
exec(compiled, module.dict)
File "F:\AI\WebUI2\webui\extensions\dddetailer\scripts\ddetailer.py", line 102, in
startup()
File "F:\AI\WebUI2\webui\extensions\dddetailer\scripts\ddetailer.py", line 64, in startup
run(
File "F:\AI\WebUI2\webui\launch.py", line 74, in run
raise RuntimeError(message)
RuntimeError: Couldn't install mmdet.
Command: "F:\AI\WebUI2\system\python\python.exe" -m mim install mmcv>=2.0.0 mmdet>=3.0.0
Error code: 2
stdout:
stderr: ERROR: Exception:
Traceback (most recent call last):
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\commands\install.py", line 419, in run
requirement_set = resolver.resolve(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates:
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 577, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 69, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 48, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 118, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 95, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_internal\utils\misc.py", line 701, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "F:\AI\WebUI2\system\python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
File "importlib_init
.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-env-0g7zm160\overlay\Lib\site-packages\setuptools_init
.py", line 16, in
import setuptools.version
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-env-0g7zm160\overlay\Lib\site-packages\setuptools\version.py", line 1, in
from .importlib import metadata
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-env-0g7zm160\overlay\Lib\site-packages\setuptools_importlib.py", line 41, in
import importlib.metadata as metadata # noqa: F401
File "importlib\metadata_init
.py", line 17, in
File "importlib\metadata_adapters.py", line 3, in
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'

How can I solve it ?
Help me, please....

'ConfigDict' object has no attribute 'test_dataloader'

Getting this error every time I use this in txt2img:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "M:\stable-diffusion-webui\modules\call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "M:\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "M:\stable-diffusion-webui\modules\txt2img.py", line 53, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "M:\stable-diffusion-webui\modules\scripts.py", line 407, in run
processed = script.run(p, *script_args)
File "M:\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 679, in run
results_a = inference(init_image, dd_model_a, dd_conf_a / 100.0, label_a)
File "M:\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 980, in inference
results = inference_mmdet_bbox(image, modelname, conf_thres, label)
File "M:\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 1017, in inference_mmdet_bbox
model = init_detector(model_config, model_checkpoint, device=model_device)
File "M:\stable-diffusion-webui\venv\lib\site-packages\mmdet\apis\inference.py", line 94, in init_detector
test_dataset_cfg = copy.deepcopy(config.test_dataloader.dataset)
File "M:\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 903, in getattr
return getattr(self._cfg_dict, name)
File "M:\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 54, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'

install.py 문구 오류있는듯합니다

에러나서 확인해보니 install.py에서 launch.py 를 참조해서
dir_extensions 을 받아오도록 되어있는듯싶은데 launch.py 에는 dir_extensions 이 아닌 extensions_dir 항목이더군요.
따라서 install.py 내에 dir_extensions 문구를 extensions_dir 로 고치니 에러는 없어졌구요.

AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'

File "C:\SD\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 678, in run
results_a = inference(init_image, dd_model_a, dd_conf_a / 100.0, label_a)
File "C:\SD\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 982, in inference
results = inference_mmdet_bbox(image, modelname, conf_thres, label)
File "C:\SD\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 1019, in inference_mmdet_bbox
model = init_detector(model_config, model_checkpoint, device=model_device)
File "C:\SD\python\python\lib\site-packages\mmdet\apis\inference.py", line 94, in init_detector
test_dataset_cfg = copy.deepcopy(config.test_dataloader.dataset)
File "C:\SD\python\python\lib\site-packages\mmengine\config\config.py", line 903, in getattr
return getattr(self._cfg_dict, name)
File "C:\SD\python\python\lib\site-packages\mmengine\config\config.py", line 54, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'

AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'`

Hey everyone,

I'm getting the following error when trying to use the script...
Let me know what info I can provide to you to solve this issue!

SD-WebUi starts without any issues or error messages, only when it tries to apply the script, it errors out and stops the generation or the image.

Loads checkpoint by local backend from path: G:\AI\stable-diffusion-webui-a1111\webui\models\mmdet\bbox\mmdet_anime-face_yolov3.pth
Error completing request
Arguments: ('task(oj9ynhm1oa4gerd)', 'Candid Shot At Girl Picture, Natural Volumetric Lighting And Best Shadow, Deep Depth Of Field, Lively, Sharp Focus, Portrait Of Stunningly Beautiful Teenager Girl, Soft Delicate Beautiful Attractive Face With Alluring Green Eyes, Stub Earrings, Lovely Medium Breasts, Body Freckles, Seductive Smiling, Open Mouth With Whiter Teeth, Windswept Disheveled Red Hair, Thick Long Straight Layered Hairstyles, Skindentation, Blush Eyeshadow With Thick Eyelashes, Parted Lips, BREAK Lumberjack Hat, (Green Plaid Flannel Shirt With Short Sleeves:1.1), Very Tall With Skinny Belly, Blue Tight Skinny Denim Jean Pants, Wide Hip, Muddy Rain Boots, (In Beautiful Autumn Colors Forest, Wallpaper Autumn Foliage, Fall Leaf, Grass:1.1), (Sitting On Tree Stump With Legs Apart, Arm On Knee:1.2), (Highest Quality, Amazing Details:1.4), (Solo, Picturesque Scenery:1.3), (Raytracing, Color Grading:1.2), Bloom, Vivid Watercolor Paintings,  <lora:flat_color:0.63>', '(Worst Quality, Low Quality:1.4)', [], 35, 16, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 768, 512, False, 0.5, 2, '4x-UltraSharp', 0, 0, 0, [], 4, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, '', 'bbox\\mmdet_anime-face_yolov3.pth [51e1af4a]', 30, 25, 0, 0, False, 'None', '<br>', 'None', 30, 4, 0, 0, 4, 0.4, True, 4, 7, '', '') {}
Traceback (most recent call last):
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\mmengine\config\config.py", line 52, in __getattr__
    value = super().__getattr__(name)
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\addict\addict.py", line 67, in __getattr__
    return self.__getitem__(item)
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\mmengine\config\config.py", line 48, in __missing__
    raise KeyError(name)
KeyError: 'test_dataloader'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\AI\stable-diffusion-webui-a1111\webui\modules\call_queue.py", line 57, in f
    res = list(func(*args, **kwargs))
  File "G:\AI\stable-diffusion-webui-a1111\webui\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "G:\AI\stable-diffusion-webui-a1111\webui\modules\txt2img.py", line 53, in txt2img
    processed = modules.scripts.scripts_txt2img.run(p, *args)
  File "G:\AI\stable-diffusion-webui-a1111\webui\modules\scripts.py", line 407, in run
    processed = script.run(p, *script_args)
  File "G:\AI\stable-diffusion-webui-a1111\webui\extensions\dddetailer\scripts\dddetailer.py", line 678, in run
    results_a = inference(init_image, dd_model_a, dd_conf_a / 100.0, label_a)
  File "G:\AI\stable-diffusion-webui-a1111\webui\extensions\dddetailer\scripts\dddetailer.py", line 979, in inference
    results = inference_mmdet_bbox(image, modelname, conf_thres, label)
  File "G:\AI\stable-diffusion-webui-a1111\webui\extensions\dddetailer\scripts\dddetailer.py", line 1016, in inference_mmdet_bbox
    model = init_detector(model_config, model_checkpoint, device=model_device)
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\mmdet\apis\inference.py", line 94, in init_detector
    test_dataset_cfg = copy.deepcopy(config.test_dataloader.dataset)
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\mmengine\config\config.py", line 903, in __getattr__
    return getattr(self._cfg_dict, name)
  File "G:\AI\stable-diffusion-webui-a1111\system\python\lib\site-packages\mmengine\config\config.py", line 54, in __getattr__
    raise AttributeError(f"'{self.__class__.__name__}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'

프롬프트 적용이 안되는거 같습니다.

오늘 확장 업데이트 후에 디테일러 프롬프트가 적용이 안되는거 같습니다.
디테일러 동작 자체는 되지만 디테일러 프롬프트는 적용이 안되서
기본 프롬프트 내용만 그대로 들어가는듯 합니다.

EXIF에도 업데이트 후에 디테일러 적용해서 생성된 이미지에서는
CFG 스케일값이 디테일러 CFG 설정값이 들어가고
SD에서 이미지를 T2I로 전송하게 되면 오류 표시가 뜹니다.

스크립트가 자주 비활성화됩니다.

삭제 후 재설치를 하는데도 계속 에러가 나고 비활성화 되고 있습니다.
업데이트를 시도해봐도 에러가 뜨네요.

Error loading script: ddetailer.py
Traceback (most recent call last):
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\extensions\dddetailer\scripts\ddetailer.py", line 931, in
from mmdet.apis import inference_detector, init_detector
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\mmdet_init
.py", line 10, in
mmcv_version = digit_version(mmcv.version)
AttributeError: module 'mmcv' has no attribute 'version'

[AddNet] Updating model hashes...
0it [00:00, ?it/s]
init TpTranslate
[VRAMEstimator] No stats available, run benchmark first
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
COMMANDLINE_ARGS does not contain --api, API won't be mounted.
Startup time: 44.3s (load scripts: 31.3s, create ui: 12.6s, gradio launch: 0.2s).
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 335, in call
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread(
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다: 'D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\tags\keymap.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in call
await super().call(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 69, in app
await response(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 338, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\tags\keymap.json does not exist.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 335, in call
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread(
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다: 'D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\tags\colors.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in call
await super().call(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 69, in app
await response(scope, receive, send)
File "D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 338, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path D:\Norble_AI\WEBUI0.55.4\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\tags\colors.json does not exist.

frequently getting values do not match errors

0it [00:00, ?it/s]
Loads checkpoint by local backend from path: C:\ai\stable-diffusion-webui\models\mmdet\bbox\mmdet_anime-face_yolov3.pth
Processing 1 model A detections for output generation 1.
locon load lora method
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [01:23<00:00, 2.77s/it]
Error completing request██████████████████████████████ | 30/60 [01:17<01:19, 2.65s/it]
Arguments: ('task(tdsn6rmmj7t5k2y)', 0, '(Masterpiece, Hypermaximalist, Maximalism, Best Quality, 8k, Highres, Absurdres, 4k, High Quality, Ultra High Res, Highest Quality, Ultra Detailed, 8k Uhd, 1girl, Solo, Realistic, Highly Detailed, Ultra-Detailed, 1 Girl:1.0), (Cinematic Lighting, Hdr, Raw Photo, Sharp Focus, Photorealistic, Photo-Realistic:0.7), \n (rface:1.0), \n(skin:1.0),\nlora:Style_EpiNoisev2Python:1 rnglora-mid', '(EasyNegative:1), (ng_deepnegative_v1_4t:1), (badhandv4:1.0), (verybadimagenegative_v1.3:0.5), (verybadimagenegative_v1.3:0.5), (By bad artist:0.8), (extra fingers, fewer fingers, strange fingers, bad hand, bad anatomy:1.1), (worst quality, lowres, low quality, normal quality, monochrome, grayscale, deformed, bad proportions,:1.0), (anime, cartoon, young, underage, child, kid, loli, teen:1.4), man, male, boy, 少女, (large breasts, huge breasts, giant breasts:1.0), (pussy), (missing leg, bad leg, extra leg, fewer leg, strange leg)', [], <PIL.Image.Image image mode=RGBA size=512x768 at 0x20B2B224130>, None, {'image': <PIL.Image.Image image mode=RGBA size=512x768 at 0x20B2B224B50>, 'mask': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=512x768 at 0x20B2B227FD0>}, None, None, None, None, 30, 15, 4, 0, 1, False, False, 1, 1, 7, 1.5, 0.35, -1.0, -1.0, 0, 0, 0, False, 768, 512, 2, 0, 32, 0, 'C:\ai\stable-diffusion-webui\outputs\txt2img-images\2023-04-15\New folder\done2', 'C:\ai\stable-diffusion-webui\outputs\txt2img-images\2023-04-15\New folder\done2\facefix', '', [], 9, 0, 0, 0, 0, 2, 512, 512, True, 'x1_ITF_SkinDiffDetail_Lite_v1', 'None', 0, False, '', 0, True, False, 1, False, False, False, 1.1, 1.5, 100, 0.7, False, False, True, False, False, 0, 'Gustavosta/MagicPrompt-Stable-Diffusion', '', <scripts.external_code.ControlNetUnit object at 0x0000020B476A6830>, '

    \n
  • CFG Scale should be 2 or lower.
  • \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '

Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8

', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '

Will upscale the image by the selected scale factor; use width and height sliders to set tile size

', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0, '

Recommended settings: Use from inpaint tab, inpaint at full res ON, denoise <0.5

', 'bbox\mmdet_anime-face_yolov3.pth [51e1af4a]', 30, 4, 0, 0, False, 'None', '
', 'None', 30, 4, 0, 0, 4, 0.4, True, 32, 7, None, False, 50, '

Will upscale the image depending on the selected target size type

', 512, 0, 8, 32, 64, 0.35, 32, 0, True, 0, False, 8, 0, 0, 2048, 2048, 2) {}
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "C:\ai\stable-diffusion-webui\modules\img2img.py", line 170, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "C:\ai\stable-diffusion-webui\modules\scripts.py", line 407, in run
processed = script.run(p, *script_args)
File "C:\ai\stable-diffusion-webui\extensions\dddetailer\scripts\ddetailer.py", line 688, in run
processed = processing.process_images(p)
File "C:\ai\stable-diffusion-webui\modules\processing.py", line 503, in process_images
res = process_images_inner(p)
File "C:\ai\stable-diffusion-webui\modules\processing.py", line 711, in process_images_inner
image_mask_composite = Image.composite(image.convert('RGBA').convert('RGBa'), Image.new('RGBa', image.size), p.mask_for_overlay.convert('L')).convert('RGBA')
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3341, in composite
image.paste(image1, None, mask)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1731, in paste
self.im.paste(im, box, mask.im)
ValueError: images do not match

any help/suggestions greatly appreciated - this is from i2i

happens primarily when trying to involve an upscaler - it'd be nice if either dddetails processed before the upscaler and then let the upscaler do its thing, or even better if it could take the upscaled image and somehow work with that without running out of memory XD but just running dddetails first without the upscaler hitting it would be just fine.

Cannot launch or download dddetailer required assets

error code below

Error running install.py for extension extensions\dddetailer.
Command: "C:\Users\Lucky Luciano\stable-diffusion-webui\venv\Scripts\python.exe" "extensions\dddetailer\install.py"
Error code: 1
stdout:
stderr: Traceback (most recent call last):
File "C:\Users\Lucky Luciano\stable-diffusion-webui\extensions\dddetailer\install.py", line 36, in check_ddetailer
from launch import extensions_dir
ImportError: cannot import name 'extensions_dir' from 'launch' (C:\Users\Lucky Luciano\stable-diffusion-webui\launch.py)
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Lucky Luciano\stable-diffusion-webui\extensions\dddetailer\install.py", line 99, in
if not check_ddetailer():
File "C:\Users\Lucky Luciano\stable-diffusion-webui\extensions\dddetailer\install.py", line 40, in check_ddetailer
from launch import data_path
ImportError: cannot import name 'data_path' from 'launch' (C:\Users\Lucky Luciano\stable-diffusion-webui\launch.py)

Black image since the last webui update

python: 3.10.6  •  torch: 2.0.0+cu118  •  xformers: 0.0.17  •  gradio: 3.28.1  •  commit: 5ab7f213  •  checkpoint: d2509a3c68

SInce the last update I have problems. I did a full reinstallation of AUTOMATIC1111. All is ok but when I install dddetailer all my images are fully black. When the script is disable is the same issue

bug:could not be installed

rror running install.py for extension D:\Soft\Aidrw\stable-diffusion-webui\extensions\dddetailer.
Command: "D:\Soft\Aidrw\stable-diffusion-webui\venv\Scripts\Python.exe" "D:\Soft\Aidrw\stable-diffusion-webui\extensions\dddetailer\install.py"
Error code: 1
stdout: Uninstalling mmcv mmdet... (if installed)

Installing mmcv mmdet...

stderr: WARNING: Skipping mmcv as it is not installed.

WARNING: Skipping mmcv-full as it is not installed.

WARNING: Skipping mmdet as it is not installed.

WARNING: Skipping mmengine as it is not installed.

һʹôļ޷ʡ

Traceback (most recent call last):

File "D:\Soft\Aidrw\stable-diffusion-webui\extensions\dddetailer\install.py", line 109, in

install()

File "D:\Soft\Aidrw\stable-diffusion-webui\extensions\dddetailer\install.py", line 96, in install

run(f'"{python}" -m mim install -U mmcv>=2.0.0 mmdet>=3.0.0', live=True)

File "D:\Soft\Aidrw\stable-diffusion-webui\launch.py", line 80, in run

raise RuntimeError(f"""{errdesc or 'Error running command'}.

RuntimeError: Error running command.
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Command: "D:\Soft\Aidrw\stable-diffusion-webui\venv\Scripts\python.exe" -m mim install -U mmcv>=2.0.0 mmdet>=3.0.0

Error code: 1

형님 이 에러는 무엇인가요??

True, False, False, False, 0, '', 'bbox\mmdet_anime-face_yolov3.pth [51e1af4a]', 30, 4, 0, 0, False, 'None', '
', 'None', 30, 4, 0, 0, 4, 0.4, True, 32, 7, '', '', None, False, None, False, None, False, None, False, None, False, None, False, 50) {}
Traceback (most recent call last):
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 52, in getattr
value = super().getattr(name)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\addict\addict.py", line 67, in getattr
return self.getitem(item)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 48, in missing
raise KeyError(name)
KeyError: 'test_dataloader'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\txt2img.py", line 53, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\scripts.py", line 408, in run
processed = script.run(p, *script_args)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 678, in run
results_a = inference(init_image, dd_model_a, dd_conf_a / 100.0, label_a)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 982, in inference
results = inference_mmdet_bbox(image, modelname, conf_thres, label)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\dddetailer\scripts\dddetailer.py", line 1019, in inference_mmdet_bbox
model = init_detector(model_config, model_checkpoint, device=model_device)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\mmdet\apis\inference.py", line 94, in init_detector
test_dataset_cfg = copy.deepcopy(config.test_dataloader.dataset)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 903, in getattr
return getattr(self._cfg_dict, name)
File "C:\Users\USER\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\mmengine\config\config.py", line 54, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'test_dataloader'

도저히 다 해봤는데 해결이 안되어가지고..

I have a problem about new version

I updated your program. After that, I got a problem about adetailer. When I used adetailer, I made below photos.
I am using majicmixRealistic_v7.

284133179-297d2632-90a1-4c46-81b4-b93f2d1e605e

Module mmengine missing, trouble when adding it

I'm getting this issue after installing the extension through A1111's
Error loading script: ddetailer.py Traceback (most recent call last): File "C:\Users\josh\Documents\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\josh\Documents\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "C:\Users\josh\Documents\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 458, in <module> from mmdet.core import get_classes File "C:\Users\josh\Documents\stable-diffusion-webui\venv\lib\site-packages\mmdet\__init__.py", line 3, in <module> import mmengine ModuleNotFoundError: No module named 'mmengine'

Manually getting the mmengine module causes other dependency issues, such as it complaining that the mmcv is a lower version, and it goes on. What version of mmengine does this need and could you provide a link to it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.