MIC-DKFZ / RegRCNN

This repository holds the code framework used in the paper Reg R-CNN: Lesion Detection and Grading under Noisy Labels. It is a fork of MIC-DKFZ/medicaldetectiontoolkit with regression capabilites.
Apache License 2.0
51 stars 21 forks source link

Are there any requirements for gcc version? #6

Open GuojingZhao opened 4 years ago

GuojingZhao commented 4 years ago

I complied this project with gcc-4.8. But the errors occurs in nmx-extention==0.0.0.

/media/userdisk3/gjzhao/M20/RegRCNN-master/regrcnn_env/lib/python3.7/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h: In member function ‘Return c10::Dispatcher::doCallUnboxed(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = bool; Args = {}]’: /media/userdisk3/gjzhao/M20/RegRCNN-master/regrcnn_env/lib/python3.7/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:191:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ error: command 'gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: /media/userdisk3/gjzhao/M20/RegRCNN-master/regrcnn_env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-we5qua6l/setup.py'"'"'; file='"'"'/tmp/pip-req-build-we5qua6l/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-bdv9b78x/install-record.txt --single-version-externally-managed --compile --install-headers /media/userdisk3/gjzhao/M20/RegRCNN-master/regrcnn_env/include/site/python3.7/RoIAlign-extension-3D Check the logs for full command output. Could not install custom extension custom_extensions/roi_align/3D from source due to error: Command '['/media/userdisk3/gjzhao/M20/RegRCNN-master/regrcnn_env/bin/python', '-m', 'pip', 'install', 'custom_extensions/roi_align/3D']' returned non-zero exit status 1. Trying to install from pre-compiled wheel. FAILED to install custom extension custom_extensions/roi_align/3D due to Error: [Errno 2] No such file or directory: 'custom_extensions/roi_align/3D/dist' removed directory: ‘./build/bdist.linux-x86_64’ removed directory: ‘./build’ removed ‘./dist/RegRCNN-0.0.2-py3.6.egg’ removed ‘./dist/RegRCNN-0.0.2-py3.7.egg’ removed directory: ‘./dist’ removed ‘./RegRCNN.egg-info/SOURCES.txt’ removed ‘./RegRCNN.egg-info/PKG-INFO’ removed ‘./RegRCNN.egg-info/top_level.txt’ removed ‘./RegRCNN.egg-info/requires.txt’ removed ‘./RegRCNN.egg-info/dependency_links.txt’ removed directory: ‘./RegRCNN.egg-info’

penningavery commented 4 years ago

I also am getting this error (I've tried various gcc versions but am unable to compile custom_extensions). Thanks

GuojingZhao commented 4 years ago

I also am getting this error (I've tried various gcc versions but am unable to compile custom_extensions). Thanks Y solved this problems using gcc 5.4.0 and python 3.7.7.

penningavery commented 4 years ago

Thank you, will try that.