Closed tengerye closed 4 years ago
The problem that I can't use your Dockerfile directly is that, I have to use some private Docker image. So I have to install it through docker container and export it as image.
Thanks for clarifying. I thought you were using the dockerfile since you mention docker container.
You need to install pytorch and other dependencies correctly so that torch.cuda.is_available()
returns True. Since this is a pytorch function, it has nothing to do with detectron2.
Fixed internally. Kinda embarrassing...
@byronyi Can you say what you did to fix it, I have the same issue.
I followed the instruction to install from a docker container. The process completes well, but when I run a definitely code, it raises the error
AssertionError: cuda is not available. Please check your installation.
.What command did I run? python tools/train_net.py --config-file configs/FCOS-Detection/Base-FCOS.yaml --num-gpus 2
What I observed? The logs are as follows:
-- Process 1 terminated with the following error: Traceback (most recent call last): File "/opt/tiger/conda/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/opt/tiger/conda/lib/python3.7/site-packages/detectron2/engine/launch.py", line 63, in _distributed_worker assert torch.cuda.is_available(), "cuda is not available. Please check your installation." AssertionError: cuda is not available. Please check your installation.