zhangxiaosong18 / FreeAnchor

FreeAnchor: Learning to Match Anchors for Visual Object Detection (NeurIPS 2019)
https://arxiv.org/abs/1909.02466
MIT License
677 stars 111 forks source link

Compile Failed on Windows 10 #1

Closed aligoglos closed 5 years ago

aligoglos commented 5 years ago

I tried to run this command : python setup.py build develop but these error raised :


D:/Artificial Intelligence/Object Detection/FreeAnchor-master/FreeAnchor-master/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu(275): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (long long, long)

D:/Artificial Intelligence/Object Detection/FreeAnchor-master/FreeAnchor-master/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu(275): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (<error-type>, long)

D:/Artificial Intelligence/Object Detection/FreeAnchor-master/FreeAnchor-master/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu(320): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (int64_t, long)

D:/Artificial Intelligence/Object Detection/FreeAnchor-master/FreeAnchor-master/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu(320): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (<error-type>, long)

4 errors detected in the compilation of "C:/Users/127051/AppData/Local/Temp/tmpxft_000021a0_00000000-10_ROIAlign_cuda.cpp1.ii".
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\nvcc.exe' failed with exit status 1
zhangxiaosong18 commented 5 years ago

I have not tested compile on Windows, this error may be due to the pytorch or cuda version. Fortunately, since ROIAlign is not required in FreeAnchor, you can try to remove the ROIAlign layer.

aligoglos commented 5 years ago

Successfully compiled with these advices