text:
Compilation error

has anyone met the following compilation error?
Compiling mmdet/ops/nms/src/soft_nms_cpu.pyx because it changed.
[1/1] Cythonizing mmdet/ops/nms/src/soft_nms_cpu.pyx
running develop
running egg_info
creating mmdet.egg-info
writing dependency_links to mmdet.egg-info/dependency_links.txt
writing top-level names to mmdet.egg-info/top_level.txt
writing requirements to mmdet.egg-info/requires.txt
writing mmdet.egg-info/PKG-INFO
writing manifest file 'mmdet.egg-info/SOURCES.txt'
reading manifest file 'mmdet.egg-info/SOURCES.txt'
writing manifest file 'mmdet.egg-info/SOURCES.txt'
running build_ext
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/utils/cpp_extension.py:191: UserWarning:

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 4.9 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 4.9 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

  warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
building 'mmdet.ops.nms.soft_nms_cpu' extension
creating build
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/mmdet
creating build/temp.linux-x86_64-3.5/mmdet/ops
creating build/temp.linux-x86_64-3.5/mmdet/ops/nms
creating build/temp.linux-x86_64-3.5/mmdet/ops/nms/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/soft_nms_cpu.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/soft_nms_cpu.o -Wno-unused-function -Wno-write-strings -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=soft_nms_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from mmdet/ops/nms/src/soft_nms_cpu.cpp:638:
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
mmdet/ops/nms/src/soft_nms_cpu.cpp: In function ‘PyObject* __pyx_pf_5mmdet_3ops_3nms_12soft_nms_cpu_soft_nms_cpu(PyObject*, PyArrayObject*, float, unsigned int, float, float)’:
mmdet/ops/nms/src/soft_nms_cpu.cpp:2495:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       __pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
                                    ^
mmdet/ops/nms/src/soft_nms_cpu.cpp:3006:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       __pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
                                    ^
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/mmdet
creating build/lib.linux-x86_64-3.5/mmdet/ops
creating build/lib.linux-x86_64-3.5/mmdet/ops/nms
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/soft_nms_cpu.o -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/soft_nms_cpu.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.roi_align.roi_align_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_align
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_align/src/roi_align_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_align/src/roi_align_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/roi_align
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/roi_align/roi_align_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.roi_pool.roi_pool_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_pool/src/roi_pool_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_pool/src/roi_pool_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool/roi_pool_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.nms.nms_cpu' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_cpu.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cpu.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cpu.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.nms.nms_cuda' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.dcn.deform_conv_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/dcn
creating build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_conv_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/dcn
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_conv_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.dcn.deform_pool_cuda' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_pool_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_pool_cuda_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_pool_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.sigmoid_focal_loss.sigmoid_focal_loss_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss
creating build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sigmoid_focal_loss_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp: In function ‘at::Tensor SigmoidFocalLoss_forward(const at::Tensor&, const at::Tensor&, int, float, float)’:
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp: In function ‘at::Tensor SigmoidFocalLoss_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, float)’:
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sigmoid_focal_loss_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.masked_conv.masked_conv2d_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv
creating build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/masked_conv/src/masked_conv2d_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=masked_conv2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/masked_conv/src/masked_conv2d_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=masked_conv2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv/masked_conv2d_cuda.cpython-35m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/soft_nms_cpu.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/roi_align/roi_align_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/roi_align
copying build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool/roi_pool_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/roi_pool
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cpu.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_conv_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/dcn
copying build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_pool_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/dcn
copying build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/sigmoid_focal_loss
copying build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv/masked_conv2d_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/masked_conv
Creating /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/mmdet.egg-link (link to .)
Adding mmdet 0.6.0+5b9c5dd to easy-install.pth file

Installed /home/wangtao/prj/mmdetection
Processing dependencies for mmdet==0.6.0+5b9c5dd
Searching for torch>=1.1
Reading https://pypi.org/simple/torch/
Downloading https://files.pythonhosted.org/packages/56/9b/a241f6e3d1df013e65e0b03b17e46bd9517036cd9ba9d8cb9384df396e3b/torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl#sha256=d7d48a3472688debf86ba9ba61b570d6ed0529413dacaa8408b84db878079395
Best match: torch 1.1.0
Processing torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Installing torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages
writing requirements to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch-1.1.0-py3.5-linux-x86_64.egg/EGG-INFO/requires.txt
Adding torch 1.1.0 to easy-install.pth file
Installing convert-onnx-to-caffe2 script to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/bin
Installing convert-caffe2-to-onnx script to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/bin

