MIC-DKFZ / nnDetection

nnDetection is a self-configuring framework for 3D (volumetric) medical object detection which can be applied to new data sets without manual intervention. It includes guides for 12 data sets that were used to develop and evaluate the performance of the proposed method.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Installation question

rooskraaijveld opened this issue · comments

Hi!

I saw in previous questions/bugs that Pytorch CuDA and NVCC has to be the same, which is the case for me, however, I am still not able to run any step after nndet_example. What am I doing wrong?

This is my nndet_env:

----- PyTorch Information -----
PyTorch Version: 1.8.0+cu111
PyTorch Debug: False
PyTorch CUDA: 11.1
PyTorch Backend cudnn: 8005
PyTorch CUDA Arch List: ['sm_37', 'sm_50', 'sm_60', 'sm_70', 'sm_75', 'sm_80', 'sm_86']
PyTorch Current Device Capability: (7, 5)
PyTorch CUDA available: True

----- System Information -----
System NVCC: nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0

System Arch List: 5.2 6.0 6.1 7.0 7.5 8.0 8.6+PTX
System OMP_NUM_THREADS: 1
System CUDA_HOME is None: True
System CPU Count: 40
Python Version: 3.8.5 (default, Sep 4 2020, 07:30:14)
[GCC 7.3.0]

----- nnDetection Information -----
det_num_threads 6
det_data is set True
det_models is set True

Dear @rooskraaijveld ,

thank you for your Issue, which error message do you receive?

Best,
Michael

I apologize! I completely forgot to send it. Below is my error:

`
Singularity> nndet_prep 000
Traceback (most recent call last):
File "/opt/conda/bin/nndet_prep", line 33, in
sys.exit(load_entry_point('nndet', 'console_scripts', 'nndet_prep')())
File "/opt/conda/bin/nndet_prep", line 25, in importlib_load_entry_point
return next(matches).load()
File "/opt/conda/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/opt/conda/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/opt/nnDetection/scripts/preprocess.py", line 36, in
from nndet.planning import DatasetAnalyzer
File "/opt/nnDetection/nndet/planning/init.py", line 2, in
from nndet.planning.experiment import PLANNER_REGISTRY
File "/opt/nnDetection/nndet/planning/experiment/init.py", line 3, in
from nndet.planning.experiment.base import PlannerType, AbstractPlanner
File "/opt/nnDetection/nndet/planning/experiment/base.py", line 21, in
from nndet.planning.experiment.utils import run_create_label_preprocessed
File "/opt/nnDetection/nndet/planning/experiment/utils.py", line 2, in
from nndet.core.boxes.ops_np import box_size_np
File "/opt/nnDetection/nndet/core/boxes/init.py", line 16, in
from nndet.core.boxes.nms import nms, batched_nms
File "/opt/nnDetection/nndet/core/boxes/nms.py", line 22, in
from nndet._C import nms as nms_gpu
ImportError: /opt/nnDetection/nndet/_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN2at5emptyEN3c108ArrayRefIlEERKNS0_13TensorOptionsENS0_8optionalINS0_12MemoryFormatEEE

`

Hmm, on first sight your env looks correct.

  1. Try deleting the build folder and *.so file and re-install it
  2. Try setting the CUDA HOME path explicitly

PS: always do (1) when running a new install, otherwise it won't recompile

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.