Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lsj1111 opened this issue Jul 1, 2024 · 2 comments
Open

Comments

@lsj1111
Copy link

lsj1111 commented Jul 1, 2024

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
device__Tmaximum(T a,Tb){returnisnan(a)?a:(a>b?a: b);
template
device
-Tminimum(Ta,Tb){return isnan(a)?a:(a<b?a: b);

@FengLi-ust
Copy link
Collaborator

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

@lsj1111
Copy link
Author

lsj1111 commented Jul 2, 2024

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. .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants