dustysys / ddetailer

339 stars 73 forks source link

ModuleNotFoundError: No module named 'mmdet.evaluation' #61

Closed vavricio closed 11 months ago

vavricio commented 1 year ago

venv "D:\stable-diffusion\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] Version: v1.3.0 Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3 Installing requirements Launching Web UI with arguments: --lowvram --no-half-vae --opt-split-attention --xformers Check config files... Done Error loading script: ddetailer.py Traceback (most recent call last): File "D:\stable-diffusion\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 496, in from mmdet.core import get_classes File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmdet\core__init.py", line 3, in from .bbox import * # noqa: F401, F403 File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmdet\core\bbox__init.py", line 8, in from .samplers import (BaseSampler, CombinedSampler, File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmdet\core\bbox\samplers\init__.py", line 12, in from .score_hlr_sampler import ScoreHLRSampler File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmdet\core\bbox\samplers\score_hlr_sampler.py", line 3, in from mmcv.ops import nms_match File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmcv\ops\init.py", line 2, in from .active_rotated_filter import active_rotated_filter File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 10, in ext_module = ext_loader.load_ext( File "D:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "C:\Users\vavricio\AppData\Local\Programs\Python\Python310\lib\importlib\init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed while importing _ext: The specified procedure could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\stable-diffusion\stable-diffusion-webui\modules\scripts.py", line 263, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\stable-diffusion\stable-diffusion-webui\modules\script_loading.py", line 10, 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:\stable-diffusion\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 501, in from mmdet.evaluation import get_classes ModuleNotFoundError: No module named 'mmdet.evaluation'

Loading weights [6ce0161689] from D:\stable-diffusion\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 6.8s (import torch: 1.6s, import gradio: 1.1s, import ldm: 0.6s, other imports: 0.8s, load scripts: 2.0s, create ui: 0.4s, gradio launch: 0.2s). Creating model from config: D:\stable-diffusion\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying optimization: xformers... done. Textual inversion embeddings loaded(0): Model loaded in 2.6s (load weights from disk: 0.7s, create model: 0.4s, apply weights to model: 0.8s, apply half(): 0.6s).