Stable Diffusion Automatic1111 Web UI Extension ddetailer 로딩 에러 (a1111)

ddetailer
    - object detection and auto-mask extension
https://github.com/dustysys/ddetailer

    - 에러 메시지
ddetailer error ModuleNotFoundError: No module named 'mmdet.core'


//-----------------------------------------------------------------------------
< 해결 방법 >

https://github.com/dustysys/ddetailer/issues/38

mmdet 와 mmcv 를 구버전으로 설치한다.

    - 설치된 패키지 버전 확인
pip list | grep mm


    - 패키지 제거
pip uninstall mmcv
pip uninstall mmcv-full==1.7.0
pip uninstall mmdet


    - 구버전 패키지 설치
pip install "mmcv-full==1.7.0"   # 주의!! 설치 시간이 오래 걸린다

    - 참고) 다음처럼 파일을 지정할 수도 있지만, 역시 오래 걸림
        - ex) 설치된 pytorch==2.0.0 cuda==11.7 라면
pip install "mmcv-full==1.7.0" -f https://download.openmmlab.com/mmcv/dist/cu117/torch2.0.0/index.html

pip install mmdet==2.25.3


//-------------------------------------
< 참고 만 >
open-mmlab / mmdetection - 설치
https://github.com/open-mmlab/mmdetection 
https://mmdetection.readthedocs.io/en/latest/get_started.html

 

 

반응형
Posted by codens