Bing-su / dddetailer

Detection Detailer hijack edition
131 stars 14 forks source link

ImportError: Please install petrel_client to enable PetrelBackend. #23

Open NathanSamurai opened 1 year ago

NathanSamurai commented 1 year ago

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_backends[prefix](backend_args) 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.