Cuogeihong / CEASC

The official implementation of CEASC
Apache License 2.0
106 stars 13 forks source link

安装Sparse_conv时出现错误 #23

Open Czeni1 opened 11 months ago

Czeni1 commented 11 months ago

您好,我在安装SC模块时,运行python setup.py install命令时,出现以下错误,是因为什么呢,期待您的答复! D:\Anaconda3\envs\CEASC\lib\site-packages\torch\include\pybind11\detail/common.h(152): warning C4005: 'HAVE_SNPRINTF': macro redefinition D:\Anaconda3\envs\CEASC\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF' sparse_conv_cuda.cpp(11): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory error: command 'D:\vs20190\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2

Cuogeihong commented 11 months ago

可以删掉这些代码 https://github.com/Cuogeihong/CEASC/blob/2abfd1a99f1b0fe1ed3d51588b64549e1584da50/Sparse_conv/sparse_conv_cuda.cpp#L11

https://github.com/Cuogeihong/CEASC/blob/2abfd1a99f1b0fe1ed3d51588b64549e1584da50/Sparse_conv/sparse_conv_cuda.cpp#L71-L78

Czeni1 commented 11 months ago

可以删掉这些代码

https://github.com/Cuogeihong/CEASC/blob/2abfd1a99f1b0fe1ed3d51588b64549e1584da50/Sparse_conv/sparse_conv_cuda.cpp#L11

https://github.com/Cuogeihong/CEASC/blob/2abfd1a99f1b0fe1ed3d51588b64549e1584da50/Sparse_conv/sparse_conv_cuda.cpp#L71-L78

谢谢您的答复,我的环境是CUDA11.3,pytorch1.10.1,mmdet和mmcv都是和您一样的,但出现了这种错误,为什么呢? (SC) C:\Users\Administrator\Desktop\CEASC-main>python tools/train.py configs/UAV/dynamic_gfl_res18_visdrone.py --work-dir th Traceback (most recent call last): File "tools/train.py", line 17, in from mmdet.apis import init_random_seed, set_random_seed, train_detector File "D:\Anaconda3\envs\SC\lib\site-packages\mmdet-2.24.1-py3.8.egg\mmdet\apis__init__.py", line 2, in from .inference import (async_inference_detector, inference_detector, File "D:\Anaconda3\envs\SC\lib\site-packages\mmdet-2.24.1-py3.8.egg\mmdet\apis\inference.py", line 8, in from mmcv.ops import RoIPool File "D:\Anaconda3\envs\SC\lib\site-packages\mmcv\ops__init.py", line 2, in from .active_rotated_filter import active_rotated_filter File "D:\Anaconda3\envs\SC\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 8, in ext_module = ext_loader.load_ext( File "D:\Anaconda3\envs\SC\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "D:\Anaconda3\envs\SC\lib\importlib\init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed while importing _ext: 找不到指定的程序。

lili1052 commented 1 month ago

你好,请问你后来解决这个问题了吗