We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When installing torch from pip, from torch.utils.cpp_extension import CUDA_HOME returns None, nevetheless CUDA works just fine.
torch
from torch.utils.cpp_extension import CUDA_HOME
None
In detectron2, os.path.isdir(CUDA_HOME) in this line expects CUDA_HOME to be not None.
os.path.isdir(CUDA_HOME)
CUDA_HOME
detectron2/detectron2/utils/collect_env.py
Line 136 in f1d0c05
As a temporary workaround, I'm setting CUDA_HOME=/.
CUDA_HOME=/
Environment: As provided script is not working (it uses mentioned code), I'm just listing code to recreate env:
conda create -n detectron2 -y conda activate detectron2 conda install python=3.8 -y pip install \ -f https://download.pytorch.org/whl/torch_stable.html \ torch==1.7.0+cu101 \ torchvision==0.8.1+cu101 \ pycocotools \ -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.7/index.html \ detectron2==0.3
The text was updated successfully, but these errors were encountered:
176a81a
No branches or pull requests
When installing
torch
from pip,from torch.utils.cpp_extension import CUDA_HOME
returnsNone
, nevetheless CUDA works just fine.In detectron2,
os.path.isdir(CUDA_HOME)
in this line expectsCUDA_HOME
to be not None.detectron2/detectron2/utils/collect_env.py
Line 136 in f1d0c05
As a temporary workaround, I'm setting
CUDA_HOME=/
.Environment:
As provided script is not working (it uses mentioned code), I'm just listing code to recreate env:
The text was updated successfully, but these errors were encountered: