dustysys / ddetailer

339 stars 73 forks source link

ModuleNotFoundError: No module named 'mmdet.core' #38

Closed whatifif closed 11 months ago

whatifif commented 1 year ago

AssertionError: MMCV==1.7.1 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.

version incompatibility

whatifif commented 1 year ago

ModuleNotFoundError: No module named 'mmdet.core'

smj8004 commented 1 year ago

ModuleNotFoundError: No module named 'mmdet.core'

same :(

corydambach commented 1 year ago

same :(

TsaoMD commented 1 year ago

need to update the max version? https://github.com/open-mmlab/mmaction2/issues/768 https://github.com/open-mmlab/mmaction2/pull/769

i assume this explains why the extension does not appear in scripts even when installed through the UI.

Bunnichi commented 1 year ago

nevermind i was wrong entirely

alexcellsinetous commented 1 year ago

look at new issues:) i got fixed.

zhaojinbiao commented 1 year ago

look at new issues:) i got fixed.

This is great, I also encountered this problem. How did you solve it?

passerbyzhao commented 1 year ago

Found a solution to 'No module named 'mmdet.core''. Maybe because mmdet==3.0.0 has no core. I uninstall mmdet 3.0.0 then install mmdet 2.25.3 and the problem is fixed. Note that mmdet 2.25.3 is incompatible with mmcv>=2.0.0, so you also need to uninstall mmcv 2.0.0 and install mmcv-full 1.7.0. Hopes this will help.

passerbyzhao commented 1 year ago

Found a solution to 'No module named 'mmdet.core''. Maybe because mmdet==3.0.0 has no core. I uninstall mmdet 3.0.0 then install mmdet 2.25.3 and the problem is fixed. Note that mmdet 2.25.3 is incompatible with mmcv>=2.0.0, so you also need to uninstall mmcv 2.0.0 and install mmcv-full 1.7.0. Hopes this will help.

The newest version of mmdet 2.x is 2.28, so it's better to install mmdet 2.28

ghercules commented 1 year ago

Use "from mmdet.models import build_anchor_generator" instead of "from mmdet.core import build_anchor_generator"

Anyeos commented 1 year ago

Mine is on line 458 being to be replaced by: from mmdet.evaluation.functional import get_classes

marcsyp commented 1 year ago

Has anyone gotten this to work with A1111 1.6 and torch 1.13? I have gotten the script to load but get this message when trying to use ddetailer in img2img:

error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:650: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'

CCpt5 commented 11 months ago

Has anyone gotten this to work with A1111 1.6 and torch 1.13? I have gotten the script to load but get this message when trying to use ddetailer in img2img:

error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:650: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'

Hey, if you're not aware a different developer has been working on a fork of this for a few weeks. I'm having a couple issues getting it started (mmcv issue), but I should be able to get it. The dev is really active so could try that version if you haven't gott this running: https://github.com/wkpark/uddetailer