zhang-tao-whu / e2ec_mmdet

Apache License 2.0
8 stars 0 forks source link

模型import失败:ModuleNotFoundError: No module named 'native_rasterizer' #3

Open theRain0450 opened 7 months ago

theRain0450 commented 7 months ago

控制台细节: Traceback (most recent call last): File "C:/PythonProject/e2ec_mmdet-master/demo/test.py", line 1, in from mmdet.apis import init_detector, inference_detector File "C:\PythonProject\e2ec_mmdet-master\mmdet\apis__init.py", line 2, in from .inference import (async_inference_detector, inference_detector, File "C:\PythonProject\e2ec_mmdet-master\mmdet\apis\inference.py", line 13, in from mmdet.datasets import replace_ImageToTensor File "C:\PythonProject\e2ec_mmdet-master\mmdet\datasets__init.py", line 13, in from .utils import (NumClassCheckHook, get_loading_pipeline, File "C:\PythonProject\e2ec_mmdet-master\mmdet\datasets\utils.py", line 11, in from mmdet.models.dense_heads import GARPNHead, RPNHead File "C:\PythonProject\e2ec_mmdet-master\mmdet\models__init__.py", line 7, in from .dense_heads import * # noqa: F401,F403 File "C:\PythonProject\e2ec_mmdet-master\mmdet\models\dense_heads\init__.py", line 17, in from .fsaf_head import FSAFHead File "C:\PythonProject\e2ec_mmdet-master\mmdet\models\dense_heads\fsaf_head.py", line 9, in from ..losses.accuracy import accuracy File "C:\PythonProject\e2ec_mmdet-master\mmdet\models\losses\init__.py", line 21, in from .contour_loss import DMLoss, MaskRasterizationLoss File "C:\PythonProject\e2ec_mmdet-master\mmdet\models\losses\contour_loss.py", line 8, in import native_rasterizer ModuleNotFoundError: No module named 'native_rasterizer'

zhang-tao-whu commented 7 months ago

Please cd to dir and install it (python setup.py develop).

theRain0450 commented 7 months ago

Please cd to dir and install it (python setup.py develop).

sorry,it still not work image image image