shenyi0220 / CP-Cluster

45 stars 3 forks source link

mmcv安装问题 #4

Closed pipnc closed 1 year ago

pipnc commented 2 years ago

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。

shenyi0220 commented 2 years ago

额,这个,似乎是没找到mmcv,我在本地用的cuda10.2+pytorch1.8弄的,但我觉得可能是其他问题。 可以先尝试弄个标准的mmcv,能在yolov5里调用成功后,再上带cp-cluster的版本

IsYang68 commented 2 years ago

我也遇见了相同的问题,请问你解决了吗

mastergao57 commented 1 year ago

一样的问题,有人解决吗?