Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
virox opened this issue May 8, 2023 · 0 comments
Open

Comments

@virox
Copy link

virox commented May 8, 2023

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant