Closed nengwp closed 2 years ago
I have to use cuda 11 because I use a 3090 gpu
The problem has been resolved
The problem has been resolved
I met the same problem,can you tell me how to solve it? thanks!
torch 1.4+ not AT_CHECK func , you must used TORCH_CHECK in all file.
eg:
// AT_CHECK(keep_out->is_contiguous(), "argument#1(keep_out) must be contiguous");
// AT_CHECK(order->is_contiguous(), "argument#4(order) must be contiguous");
// AT_CHECK(boxes->is_contiguous(), "argument#3(boxes) must be contiguous");
// AT_CHECK(areas->is_contiguous(), "argument#5(areas) must be contiguous");
TORCH_CHECK(keep_out->is_contiguous(), "argument#1(keep_out) must be contiguous");
TORCH_CHECK(order->is_contiguous(), "argument#4(order) must be contiguous");
TORCH_CHECK(boxes->is_contiguous(), "argument#3(boxes) must be contiguous");
TORCH_CHECK(areas->is_contiguous(), "argument#5(areas) must be contiguous");
if other error, tell me.
thanks a lot!
you maybe has this error:
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
you maybe has this error:
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
you mean in the later steps? it seems no problem when running the setup.py.
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
谢谢大佬
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error 请问你在xml转npy时出现过 IndexError的问题吗?
我并非使用LUNA16数据集,因此未进行描述中的数据预处理。
我并非使用LUNA16数据集,因此未进行描述中的数据预处理。
好的,谢谢,打扰了
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
你好!我出现了这个问题 请问是通过-v改成--version解决的吗 因为我是这样改的 这一处暂时解决了但后续出现了难以纠察的问题(没有在release文件夹中生成box.obj)
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
你好!我出现了这个问题 请问是通过-v改成--version解决的吗 因为我是这样改的 这一处暂时解决了但后续出现了难以纠察的问题(没有在release文件夹中生成box.obj)
Yes, I did. But I didn't notice the problem you mentioned.
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
你好!我出现了这个问题 请问是通过-v改成--version解决的吗 因为我是这样改的 这一处暂时解决了但后续出现了难以纠察的问题(没有在release文件夹中生成box.obj)
Yes, I did. But I didn't notice the problem you mentioned. 非常感谢你的及时回复!请问如果这个包安装不成功会影响后面主段代码的跑通吗。我在想如果这个问题解决不了是否先可以不安装这个box先跑后面的
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
你好!我出现了这个问题 请问是通过-v改成--version解决的吗 因为我是这样改的 这一处暂时解决了但后续出现了难以纠察的问题(没有在release文件夹中生成box.obj)
Yes, I did. But I didn't notice the problem you mentioned. 非常感谢你的及时回复!请问如果这个包安装不成功会影响后面主段代码的跑通吗。我在想如果这个问题解决不了是否先可以不安装这个box先跑后面的
In my incomplete experiment (which did not use the LUNA16 task), there were no other problems. I installed this package, but there is an error message, after modification, the installation is successful. Not installing the package may cause problems. This package is mainly used for the NMS algorithm of the GPU version.
If you do not encounter this problem after modifying the code, and the installation is successful, please ignore this possible error
你好!我出现了这个问题 请问是通过-v改成--version解决的吗 因为我是这样改的 这一处暂时解决了但后续出现了难以纠察的问题(没有在release文件夹中生成box.obj)
Yes, I did. But I didn't notice the problem you mentioned. 非常感谢你的及时回复!请问如果这个包安装不成功会影响后面主段代码的跑通吗。我在想如果这个问题解决不了是否先可以不安装这个box先跑后面的
In my incomplete experiment (which did not use the LUNA16 task), there were no other problems. I installed this package, but there is an error message, after modification, the installation is successful. Not installing the package may cause problems. This package is mainly used for the NMS algorithm of the GPU version.
你好,非常感谢你的答复,对于该代码我仍然有些问题想向您请教,请问我该如何联系您?
This is my email nengwp@qq.com
Error compiling when I use CUDA11 environment cuda11 Pytorch 1.10 log: ` running install running bdist_egg running egg_info writing box.egg-info/PKG-INFO writing dependency_links to box.egg-info/dependency_links.txt writing top-level names to box.egg-info/top_level.txt reading manifest file 'box.egg-info/SOURCES.txt' writing manifest file 'box.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext building 'box' extension Emitting ninja build file /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] c++ -MMD -MF /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/box.o.d -pthread -B /home/nengwp/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/TH -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/THC -I/home/nengwp/miniconda3/include/python3.7m -c -c /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp -o /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/box.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=box -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/box.o c++ -MMD -MF /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/box.o.d -pthread -B /home/nengwp/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/TH -I/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/THC -I/home/nengwp/miniconda3/include/python3.7m -c -c /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp -o /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/build/temp.linux-x86_64-3.7/box.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=box -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4: /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp: In function ‘int cpu_nms(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, float)’: /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:7:5: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’? 7 | AT_CHECK(keep_out->is_contiguous(), "argument#1(keep_out) must be contiguous"); | ^() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
16 | auto keep_out_flat = keep_out->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:17:42: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
17 | auto boxes_flat = boxes->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:18:41: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
18 | auto order_flat = order->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:19:43: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
19 | auto areas_flat = areas->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:22:49: warning: ‘T at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
22 | auto suppressed_flat = suppressed.data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:4:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:96:45: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
96 | auto num_out_flat = num_out->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:5:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp: In function ‘int cpu_overlap(at::Tensor, at::Tensor, at::Tensor)’:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp:8:5: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’?
8 | AT_CHECK(boxes1->is_contiguous(), "argument#1(boxes1) must be contiguous");
| ^() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
23 | auto boxes1_flat = boxes1->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:5:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp:24:44: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
24 | auto boxes2_flat = boxes2->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:5:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp:25:46: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
25 | auto overlap_flat = overlap->data();
| ^
In file included from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:1:
/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:216:7: note: declared here
216 | T data() const {
| ^~~~
In file included from /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/box.cpp:5:
/data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp:20:10: warning: unused variable ‘overlap_num’ [-Wunused-variable]
20 | long overlap_num = overlap->sizes()[0];
| ^
~~~ | DCHECK /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/nms.cpp:16:47: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data~~~ | DCHECK /data/HDD1-2T/nengwp/Code_ESO/nodulenet/NoduleNet/build/box/overlap.cpp:23:44: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data~~ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build env=env) File "/home/nengwp/miniconda3/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "setup.py", line 6, in
cmdclass={'build_ext': BuildExtension})
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/nengwp/miniconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/home/nengwp/miniconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/nengwp/miniconda3/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/nengwp/miniconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
build_ext.build_extensions(self)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/nengwp/miniconda3/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/nengwp/miniconda3/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/nengwp/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
`