MaskTextSpotter icon indicating copy to clipboard operation
MaskTextSpotter copied to clipboard

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

Open Jeet0204 opened this issue 3 years ago • 4 comments

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.

Jeet0204 avatar Jul 27 '20 05:07 Jeet0204

Have you solved the problem?

yanyuliren avatar Sep 07 '20 00:09 yanyuliren

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

MhLiao avatar Sep 07 '20 01:09 MhLiao

@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 ?

yuanjiXiang avatar Oct 25 '20 05:10 yuanjiXiang

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

imagine5am avatar Apr 22 '21 14:04 imagine5am