File "/yolov5-main/utils/general.py", line 31, in
from mmcv.ops import soft_nms, nms
File "/yolov5-main/mmcv-main/mmcv/ops/init.py", line 2, in
from .active_rotated_filter import active_rotated_filter
File "/yolov5-main/mmcv-main/mmcv/ops/active_rotated_filter.py", line 8, in
ext_module = ext_loader.load_ext(
File "/yolov5-main/mmcv-main/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/anaconda3/envs/python/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /yolov5-main/mmcv-main/mmcv/_ext.cpython-38-x86_64-linux-gnu.so: undefined symbol: _Z3nmsN2at6TensorES0_fi
大佬您好,我用的您的这个版本Yolov5:https://github.com/shenyi0220/yolov5以及mmcv: https://github.com/shenyi0220/mmcv,已经将mmcv/ops/csrc/pytorch/cpu/nms.cpp和mmcv/ops/csrc/pytorch/nms.cpp进行了替换,执行MMCV_WITH_OPS=1 pip install -e .安装mmcv提示成功安装1.4.4版本,但是运行val.py文件提示如上错误,我的pythorch版本是1.9.0,cuda11.1。
File "/yolov5-main/utils/general.py", line 31, in
from mmcv.ops import soft_nms, nms
File "/yolov5-main/mmcv-main/mmcv/ops/init.py", line 2, in
from .active_rotated_filter import active_rotated_filter
File "/yolov5-main/mmcv-main/mmcv/ops/active_rotated_filter.py", line 8, in
ext_module = ext_loader.load_ext(
File "/yolov5-main/mmcv-main/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/anaconda3/envs/python/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /yolov5-main/mmcv-main/mmcv/_ext.cpython-38-x86_64-linux-gnu.so: undefined symbol: _Z3nmsN2at6TensorES0_fi
大佬您好,我用的您的这个版本Yolov5:https://github.com/shenyi0220/yolov5以及mmcv: https://github.com/shenyi0220/mmcv,已经将mmcv/ops/csrc/pytorch/cpu/nms.cpp和mmcv/ops/csrc/pytorch/nms.cpp进行了替换,执行MMCV_WITH_OPS=1 pip install -e .安装mmcv提示成功安装1.4.4版本,但是运行val.py文件提示如上错误,我的pythorch版本是1.9.0,cuda11.1。