bing-su / dddetailer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dustysys/ddetailer
Detection Detailer hijack edition
This project forked from dustysys/ddetailer
Detection Detailer hijack edition
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.
https://postimg.cc/gallery/N2Cwwr7
dddetailer 사용한 그림을 PNG Info 로 불러오고 Send to txt2img 하면
에러화면이 출력되는데
혹이 이것도 해결 가능할까요?
dddetailer https://github.com/Bing-su/dddetailer 6217179 (Wed Apr 12 07:13:17 2023) latest
확장은 최신버전입니다
편하게 만들어져주서 감사합니다
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'
도저히 다 해봤는데 해결이 안되어가지고..
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>, '
CFG Scale
should be 2 or lower.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', '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) {}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.
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.
에러나서 확인해보니 install.py에서 launch.py 를 참조해서
dir_extensions 을 받아오도록 되어있는듯싶은데 launch.py 에는 dir_extensions 이 아닌 extensions_dir 항목이더군요.
따라서 install.py 내에 dir_extensions 문구를 extensions_dir 로 고치니 에러는 없어졌구요.
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....
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'
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'
삭제 후 재설치를 하는데도 계속 에러가 나고 비활성화 되고 있습니다.
업데이트를 시도해봐도 에러가 뜨네요.
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.
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
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
After update it doesn't work. Both models A and B.
Text of error:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
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'
should probs update your install instructions as they still mention https://github.com/dustysys/ddetailer.git for the git clone
Batch 돌렸을 때 완료 후 Grids 이미지를 출력하지 않는 문제가 있어,
혹시나 하고 dddetailer 를 사용하지 않고 돌렸더니 정상적으로 생성되었습니다.
따로 에러메시지는 없습니다.
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.
안녕하세요?
Apple Silicon 은 지원하시나요?
감사합니다.
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?
오늘 확장 업데이트 후에 디테일러 프롬프트가 적용이 안되는거 같습니다.
디테일러 동작 자체는 되지만 디테일러 프롬프트는 적용이 안되서
기본 프롬프트 내용만 그대로 들어가는듯 합니다.
EXIF에도 업데이트 후에 디테일러 적용해서 생성된 이미지에서는
CFG 스케일값이 디테일러 CFG 설정값이 들어가고
SD에서 이미지를 T2I로 전송하게 되면 오류 표시가 뜹니다.
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)
https://postimg.cc/gallery/L8BJbLy
증상은 사진과 같습니다
컨트롤넷 오픈포즈 사용
배치카운트 10장
dddetailer 적용
2장 뽑다가 중지하면 나머지 8장은 오픈포즈 뼈대가 출력됩니다
혹시 이것도 해결이 가능할까요?
편하게 만들어주셔서 정말 잘 사용하고있습니다!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.