控制台细节:
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'
控制台细节: 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'