MaskDINO icon indicating copy to clipboard operation
MaskDINO copied to clipboard

The environment configuration failed. Is there any way to reproduce it?

Open lsj1111 opened this issue 1 year ago • 2 comments

I configured it according to the author's method:

conda create --name maskdino python=3.8 -y conda activate maskdino conda install pytorch==1.9.0 torchvision==0.10.0 cudatoolkit=11.1 -c pytorch -c nvidia pip install -U opencv-python

under your working directory

git clone [email protected]:facebookresearch/detectron2.git cd detectron2 pip install -e . pip install git+https://github.com/cocodataset/panopticapi.git pip install git+https://github.com/mcordts/cityscapesScripts.git

cd .. git clone [email protected]:facebookresearch/MaskDINO.git cd MaskDINO pip install -r requirements.txt cd maskdino/modeling/pixel_decoder/ops sh make.sh

But I encountered some problems:

RuntimeError:nvrte:error:invalid value for -gpu-architecture (-arch) nvrtc compilation failed: #define NANint as float(0x7fffffff) #define PoS INFINITY_int_as float(0x7f800000) #define NEG INFINITYint as float(0xff800000) template<typename T> device__Tmaximum(T a,Tb){returnisnan(a)?a:(a>b?a: b); template<typename T> device-Tminimum(Ta,Tb){return isnan(a)?a:(a<b?a: b);

lsj1111 avatar Jul 01 '24 11:07 lsj1111

Hi, are you using the correct cuda and Pytorch version that matches your GPU arch?

FengLi-ust avatar Jul 02 '24 05:07 FengLi-ust

Hi, are you using the correct cuda and Pytorch version that matches your GPU arch?

year,I have solved this problem. In the official documentation of detectron2, it seems that only cuda11.3 is supported, so I used cuda11.3 and caused the above problem, but then I found that cuda11.6 can also use detectron2, so the problem was solved. .

lsj1111 avatar Jul 02 '24 05:07 lsj1111