MhLiao / MaskTextSpotter

A PyTorch implementation of Mask TextSpotter
https://github.com/MhLiao/MaskTextSpotter
414 stars 96 forks source link

ImportError: DLL load failed while importing _C: The specified procedure could not be found. #73

Open Jeet0204 opened 3 years ago

Jeet0204 commented 3 years ago

I am trying to run demo.py but it is throwing the following error. Can anyone help me solving this error? Thanks in advance Below is the piece of error:

File "tools/demo.py", line 6, in from maskrcnn_benchmark.modeling.detector import build_detection_model File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\detector__init.py", line 2, in from .detectors import build_detection_model File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\detector\detectors.py", line 2, in from .generalized_rcnn import GeneralizedRCNN File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\detector\generalized_rcnn.py", line 11, in from ..backbone import build_backbone File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\backbone__init__.py", line 2, in from .backbone import build_backbone File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\backbone\backbone.py", line 7, in from . import resnet File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\modeling\backbone\resnet.py", line 19, in from maskrcnn_benchmark.layers import FrozenBatchNorm2d File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\layers\init__.py", line 8, in from .nms import nms File "c:\users\jeetj\masktextspotter\maskrcnn_benchmark\layers\nms.py", line 3, in from maskrcnn_benchmark import _C ImportError: DLL load failed while importing _C: The specified procedure could not be found.

yanyuliren commented 3 years ago

Have you solved the problem?

MhLiao commented 3 years ago

@yanyuliren @Jeet0204 I guess you did not build the code successfully. Have you encountered any errors when running python setup.py build develop?

yuanjiXiang commented 3 years ago

@yanyuliren @Jeet0204 I guess you did not build the code successfully. Have you encountered any errors when running python setup.py build develop?

hi, i met the problem when i ran python setup.py build develop, what should i do ?

imagine5am commented 3 years ago

In maskrcnn_benchmark/layers/{nms.py, roi_align.py, roi_pool.py} change "from maskrcnn_benchmark import _C" to "from ._utils import _C"