deepinsight / deepinsight/insightface

AssertionError: fused_bias_leakyrelu miss in module _ext

Open
#1,949 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

Hi, I am using an Ubuntu 18.04. I have installed mmc 1.3.3, then run pip install -r requirements/build.txt, then pip install -v -e ., and installed mmdet 2.7.0

When I run the following command:
`python3 tools/scrfd2onnx.py config configs/scrfd/scrfd_2.5g.py checkpoint pytorch\ weights/scfrd_2-5g.pth --input-img 0.jpg --shape 640`
to convert scfrd to onnx, I get the following error:
```
Traceback (most recent call last):
File "tools/scrfd2onnx.py", line 10, in
from mmdet.core import (build_model_from_cfg, generate_inputs_and_wrap_model,
File "/home/va/Desktop/scrfd/mmdet/core/__init__.py", line 2, in
from .bbox import * # noqa: F401, F403
File "/home/va/Desktop/scrfd/mmdet/core/bbox/__init__.py", line 7, in
from .samplers import (BaseSampler, CombinedSampler,
File "/home/va/Desktop/scrfd/mmdet/core/bbox/samplers/__init__.py", line 9, in
from .score_hlr_sampler import ScoreHLRSampler
File "/home/va/Desktop/scrfd/mmdet/core/bbox/samplers/score_hlr_sampler.py", line 2, in
from mmcv.ops import nms_match
File "/home/va/Desktop/scrfd/venv/lib/python3.6/site-packages/mmcv/ops/__init__.py", line 15, in
from .fused_bias_leakyrelu import FusedBiasLeakyReLU, fused_bias_leakyrelu
File "/home/va/Desktop/scrfd/venv/lib/python3.6/site-packages/mmcv/ops/fused_bias_leakyrelu.py", line 10, in
ext_module = ext_loader.load_ext('_ext', ['fused_bias_leakyrelu'])
File "/home/va/Desktop/scrfd/venv/lib/python3.6/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
assert hasattr(ext, fun), f'{fun} miss in module {name}'
AssertionError: fused_bias_leakyrelu miss in module _ext
```

Could someone advise?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.