Installed /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch-1.1.0-py3.5-linux-x86_64.egg
Searching for pycocotools
Reading https://pypi.org/simple/pycocotools/
Downloading https://files.pythonhosted.org/packages/96/84/9a07b1095fd8555ba3f3d519517c8743c2554a245f9476e5e39869f948d2/pycocotools-2.0.0.tar.gz#sha256=cbb8c2fbab80450a67ee9879c63b0bc8a69e58dd9a0153d55de404c0d383a94b
Best match: pycocotools 2.0.0
Processing pycocotools-2.0.0.tar.gz
Writing /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.cfg
Running pycocotools-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/egg-dist-tmp-b5d5jkcl
Compiling pycocotools/_mask.pyx because it depends on /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd.
[1/1] Cythonizing pycocotools/_mask.pyx
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/pycocotools/_mask.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
Traceback (most recent call last):
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode
    node.body = node.body.analyse_expressions(node.local_scope)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions
    for stat in self.stats]
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>
    for stat in self.stats]
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions
    self.item = self.item.coerce_to(self.target.type, env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to
    src = PyTypeTestNode(src, dst_type, env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__
    assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"
AssertionError: PyTypeTest on non extension type

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.py", line 29, in <module>
    def _minimal_ext_cmd(cmd):
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1096, in cythonize
    cythonize_one(*args)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1202, in cythonize_one
    result = compile_single(pyx_file, options, full_module_name=full_module_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 727, in compile_single
    return run_pipeline(source, options, full_module_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 515, in run_pipeline
    err, enddata = Pipeline.run_pipeline(pipeline, source)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
    data = run(phase, data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
    return phase(data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1597, in __call__
    return super_class.__call__(root)
  File "Cython/Compiler/Visitor.py", line 355, in Cython.Compiler.Visitor.EnvTransform.__call__
  File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
  File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1607, in visit_ModuleNode
    node.analyse_declarations(self.current_env())
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ModuleNode.py", line 124, in analyse_declarations
    self.body.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
    stat.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
    stat.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 7914, in analyse_declarations
    self.module_name, self.pos, relative_level=0 if self.is_absolute else -1)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Symtab.py", line 1270, in find_module
    module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 232, in find_module
    err, result = self.process_pxd(source_desc, scope, qualified_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 146, in process_pxd
    result = Pipeline.run_pipeline(pipeline, source_desc)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
    data = run(phase, data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
    return phase(data)
  File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
  File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2210, in visit_ModuleNode
    self.visitchildren(node)
  File "Cython/Compiler/Visitor.py", line 247, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
  File "Cython/Compiler/Visitor.py", line 251, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 221, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 188, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 148, in Cython.Compiler.Visitor.TreeVisitor._raise_compiler_error
Cython.Compiler.Errors.CompilerCrash:
Error compiling Cython file:
------------------------------------------------------------
...
    if PyDataType_HASSUBARRAY(d):
        return <tuple>d.subarray.shape
    else:
        return ()

cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
    ^
------------------------------------------------------------

/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd:842:5: Compiler crash in AnalyseExpressionsTransform

ModuleNode.body = StatListNode(__init__.pxd:17:0)
StatListNode.stats[41] = StatListNode(__init__.pxd:842:5)
StatListNode.stats[0] = CFuncDefNode(__init__.pxd:842:5,
    args = [...]/4,
    inline_in_pxd = True,
    modifiers = [...]/1,
    visibility = 'private')

Compiler crash traceback from this point on:
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode
    node.body = node.body.analyse_expressions(node.local_scope)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions
    for stat in self.stats]
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>
    for stat in self.stats]
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions
    self.item = self.item.coerce_to(self.target.type, env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to
    src = PyTypeTestNode(src, dst_type, env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__
    assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"
AssertionError: PyTypeTest on non extension type

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 199, in <module>
    zip_safe=False)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/develop.py", line 38, in run
    self.install_for_development()
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/develop.py", line 154, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 749, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 777, in resolve
    replace_conflicting=replace_conflicting
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1060, in best_match
    return self.obtain(req, installer)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1072, in obtain
    return installer(requirement)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 702, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
    run_setup(setup_script, args)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.py", line 29, in <module>
    def _minimal_ext_cmd(cmd):
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1096, in cythonize
    cythonize_one(*args)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1202, in cythonize_one
    result = compile_single(pyx_file, options, full_module_name=full_module_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 727, in compile_single
    return run_pipeline(source, options, full_module_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 515, in run_pipeline
    err, enddata = Pipeline.run_pipeline(pipeline, source)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
    data = run(phase, data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
    return phase(data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1597, in __call__
    return super_class.__call__(root)
  File "Cython/Compiler/Visitor.py", line 355, in Cython.Compiler.Visitor.EnvTransform.__call__
  File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
  File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1607, in visit_ModuleNode
    node.analyse_declarations(self.current_env())
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ModuleNode.py", line 124, in analyse_declarations
    self.body.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
    stat.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
    stat.analyse_declarations(env)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 7914, in analyse_declarations
    self.module_name, self.pos, relative_level=0 if self.is_absolute else -1)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Symtab.py", line 1270, in find_module
    module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 232, in find_module
    err, result = self.process_pxd(source_desc, scope, qualified_name)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 146, in process_pxd
    result = Pipeline.run_pipeline(pipeline, source_desc)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
    data = run(phase, data)
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
    return phase(data)
  File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
  File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2210, in visit_ModuleNode
    self.visitchildren(node)
  File "Cython/Compiler/Visitor.py", line 247, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
  File "Cython/Compiler/Visitor.py", line 251, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 221, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
  File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
  File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
  File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
  File "Cython/Compiler/Visitor.py", line 188, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "Cython/Compiler/Visitor.py", line 148, in Cython.Compiler.Visitor.TreeVisitor._raise_compiler_error
setuptools.sandbox.UnpickleableException: CompilerCrash((<FileSourceDescriptor:/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd>, 842, 5), 'AnalyseExpressionsTransform', 'Compiler crash in AnalyseExpressionsTransform\n\nModuleNode.body = StatListNode(__init__.pxd:17:0)\nStatListNode.stats[41] = StatListNode(__init__.pxd:842:5)\nStatListNode.stats[0] = CFuncDefNode(__init__.pxd:842:5,\n    args = [...]/4,\n    inline_in_pxd = True,\n    modifiers = [...]/1,\n    visibility = \'private\')\n\nCompiler crash traceback from this point on:\n  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode\n    node.body = node.body.analyse_expressions(node.local_scope)\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions\n    for stat in self.stats]\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>\n    for stat in self.stats]\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions\n    self.item = self.item.coerce_to(self.target.type, env)\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to\n    src = PyTypeTestNode(src, dst_type, env)\n  File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__\n    assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"\nAssertionError: PyTypeTest on non extension type', AssertionError('PyTypeTest on non extension type',), <traceback object at 0x7ffac3d1a5c8>)

turns out it was caused by some missing dependencies.

I've met the same problem...

same problem...
any solutions?

The same problem...

sudo apt install libnccl2=2.4.7-1+cuda10.0 libnccl-dev=2.4.7-1+cuda10.0 if you using cuda 10.0.

Updating NCCL works for me!
Please see https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html#debian for the detailed guide to install NCCL.

@huangbiubiu hi, how do you solve this, my environment is ubuntu 18.04, cuda 9.0 seems no corresponding nccl, what can I do?

@huangbiubiu hi, how do you solve this, my environment is ubuntu 18.04, cuda 9.0 seems no corresponding nccl, what can I do?

I can see the NCCL for CUDA 9.0 at NCCL download page (https://developer.nvidia.com/nccl/nccl-download). You can check it again.

@huangbiubiu hi, how do you solve this, my environment is ubuntu 18.04, cuda 9.0 seems no corresponding nccl, what can I do?

Sorry, I have no experience on Ubuntu 18.04

thanks! that work for me!

met same error, it may cause from the unicode characters in annotations
apt-get install locales
export LANG=C.UTF-8

fix my problem

authors: ArcherFMY Leonardyao PumayHui casablanca9607 fuweifu-vtoo huangbiubiu jeannotes jny2117 twangnh

repo: open-mmlab/mmdetection


text:
Is there any way to add unknown categories besides of fore- and background in RPN?

Thanks !

Could you give a more specific explanation about the case?

source: gharchive/issue

authors: hellock lixingang

license_type: permissive

license_source: github-api


text:
mask_rcnn_hrnetv2p_w48_2x config file is missing. Please add it

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
mask_rcnn_hrnetv2p_w48_2x config file is missing.

Adding all configs files are redundant and inconvenient to maintain, and it is easy to adapt one from another. You may can simply modify from existing configs.

authors: hellock sarimmehdi


text:
Training Process Not Responding

Describe the bug
No logging and progress during training:
After starting the training process, there is no progress or logging after the following step. The training process does not give an error either. Although it has been approximately 1 hour after starting the training, there is no change in the following situation. Meanwhile, the Cursor is constantly flashing. I have to terminate the process with the Ctlr + C keys. However, there is no .pth file in work directory. The training process seems to be in an endless loop.
loading annotations into memory...
Done (t=0.11s)
creating index...
index created!
loading annotations into memory...
Done (t=0.02s)
creating index...
index created!
2020-10-26 21:29:50,713 - mmdet - INFO - Start running, host: atakan@atakan-MS-7A15, work_dir: /home/atakan/mmdetection/work_dirs/htc_without_semantic_r50_fpn_1x_coco'
2020-10-26 21:29:50,713 - mmdet - INFO - workflow: [('train', 1)], max: 12 epochs

Reproduction

What command or script did you run?
python tools/train.py configs/htc/htc_without_semantic_r50_fpn_1x_coco.py

Did you make any modifications on the code or config? Did you understand what you have modified?
I changed the my own data set into COCO data format and than modified my data path(data root) in config file (/config/base/model, /config/base/data) then run the train.py file

What dataset did you use?
my own dataset with labeled

Environment
sys.platform: linux
Python: 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0]
CUDA available: True
GPU 0: GeForce GTX 1080
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 10.1, V10.1.105
GCC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
PyTorch: 1.6.0
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.5.0 (Git Hash e2ac1fac44c5078ca927cb9b90e1b3066a0b2ed0)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: NO AVX
CUDA Runtime 10.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
CuDNN 7.6.3
Magma 2.5.2
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.7.0
OpenCV: 4.4.0
MMCV: 1.1.5
MMCV Compiler: GCC 5.4
MMCV CUDA Compiler: 10.1
MMDetection: 2.5.0+5d07dda
Error traceback
It does not give any error
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

Could you try the default COCO dataset to see if the training process is normal?
If the COCO dataset is normal, then the problem comes from the implementation of your own dataset class.
Otherwise, it may be related to your environment setup.

Have you solved it ?? I met the same problem

I run mmdetection3d, and meet the same problem

Have you solved it ?? I met the same problem

No, but I am not getting this error on AerialDetection(https://github.com/dingjiansw101/AerialDetection) using the lower version of mmdetection. I will format my computer in 1-2 days. After formatting, I will re-install mmdetection and this time I will try it on the COCO dataset. I'll report the result. But I think there's a problem

I formatted my computer. Then I installed mmdetection with a clean install. Problem solved. I think there was a conflict issue with older versions of mmdetection. As a solution, you can try this.


text:
pycharm debug error

How do I use pycharm  to debug when training?
When I debugged, pycharm had no data to display

Hi @Majiawei, I'm sorry I can't give you some useful suggestions, but will you directly print the data information?

authors: Majiawei v-qjqs


text:
use the resume function in training but not save new mAP values

Dear All ,
I try to use the resume function in training mode , as i want to have more epoch than what i had ,
i did the training first using Faster_RCNN with only 60 epoch , then plot the performance and find the mAP values not enough , so i return back to the model and run this function with resume from latest epoch
python tools/train.py configs/human/my_custom_config.py --gpus 1 --work-dir training_data/faster_rcnn_epoch60 --resume-from training_data/faster_rcnn_epoch60/latest.pth
my problem and question is that , when using resume , i got more epoch saved in my machine , but without saving the value of mAP for validation for such epoch , and i need such value to evaluate the training process and choice the higher one to pick its weight for doing the test mode .
when try to plot the performance using this function with new (.json) file
python tools/analysis_tools/analyze_logs.py plot_curve training_data/faster_rcnn_epoch60/20210811_012551.log.json --keys bbox_mAP --legend mAP_bbox
I got this error massage:
KeyError: 'training_data/faster_rcnn_epoch60/20210811_012551.log.json does not contain metric bbox_mAP'
which is strange ,as i can plot the performance when using the json file of training in first time , but after resume i can not ..
although , i did not change any thing in config file except the max_epoch value to be 120 instead of 60
any help please?

In my opinion, if you want to resume the training process, just fix the config file, at line resume_from = None, resume_from = 'path_to_your_work_dirs/configs/last_epoch.pth'. I used to resume by this way and It was successful.

In my opinion, if you want to resume the training process, just fix the config file, at line resume_from = None, resume_from = 'path_to_your_work_dirs/configs/last_epoch.pth'. I used to resume by this way and It was successful.
okay , but i have one question,
if not change any thing in config file ,  how you can tell the system at which epoch the training will stop ?

@bommap2810
could you please write on the whole instruction you run for that in the linux system  ?
such as the instruction of
python tools/analysis_tools/analyze_logs.py plot_curve training_data/faster_rcnn_epoch60/20210811_012551.log.json --keys bbox_mAP --legend mAP_bbox
or shall you write this resume_from in the config file ?

@bommap2810
could you please write on the whole instruction you run for that in the linux system ?
such as the instruction of
python tools/analysis_tools/analyze_logs.py plot_curve training_data/faster_rcnn_epoch60/20210811_012551.log.json --keys bbox_mAP --legend mAP_bbox
or shall you write this resume_from in the config file ?

I write this resume_from in the config file and run training syntax again:
python tools/train.py path_to_your_config/config.py

Many thanks,  i will try it .
did you change the number of epoch or not ?

great , now i got it .. many thanks .. i will try it and see.
thank you so much for replay and help

@bommap2810
hello sir ,
unfortunately , I still have the same problem.
the training continue from the latest epoch , and it saved the values of bbox_mAP (evaluation matrix) in a new log.json file ,
but when i try to plot the curve of such values of mAP versus epoch , it gives me the following error

this is also the new log.json file , it starts from epoch 61 as i resumed the training from there till epoch 100

you may notice that there is a values of mAP from validation dataset present in the black screen and in json file , but it can not be plotted out .. which strange for me, what do you think? do you have any idea ?
have a look also in testing results on one epoch.pth value (which is epoch 90) , it gives me zeros for all mAP values which is not sense.

i am totally confused , any help please ?

I got the same issue with ‘KeyError: 'work_dirs/yolox_tiny_8x8_300e_elevator/20210812_134209.log.json does not contain metric bbox_mAP'’.  However, I'm pretty sure the mAP values are included in the json file.  Does anyone solve this?😂

@Akazfu
what i noticed by doing such training , is that ,when you resume the training from last epoch or old one , it gives you the new mAP in a new json file but starting from the last epoch , not from the 1st epoch , which means you need to merge tow json files together in order to plot the whole mAP values in same built. I did not do yet such merged ,and i don't know if it is really possible.
if any one have an idea/ideas , please share it with us.

I have read the analyze_logs.py and noticed a metric check at line 53: if metric not in log_dict[epochs[0]]:.
In this case, if you have set up an evaluation interval i, that for every i epoch do the validation, or your log file is discontinued(resuming) as @alaa-shubbak mentioned;  You might encounter the KeyError: 'log.json does not contain metric bbox_mAP'
To fix this issue, what I did is to add an arguments parser_plt.add_argument('--interval', type=str, default='1') to the parser, and make sure the x and y for plotting must have the same first dimension;

I will try to check this bug and fix it.

authors: Akazfu AronLin alaa-shubbak bommap2810


text:
AssertionError

I need you guys' help!!!!!
command
python  tools/train.py /data/siwon/mmdetection/configs/base/resvggnew /mask_1x_r50.py
error
Traceback (most recent call last):
File "/data/siwon/mmdetection/tools/train.py", line 189, in
main()
File "/data/siwon/mmdetection/tools/train.py", line 185, in main
meta=meta)
File "/home/siwon/.conda/envs/mm/lib/python3.7/site-packages/mmdet/apis/train.py", line 100, in train_detector
assert cfg.total_epochs == cfg.runner.max_epochs
AssertionError
Environment
python = 3.7 pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.2 mmcv-full==1.3.5
in centos 8

@Si-VVON This shows that there is an error in the config, please check the configuration.

authors: Si-VVON hhaAndroid


text:
Problems with custom dataset

Hello,
Thanks a lot for such an amazing source code.
I am trying to use this on my custom dataset.
train=dict(
type=dataset_type,
ann_file=data_root + '/mydata_train.pickle',
...
proposal_file=None,
),
I'm ok with generating pickle file for mydata_train.pickle.
However I don't know how to generate proposal_file.
May I know what proposal_file is? And how can I generate from my own data?

Proposal_file is output of a region proposal method, and it is supposed to be the output of RPN (or GARPN) here. You can get the proposal_file.pkl by testing a pretrained RPN, then see Fast RCNN configs for how to use the proposal.

Thank you.
"You can get the proposal_file.pkl by testing a pretrained RPN"
Can you tell me what pretrained RPN I can use as an example?


text:
AssertionError: The length of palette should not be less than num_classes.

Describe the bug
I trained my RetinaNet successful.
Now I tried to visualize the resulted bbox in the validation image.
My dataset is COCO, I know that it is pretrained with 80 classes, so the I changed to my 314 Classes instead in my config.
Reproduction
I run the follwoing script:
python tools/test.py configs/retinanet/retinanet_r50_fpn_1x_BrickTest.py work_dirs/retinanet_r50_fpn_1x_BrickTest/latest.pth --out work_dirs/retinanet_r50_fpn_1x_BrickTest/result/result.pkl --eval bbox --show-dir work_dirs/retinanet_r50_fpn_1x_BrickTest/result/img

This results in the Error seen in the Screenshot below.

As I understand there are not enough colors to show the bbox for the number of classes I have. Is this right?
If I am right: Is their a possibility to change this?
If I am not:  what ist the problem?
Would be thankful for hints or solutions.
Kind regards,
Jean

@JeanD1983 This is because you didn't modify PALETTE in dataset at the same time
PALETTE = getattr(dataset, 'PALETTE', None)

The PALETTE length is 80.  Considering how hard it is to build a 314 class PALETTE, you can force the setting to None.
def single_gpu_test(model,
                    data_loader,
                    show=False,
                    out_dir=None,
                    show_score_thr=0.3):
    model.eval()
    results = []
    dataset = data_loader.dataset
    # PALETTE = getattr(dataset, 'PALETTE', None)
    PALETTE = None
    prog_bar = mmcv.ProgressBar(len(dataset))

There is indeed a problem with the design here, we need to improve the logic.

Thank you very much for your quick response.
I changed this and know it works fine.

@JeanD1983这是因为你没有同时修改数据集中的PALETTE
PALETTE = getattr(dataset, 'PALETTE', None)

PALETTE 长度为 80。考虑到构建 314 类 PALETTE 的难度，可以强制设置为 None。
def single_gpu_test(model,
                    data_loader,
                    show=False,
                    out_dir=None,
                    show_score_thr=0.3):
    model.eval()
    results = []
    dataset = data_loader.dataset
    # PALETTE = getattr(dataset, 'PALETTE', None)
    PALETTE = None
    prog_bar = mmcv.ProgressBar(len(dataset))

这里设计确实有问题，需要改进逻辑。

我也遇到同样问题，在代码哪个位置设置none,我运行的代码是inferencer = DetInferencer(model=config_file,weights=checkpoint_file,device='cuda:0')
result = inferencer(imgpath,out_dir=out_dir,show=False)


text:
Clip proposal boxes to valid range in single_mask_target

This addresses issue #1687

Thanks for the fixing.
Max clip value should be max_h - 1 or max_w - 1, you may refer to here.

Right! It doesn't really matter because the image-slicing below takes that into account, but it's better to be consistent.

source: gharchive/pull-request


text:
update docs_zh-CN/changelog.md

Add Chinese translation of docs/changelog.md

Thanks for the contribution!

Hi @kai422 The linting fails. Please run pre-commit install and pre-commit run --all-files. Details see the contribution guide https://github.com/open-mmlab/mmcv/blob/master/CONTRIBUTING.md

Hi @kai422 ！First of all, we want to express our gratitude for your significant PR in the MMEditing project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR.
We would also like to invite you to join our Special Interest Group (SIG) private channel on Discord, where you can share your experiences, ideas, and build connections with like-minded peers. To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us ：https://discord.gg/raweFPmdzG
If you are Chinese or have WeChat，welcome to join our community on WeChat. You can add our assistant ：openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends：）
Thank you again for your contribution❤

authors: OpenMMLab-Coodinator innerlee kai422

repo: open-mmlab/mmediting


text:
oqs_tlssig fails against OpenSSL 3.2.1

Describe the bug
oqs_tlssig fails being built against OpenSSL 3.2.1
To Reproduce
Build liboqs and OQS provider against OpenSSL 3.2
make test
Expected behavior
Test passes
Environment (please complete the following information):

OS: CentOS 10
OpenSSL version 3.2.1
oqsprovider version 0.5.3

Additional context
Diagnostics (see also https://github.com/open-quantum-safe/oqs-provider/pull/357) is
4: SSL_accept() failed returning -1, SSL error 1. 000003FF947FADE0:error:0A000076:SSL routines:tls_choose_sigalg:no suitable signature algorithm:ssl/t1_lib.c:3774:
4: SSL_connect() failed returning -1, SSL error 1. 000003FF947FADE0:error:0A000410:SSL routines:ssl3_read_bytes:ssl/tls alert handshake failure:ssl/record/rec_layer_s3.c:865:SSL alert number 40
4:   TLS-SIG handshake test failed: dilithium2, return code: -5

Can it be related to https://github.com/openssl/openssl/pull/22779?

Can it be related to https://github.com/openssl/openssl/pull/22779?

Unlikely as the error cannot be reproduced using oqsprovider "main" branch (Ubuntu, though -- but @openssl-3.2.1 tag).
Also, error cannot be reproduced using oqsprovider 0.5.3. Please double check for correctness of setup:
$ ./scripts/runtests.sh  -V
Test setup:
LD_LIBRARY_PATH=/home/mib/git/oqs/oqs-provider/.local/lib64
OPENSSL_APP=/home/mib/git/oqs/oqs-provider/openssl/apps/openssl
OPENSSL_CONF=/home/mib/git/oqs/oqs-provider/scripts/openssl-ca.cnf
OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
Version information:
OpenSSL 3.2.1 30 Jan 2024 (Library: OpenSSL 3.2.1 30 Jan 2024)
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.2.1
    status: active
    build info: 3.2.1
    gettable provider parameters:
      name: pointer to a UTF8 encoded string (arbitrary size)
      version: pointer to a UTF8 encoded string (arbitrary size)
      buildinfo: pointer to a UTF8 encoded string (arbitrary size)
      status: integer (arbitrary size)
  oqsprovider
    name: OpenSSL OQS Provider
    version: 0.5.3
    status: active
    build info: OQS Provider v.0.5.3 (42ff366) based on liboqs v.0.9.2
    gettable provider parameters:
      name: pointer to a UTF8 encoded string (arbitrary size)
      version: pointer to a UTF8 encoded string (arbitrary size)
      buildinfo: pointer to a UTF8 encoded string (arbitrary size)
      status: integer (arbitrary size)
Cert gen/verify, CMS sign/verify, CA tests for all enabled OQS signature algorithms commencing:
Testing dilithium2
.Testing p256_dilithium2
.Testing rsa3072_dilithium2
.Testing dilithium3
.Testing p384_dilithium3
.Testing dilithium5
.Testing p521_dilithium5
.Testing falcon512
.Testing p256_falcon512
.Testing rsa3072_falcon512
.Testing falcon1024
.Testing p521_falcon1024
.Testing sphincssha2128fsimple
.Testing p256_sphincssha2128fsimple
.Testing rsa3072_sphincssha2128fsimple
.Testing sphincssha2128ssimple
.Testing p256_sphincssha2128ssimple
.Testing rsa3072_sphincssha2128ssimple
.Testing sphincssha2192fsimple
.Testing p384_sphincssha2192fsimple
.Testing sphincsshake128fsimple
.Testing p256_sphincsshake128fsimple
.Testing rsa3072_sphincsshake128fsimple
.Certificates successfully generated in /home/mib/git/oqs/oqs-provider/tmp

External interop tests commencing
 Cloudflare:
kex=X25519Kyber768Draft00
kex=X25519Kyber512Draft00
UpdateCTestConfiguration  from :/home/mib/git/oqs/oqs-provider/_build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/mib/git/oqs/oqs-provider/_build/DartConfiguration.tcl
Test project /home/mib/git/oqs/oqs-provider/_build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: oqs_signatures

1: Test command: /home/mib/git/oqs/oqs-provider/_build/test/oqs_test_signatures "oqsprovider" "/home/mib/git/oqs/oqs-provider/test/oqs.cnf"
1: Environment variables:
1:  OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
1: Test timeout computed to be: 10000000
1:   Signature test succeeded: dilithium2
1:   Signature test succeeded: p256_dilithium2
1:   Signature test succeeded: rsa3072_dilithium2
1:   Signature test succeeded: dilithium3
1:   Signature test succeeded: p384_dilithium3
1:   Signature test succeeded: dilithium5
1:   Signature test succeeded: p521_dilithium5
1:   Signature test succeeded: falcon512
1:   Signature test succeeded: p256_falcon512
1:   Signature test succeeded: rsa3072_falcon512
1:   Signature test succeeded: falcon1024
1:   Signature test succeeded: p521_falcon1024
1:   Signature test succeeded: sphincssha2128fsimple
1:   Signature test succeeded: p256_sphincssha2128fsimple
1:   Signature test succeeded: rsa3072_sphincssha2128fsimple
1:   Signature test succeeded: sphincssha2128ssimple
1:   Signature test succeeded: p256_sphincssha2128ssimple
1:   Signature test succeeded: rsa3072_sphincssha2128ssimple
1:   Signature test succeeded: sphincssha2192fsimple
1:   Signature test succeeded: p384_sphincssha2192fsimple
1:   Signature test succeeded: sphincsshake128fsimple
1:   Signature test succeeded: p256_sphincsshake128fsimple
1:   Signature test succeeded: rsa3072_sphincsshake128fsimple
1:   Test passed
1/5 Test #1: oqs_signatures ...................   Passed    2.17 sec
test 2
    Start 2: oqs_kems

2: Test command: /home/mib/git/oqs/oqs-provider/_build/test/oqs_test_kems "oqsprovider" "/home/mib/git/oqs/oqs-provider/test/oqs.cnf"
2: Environment variables:
2:  OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
2: Test timeout computed to be: 10000000
2:   KEM test succeeded: frodo640aes
2:   KEM test succeeded: p256_frodo640aes
2:   KEM test succeeded: x25519_frodo640aes
2:   KEM test succeeded: frodo640shake
2:   KEM test succeeded: p256_frodo640shake
2:   KEM test succeeded: x25519_frodo640shake
2:   KEM test succeeded: frodo976aes
2:   KEM test succeeded: p384_frodo976aes
2:   KEM test succeeded: x448_frodo976aes
2:   KEM test succeeded: frodo976shake
2:   KEM test succeeded: p384_frodo976shake
2:   KEM test succeeded: x448_frodo976shake
2:   KEM test succeeded: frodo1344aes
2:   KEM test succeeded: p521_frodo1344aes
2:   KEM test succeeded: frodo1344shake
2:   KEM test succeeded: p521_frodo1344shake
2:   KEM test succeeded: kyber512
2:   KEM test succeeded: p256_kyber512
2:   KEM test succeeded: x25519_kyber512
2:   KEM test succeeded: kyber768
2:   KEM test succeeded: p384_kyber768
2:   KEM test succeeded: x448_kyber768
2:   KEM test succeeded: x25519_kyber768
2:   KEM test succeeded: p256_kyber768
2:   KEM test succeeded: kyber1024
2:   KEM test succeeded: p521_kyber1024
2:   KEM test succeeded: bikel1
2:   KEM test succeeded: p256_bikel1
2:   KEM test succeeded: x25519_bikel1
2:   KEM test succeeded: bikel3
2:   KEM test succeeded: p384_bikel3
2:   KEM test succeeded: x448_bikel3
2:   KEM test succeeded: bikel5
2:   KEM test succeeded: p521_bikel5
2:   KEM test succeeded: hqc128
2:   KEM test succeeded: p256_hqc128
2:   KEM test succeeded: x25519_hqc128
2:   KEM test succeeded: hqc192
2:   KEM test succeeded: p384_hqc192
2:   KEM test succeeded: x448_hqc192
2:   KEM test succeeded: hqc256
2:   KEM test succeeded: p521_hqc256
2:   Test passed
2/5 Test #2: oqs_kems .........................   Passed    0.17 sec
test 3
    Start 3: oqs_groups

3: Test command: /home/mib/git/oqs/oqs-provider/_build/test/oqs_test_groups "oqsprovider" "/home/mib/git/oqs/oqs-provider/test/oqs.cnf" "/home/mib/git/oqs/oqs-provider/test"
3: Environment variables:
3:  OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
3: Test timeout computed to be: 10000000
3:   TLS-KEM handshake test succeeded: frodo640aes
3:   TLS-KEM handshake test succeeded: p256_frodo640aes
3:   TLS-KEM handshake test succeeded: x25519_frodo640aes
3:   TLS-KEM handshake test succeeded: frodo640shake
3:   TLS-KEM handshake test succeeded: p256_frodo640shake
3:   TLS-KEM handshake test succeeded: x25519_frodo640shake
3:   TLS-KEM handshake test succeeded: frodo976aes
3:   TLS-KEM handshake test succeeded: p384_frodo976aes
3:   TLS-KEM handshake test succeeded: x448_frodo976aes
3:   TLS-KEM handshake test succeeded: frodo976shake
3:   TLS-KEM handshake test succeeded: p384_frodo976shake
3:   TLS-KEM handshake test succeeded: x448_frodo976shake
3:   TLS-KEM handshake test succeeded: frodo1344aes
3:   TLS-KEM handshake test succeeded: p521_frodo1344aes
3:   TLS-KEM handshake test succeeded: frodo1344shake
3:   TLS-KEM handshake test succeeded: p521_frodo1344shake
3:   TLS-KEM handshake test succeeded: kyber512
3:   TLS-KEM handshake test succeeded: p256_kyber512
3:   TLS-KEM handshake test succeeded: x25519_kyber512
3:   TLS-KEM handshake test succeeded: kyber768
3:   TLS-KEM handshake test succeeded: p384_kyber768
3:   TLS-KEM handshake test succeeded: x448_kyber768
3:   TLS-KEM handshake test succeeded: x25519_kyber768
3:   TLS-KEM handshake test succeeded: p256_kyber768
3:   TLS-KEM handshake test succeeded: kyber1024
3:   TLS-KEM handshake test succeeded: p521_kyber1024
3:   TLS-KEM handshake test succeeded: bikel1
3:   TLS-KEM handshake test succeeded: p256_bikel1
3:   TLS-KEM handshake test succeeded: x25519_bikel1
3:   TLS-KEM handshake test succeeded: bikel3
3:   TLS-KEM handshake test succeeded: p384_bikel3
3:   TLS-KEM handshake test succeeded: x448_bikel3
3:   TLS-KEM handshake test succeeded: bikel5
3:   TLS-KEM handshake test succeeded: p521_bikel5
3:   TLS-KEM handshake test succeeded: hqc128
3:   TLS-KEM handshake test succeeded: p256_hqc128
3:   TLS-KEM handshake test succeeded: x25519_hqc128
3:   TLS-KEM handshake test succeeded: hqc192
3:   TLS-KEM handshake test succeeded: p384_hqc192
3:   TLS-KEM handshake test succeeded: x448_hqc192
3:   TLS-KEM handshake test succeeded: hqc256
3:   TLS-KEM handshake test succeeded: p521_hqc256
3:   Test passed
3/5 Test #3: oqs_groups .......................   Passed    0.25 sec
test 4
    Start 4: oqs_tlssig

4: Test command: /home/mib/git/oqs/oqs-provider/_build/test/oqs_test_tlssig "oqsprovider" "/home/mib/git/oqs/oqs-provider/test/openssl-ca.cnf" "/home/mib/git/oqs/oqs-provider/_build/test/tmp"
4: Environment variables:
4:  OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
4: Test timeout computed to be: 10000000
4:   TLS-SIG handshake test succeeded: dilithium2
4:   TLS-SIG handshake test succeeded: p256_dilithium2
4:   TLS-SIG handshake test succeeded: rsa3072_dilithium2
4:   TLS-SIG handshake test succeeded: dilithium3
4:   TLS-SIG handshake test succeeded: p384_dilithium3
4:   TLS-SIG handshake test succeeded: dilithium5
4:   TLS-SIG handshake test succeeded: p521_dilithium5
4:   TLS-SIG handshake test succeeded: falcon512
4:   TLS-SIG handshake test succeeded: p256_falcon512
4:   TLS-SIG handshake test succeeded: rsa3072_falcon512
4:   TLS-SIG handshake test succeeded: falcon1024
4:   TLS-SIG handshake test succeeded: p521_falcon1024
4:   TLS-SIG handshake test succeeded: sphincssha2128fsimple
4:   TLS-SIG handshake test succeeded: p256_sphincssha2128fsimple
4:   TLS-SIG handshake test succeeded: rsa3072_sphincssha2128fsimple
4:   TLS-SIG handshake test succeeded: sphincssha2128ssimple
4:   TLS-SIG handshake test succeeded: p256_sphincssha2128ssimple
4:   TLS-SIG handshake test succeeded: rsa3072_sphincssha2128ssimple
4:   TLS-SIG handshake test succeeded: sphincssha2192fsimple
4:   TLS-SIG handshake test succeeded: p384_sphincssha2192fsimple
4:   TLS-SIG handshake test succeeded: sphincsshake128fsimple
4:   TLS-SIG handshake test succeeded: p256_sphincsshake128fsimple
4:   TLS-SIG handshake test succeeded: rsa3072_sphincsshake128fsimple
4:   Test passed
4/5 Test #4: oqs_tlssig .......................   Passed    1.86 sec
test 5
    Start 5: oqs_endecode

5: Test command: /home/mib/git/oqs/oqs-provider/_build/test/oqs_test_endecode "oqsprovider" "/home/mib/git/oqs/oqs-provider/test/openssl-ca.cnf"
5: Environment variables:
5:  OPENSSL_MODULES=/home/mib/git/oqs/oqs-provider/_build/lib
5: Test timeout computed to be: 10000000
5:   Encoding/Decoding test succeeded: dilithium2
5:   Encoding/Decoding test succeeded: p256_dilithium2
5:   Encoding/Decoding test succeeded: rsa3072_dilithium2
5:   Encoding/Decoding test succeeded: dilithium3
5:   Encoding/Decoding test succeeded: p384_dilithium3
5:   Encoding/Decoding test succeeded: dilithium5
5:   Encoding/Decoding test succeeded: p521_dilithium5
5:   Encoding/Decoding test succeeded: falcon512
5:   Encoding/Decoding test succeeded: p256_falcon512
5:   Encoding/Decoding test succeeded: rsa3072_falcon512
5:   Encoding/Decoding test succeeded: falcon1024
5:   Encoding/Decoding test succeeded: p521_falcon1024
5:   Encoding/Decoding test succeeded: sphincssha2128fsimple
5:   Encoding/Decoding test succeeded: p256_sphincssha2128fsimple
5:   Encoding/Decoding test succeeded: rsa3072_sphincssha2128fsimple
5:   Encoding/Decoding test succeeded: sphincssha2128ssimple
5:   Encoding/Decoding test succeeded: p256_sphincssha2128ssimple
5:   Encoding/Decoding test succeeded: rsa3072_sphincssha2128ssimple
5:   Encoding/Decoding test succeeded: sphincssha2192fsimple
5:   Encoding/Decoding test succeeded: p384_sphincssha2192fsimple
5:   Encoding/Decoding test succeeded: sphincsshake128fsimple
5:   Encoding/Decoding test succeeded: p256_sphincsshake128fsimple
5:   Encoding/Decoding test succeeded: rsa3072_sphincsshake128fsimple
5:   Test passed
5/5 Test #5: oqs_endecode .....................   Passed    4.53 sec

100% tests passed, 0 tests failed out of 5

Total Test time (real) =   8.98 sec

All oqsprovider tests passed.

Thanks, I will continue my investigations

The problem is caused by interfering with RHEL/Fedora system-wide configuration. Thanks for your assistance!

Thanks for the information. So who interferes with whom? Anything we ought to improve here? Otherwise OK to close?

The command
OPENSSL_MODULES=`pwd`/lib/ `pwd`/test/oqs_test_tlssig "oqsprovider" `pwd`/../test/openssl-ca.cnf `pwd`/test/tmp

fails because system openssl configuration file is read and it includes crypto-policies implying strict limits of the signature algorithms.
The command
OPENSSL_CONF= OPENSSL_MODULES=`pwd`/lib/ `pwd`/test/oqs_test_tlssig "oqsprovider" `pwd`/../test/openssl-ca.cnf `pwd`/test/tmp

passes

My current workaround is local to my .spec file.
I think it's worth setting the OPENSSL_CONF value either to empty line or to  the path to the test/openssl-ca.cnf configuration file which is passed as an argument in your test suite.

I think it's worth setting the OPENSSL_CONF value either to empty line or to the path to the test/openssl-ca.cnf configuration file which is passed as an argument in your test suite.

This is somewhat surprising (or outright confusing): This means that a call to OSSL_LIB_CTX_load_config is at least influenced (not to say overruled) by setting of "OPENSSL_CONF". Is this documented somewhere? I didn't find anything in https://www.openssl.org/docs/man3.0/man3/OSSL_LIB_CTX_load_config.html...

OpenSSL explicitly establishes variables in its test scripts:
https://github.com/openssl/openssl/blob/fbce6ebf706cdd273f2569edfea7ade106426e0b/util/wrap.pl.in#L47-L48

The stack trace leading to loading system config is
bt
#0  _IO_new_fopen (filename=filename@entry=0x419170 "/etc/pki/tls/openssl.cnf", mode=mode@entry=0x7ffff7d8c1c9 "rb") at iofopen.c:85
#1  0x00007ffff7a7e470 in openssl_fopen (mode=0x7ffff7d8c1c9 "rb", filename=0x419170 "/etc/pki/tls/openssl.cnf") at crypto/o_fopen.c:112
#2  BIO_new_file (filename=0x419170 "/etc/pki/tls/openssl.cnf", mode=0x7ffff7d8c1c9 "rb") at crypto/bio/bss_file.c:60
#3  0x00007ffff7abb3f6 in def_load (conf=0x418dc0, name=<optimized out>, line=0x0) at crypto/conf/conf_def.c:175
#4  0x00007ffff7abc3a2 in CONF_modules_load_file_ex (libctx=<optimized out>, filename=0x0, appname=0x0, flags=50) at crypto/conf/conf_mod.c:206
#5  0x00007ffff7b71fc8 in ossl_config_int (settings=0x0) at crypto/conf/conf_sap.c:68
#6  ossl_config_int (settings=0x0) at crypto/conf/conf_sap.c:44
#7  ossl_init_config () at crypto/init.c:256
#8  ossl_init_config_ossl_ () at crypto/init.c:254
#9  0x00007ffff78ae50b in __pthread_once_slow (once_control=0x7ffff7ea950c <config>, init_routine=0x7ffff7b71fa0 <ossl_init_config_ossl_>) at pthread_once.c:116
#10 0x00007ffff78ae579 in ___pthread_once (once_control=<optimized out>, init_routine=<optimized out>) at pthread_once.c:143
#11 0x00007ffff7b7e9dd in CRYPTO_THREAD_run_once (once=<optimized out>, init=<optimized out>) at crypto/threads_pthread.c:152
#12 0x00007ffff7b72a9b in OPENSSL_init_crypto (opts=64, settings=0x0) at crypto/init.c:599
#13 0x00007ffff7b8ba4c in ossl_init_added_lock () at crypto/objects/obj_dat.c:78
#14 ossl_obj_read_lock (lock=1) at crypto/objects/obj_dat.c:96
#15 OBJ_sn2nid (s=s@entry=0x7ffff77c9000 "1.3.9999.99.13") at crypto/objects/obj_dat.c:663
#16 0x00007ffff7b8bb41 in OBJ_txt2obj (s=0x7ffff77c9000 "1.3.9999.99.13", no_name=no_name@entry=0) at crypto/objects/obj_dat.c:421
#17 0x00007ffff7b8bcb5 in OBJ_txt2nid (s=<optimized out>) at crypto/objects/obj_dat.c:614
#18 0x00007ffff7b82132 in core_obj_create (prov=<optimized out>, oid=0x7ffff77c9000 "1.3.9999.99.13", sn=0x7ffff77c900f "frodo640aes", ln=0x7ffff77c900f "frodo640aes") at crypto/provider_core.c:2225
#19 0x00007ffff777fed0 in OSSL_provider_init (handle=0x418af0, in=0x7ffff7e9f630 <core_dispatch_+816>, out=0x7fffffffd988, provctx=0x7fffffffd990) at /root/oqs-provider/oqsprov/oqsprov.c:968
#20 0x00007ffff7b81692 in provider_init (prov=0x418af0) at crypto/provider_core.c:964
#21 provider_activate (prov=prov@entry=0x418af0, lock=0, lock@entry=1, upcalls=upcalls@entry=1) at crypto/provider_core.c:1173
#22 0x00007ffff7b81bbf in ossl_provider_activate (prov=prov@entry=0x418af0, upcalls=upcalls@entry=1, aschild=aschild@entry=0) at crypto/provider_core.c:1310
#23 0x00007ffff7b82eff in provider_conf_activate (libctx=libctx@entry=0x4072a0, name=name@entry=0x419910 "oqsprovider", value=value@entry=0x419960 "oqsprovider_sect", path=path@entry=0x0, soft=soft@entry=0, cnf=cnf@entry=0x416a00)
    at crypto/provider_conf.c:245
#24 0x00007ffff7b83281 in provider_conf_load (libctx=0x4072a0, name=<optimized out>, name@entry=0x419910 "oqsprovider", value=value@entry=0x419960 "oqsprovider_sect", cnf=cnf@entry=0x416a00) at crypto/provider_conf.c:323
#25 0x00007ffff7b8349b in provider_conf_init (md=<optimized out>, cnf=0x416a00) at crypto/provider_conf.c:379
#26 0x00007ffff7abbe15 in module_init (cnf=<optimized out>, value=0x419770 "provider_sect", name=0x419720 "providers", pmod=0x418420) at crypto/conf/conf_mod.c:425
#27 module_run (flags=<optimized out>, value=<optimized out>, name=0x419720 "providers", cnf=<optimized out>) at crypto/conf/conf_mod.c:272
#28 CONF_modules_load (cnf=cnf@entry=0x416a00, appname=appname@entry=0x0, flags=flags@entry=0) at crypto/conf/conf_mod.c:165
#29 0x00007ffff7abc3b8 in CONF_modules_load_file_ex (libctx=<optimized out>, filename=0x7fffffffe12b "/root/oqs-provider/build/../test/openssl-ca.cnf", appname=0x0, flags=0) at crypto/conf/conf_mod.c:214
#30 0x00007ffff7b6e531 in OSSL_LIB_CTX_load_config (ctx=<optimized out>, config_file=<optimized out>) at crypto/context.c:515
#31 0x0000000000402c42 in load_oqs_provider (libctx=0x4072a0, modulename=0x7fffffffe11f "oqsprovider", configfile=0x7fffffffe12b "/root/oqs-provider/build/../test/openssl-ca.cnf") at /root/oqs-provider/test/test_common.c:50
#32 0x00000000004029f4 in main (argc=4, argv=0x7fffffffdda8) at /root/oqs-provider/test/oqs_test_tlssig.c:166

I raised a discussion https://github.com/openssl/openssl/discussions/23720

OpenSSL explicitly establishes variables in its test scripts: https://github.com/openssl/openssl/blob/fbce6ebf706cdd273f2569edfea7ade106426e0b/util/wrap.pl.in#L47-L48

OK.... that may explain why the behaviour is as it is. But it should be documented that an API call which (is supposed to) set a config can be influenced (may one even say "crippled"?) by a global config variable. IMO the behaviour should be fixed to not allow this: An explicit API call should always overrule a global "default setting" variable. Thanks for raising the discussion.

I would be concerned if OPENSSL_CONF had this impact too -why else explicitly load the config?
I'm not very familiar with liboqs, but wanted to understand this, so I may have made a mistake in the build process, but this is what I got in a clean vm (ubuntu 22.04 x86_64) [ ** please check my build invocations ** ]
First I built from a clean copy of  https://www.openssl.org/source/openssl-3.2.1.tar.gz (in ~/src/openssl-3.2.1)
LIBRPATH=`pwd`/deploy/lib ./Configure --prefix=`pwd`/deploy --openssldir=`pwd`/deploy '-Wl,-rpath,$(LIBRPATH)'
make
make test

Then for liboqs (up to date with main)
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/jonesn/src/openssl-3.2.1/deploy -DBUILD_SHARED_LIBS=ON -DOQS_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/home/jonesn/src/openssl-3.2.1/deploy/lib64  -GNinja ..
ninja run_tests
ninja install

Then finally the oqsprovider (up to date with main)
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/jonesn/src/openssl-3.2.1/deploy -Dliboqs_DIR=/home/jonesn/src/liboqs/build/src/cmake  -DOPENSSL_ROOT_DIR=/home/jonesn/src/openssl-3.2.1/deploy/lib64  -GNinja ..
ninja
ninja test

With this done, oqs_tlssig seemed ok:
➜  build git:(main) ✗ ninja test                                                                                git:(main↑78|…1
[0/1] Running tests...
Test project /home/jonesn/src/oqs-provider/build
    Start 1: oqs_signatures
1/5 Test #1: oqs_signatures ...................   Passed    5.56 sec
    Start 2: oqs_kems
2/5 Test #2: oqs_kems .........................   Passed    0.88 sec
    Start 3: oqs_groups
3/5 Test #3: oqs_groups .......................   Passed    1.07 sec
    Start 4: oqs_tlssig
4/5 Test #4: oqs_tlssig .......................   Passed    4.06 sec
    Start 5: oqs_endecode
5/5 Test #5: oqs_endecode .....................   Passed   10.64 sec

100% tests passed, 0 tests failed out of 5

Total Test time (real) =  22.21 sec

I also explicitly set OPENSSL_CNF (as it was null) prior to the test, pointing to my system level config (not qs).
Finally I 'broke' my (system) openssl.cnf so it was invalid. openssl app (either system, or my build of 3.2.1) would fail. Again, the tests ran ok (expected, as the config shouldn't be referred to)
Does this help? Perhaps we need to inspect the build config more closely

I run my tests on Fedora/RHEL/CentOS. They have system wide tuning in global configuration file affecting SignatureAlgorithms for TLS. I am not sure if Ubuntu touches this parameter or not.

I am not sure if Ubuntu touches this parameter or not.

Most likely not, as everything works (t)here. If you'd post that config I'd gladly take a look.

When I am trying to run oqs_test_tlssig.c,it returns error
4057A684357F0000:error:0A0000F7:SSL routines:ssl_set_pkey:unknown certificate type:../ssl/ssl_rsa.c:123
How to solve it?

How to solve it?

@Ericyu0412 The above does not contain any information about your setup. Please open a separate bug report with more details/background to reproduce.

As the related OpenSSL discussion is closed and no further input has been received, closing this issue.

repo: open-quantum-safe/oqs-provider

license: MIT


text:
Robot issues app

What's new

Adds a micro app for displaying reported robot issues.

A quick and dirty way to test it would be replacing https://github.com/open-rmf/rmf_ros2/blob/main/rmf_fleet_adapter/src/rmf_fleet_adapter/agv/FleetUpdateHandle.cpp#L882-L888, with some fake issues
      // object issue
      nlohmann::json object_issue_msg;
      object_issue_msg["category"] = name + "object_category";
      nlohmann::json object;
      object["first_field"] = "first_value";
      object["second_field"] = "second_value";
      object_issue_msg["detail"] = std::move(object);
      issues_msg.push_back(std::move(object_issue_msg));
      // array issue
      nlohmann::json array_issue_msg;
      array_issue_msg["category"] = name + "string_category";
      array_issue_msg["detail"] = {"first_value", "second_value"};
      issues_msg.push_back(std::move(array_issue_msg));
      // string issue
      nlohmann::json string_issue_msg;
      string_issue_msg["category"] = name + "string_category";
      string_issue_msg["detail"] = "string_value";
      issues_msg.push_back(std::move(string_issue_msg));

Self-checks

[ ] I have prototyped this new feature (if necessary) on Figma
[ ] I'm familiar with and follow this Typescript guideline
[ ] I added unit-tests for new components
[ ] I tried testing edge cases
[ ] I tested the behavior of the components that interact with the backend, with an e2e test

Discussion

I have not been able to implement resetting all the open accordions when a new robot is selected. Any ideas?

I think this could be part of robot info, what do you think?

I was playing around with that idea too. The next step is actually to include robot logs too, and I was hoping to avoid panels/spaces that will most of the time remain empty.
What do you adding it as a clickable icon at the end of the robot table row, that opens up an overlay?

I don't see any advantage of that over just having it on the robot info. If there is no issues, it would actually be important to indicate that. There should be an indicator at the robot table to quickly find robots with issues, but I don't think it needs any special click handler, it can just open the robot info as normal.

authors: aaronchongth koonpeng

repo: open-rmf/rmf-web


text:
Cannot install RMF from apt

Hi, I'm trying to install RMF from apt by following this tutorial. In the Setup Sources and Installation of RMF section it says:
Next you will need to setup the source of RMF packages similar to the previous two steps. First authorizing the key:
curl -s http://rmf.servehttp.com/repos.key | sudo apt-key add -

Secondly adding the repository to the apt sources:
sudo sh -c 'echo "deb http://rmf.servehttp.com/ubuntu/main/ `lsb_release -cs` main" > /etc/apt/sources.list.d/rmf.list'

And now we are ready to install. Let's update our packages:
sudo apt-get update

Finally, the following installs a basic set of packages that should get you going with RMF:
sudo apt-get install ros-foxy-ament-cmake-catch2 ros-foxy-building-gazebo-plugins ros-foxy-building-map-msgs ros-foxy-building-map-tools ros-foxy-rmf-cmake-uncrustify ros-foxy-rmf-dispenser-msgs ros-foxy-rmf-door-msgs ros-foxy-rmf-fleet-adapter ros-foxy-rmf-fleet-msgs ros-foxy-rmf-lift-msgs ros-foxy-rmf-task-msgs ros-foxy-rmf-traffic-msgs ros-foxy-rmf-traffic-ros2 ros-foxy-rmf-traffic ros-foxy-rmf-utils ros-foxy-traffic-editor

But when running the first command, curl -s http://rmf.servehttp.com/repos.key | sudo apt-key add -, I get this error.
gpg: no valid OpenPGP data found.

Likewise, running basic curl to get the key curl http://rmf.servehttp.com/repos.key returns
curl: (7) Failed to connect to rmf.servehttp.com port 80: Connection refused

Consequently, running sudo apt-get update has some error and sudo apt-get install ... returns package not found.
Some info that might be useful, I'm using Ubuntu 20.04. ROS is inside docker container with image pulled from osrf/ros/foxy-desktop-focal.
Any help would be appreciated, thanks!

Okay, thanks! I ended up using the demo docker image for now. Will try installing the binary again when I start developing.
Is there a timeline for the updated tutorial? Seems that some parts are also missing.

repo: open-rmf/rmf