faster-rcnn.pytorch
faster-rcnn.pytorch copied to clipboard
ModuleNotFoundError: No module named 'utils.cython_bbox'
I still have this problem.
my project version:
commit 0a1a74b16a6712a11570ad06c0378584fe2095f2
Merge: 7589307 96a4037
Author: Jianwei Yang <[email protected]>
Date: Thu May 9 12:39:35 2019 -0400
Merge pull request #544 from kentaroy47/pytorch-1.0
fix for pytorch1.1
my python environment:
Package Version Location
-------------------- ----------- ------------------------------------------
absl-py 0.7.1
astor 0.8.0
certifi 2016.2.28
cffi 1.12.3
cycler 0.10.0
Cython 0.29.7
easydict 1.9
faster-rcnn 0.1 /home/zgz/sub_code/faster-rcnn.pytorch/lib
gast 0.2.2
grpcio 1.20.1
h5py 2.9.0
Keras-Applications 1.0.7
Keras-Preprocessing 1.0.9
kiwisolver 1.1.0
Markdown 3.1.1
matplotlib 3.1.0
mock 3.0.5
msgpack 0.6.1
numpy 1.16.2
opencv-python 4.1.0.25
Pillow 6.0.0
pip 19.1.1
protobuf 3.7.1
pycparser 2.19
pyparsing 2.4.0
python-dateutil 2.8.0
PyYAML 5.1
scipy 1.3.0
setuptools 41.0.1
six 1.12.0
tensorboard 1.13.1
tensorboardX 1.7
tensorflow-estimator 1.13.0
tensorflow-gpu 1.13.1
termcolor 1.1.0
torch 1.0.1.post2
torchvision 0.2.2.post3
utils 0.9.0
Werkzeug 0.15.4
wheel 0.29.0
I set the env CUDA_HOME=/usr/local/cuda-10.0
the log of setup.py:
running build
running build_py
running build_ext
building 'model._C' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/vision.cpp -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++
^Z
[2]+ Stopped python setup.py build develop
(pytorch-cp3) [zgz@9-96-101-173 lib]$ cd ../..
(pytorch-cp3) [zgz@9-96-101-173 sub_code]$ rm -rf faster-rcnn.pytorch/
(pytorch-cp3) [zgz@9-96-101-173 sub_code]$ git clone -b pytorch-1.0 https://github.com/jwyang/faster-rcnn.pytorch.git
Cloning into 'faster-rcnn.pytorch'...
remote: Enumerating objects: 3793, done.
remote: Total 3793 (delta 0), reused 0 (delta 0), pack-reused 3793
Receiving objects: 100% (3793/3793), 6.18 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2583/2583), done.
(pytorch-cp3) [zgz@9-96-101-173 sub_code]$ cd faster-rcnn.pytorch/lib/
(pytorch-cp3) [zgz@9-96-101-173 lib]$ python setup.py build develop
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/model
copying model/__init__.py -> build/lib.linux-x86_64-3.6/model
creating build/lib.linux-x86_64-3.6/datasets
copying datasets/__init__.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/imagenet.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/pascal_voc_rbg.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/pascal_voc.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/vg_eval.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/factory.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/voc_eval.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/ds_utils.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/vg.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/imdb.py -> build/lib.linux-x86_64-3.6/datasets
copying datasets/coco.py -> build/lib.linux-x86_64-3.6/datasets
creating build/lib.linux-x86_64-3.6/roi_data_layer
copying roi_data_layer/__init__.py -> build/lib.linux-x86_64-3.6/roi_data_layer
copying roi_data_layer/minibatch.py -> build/lib.linux-x86_64-3.6/roi_data_layer
copying roi_data_layer/roibatchLoader.py -> build/lib.linux-x86_64-3.6/roi_data_layer
copying roi_data_layer/roidb.py -> build/lib.linux-x86_64-3.6/roi_data_layer
creating build/lib.linux-x86_64-3.6/pycocotools
copying pycocotools/__init__.py -> build/lib.linux-x86_64-3.6/pycocotools
copying pycocotools/mask.py -> build/lib.linux-x86_64-3.6/pycocotools
copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.6/pycocotools
copying pycocotools/coco.py -> build/lib.linux-x86_64-3.6/pycocotools
creating build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/__init__.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/proposal_target_layer_cascade.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/bbox_transform.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/proposal_layer.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/rpn.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/anchor_target_layer.py -> build/lib.linux-x86_64-3.6/model/rpn
copying model/rpn/generate_anchors.py -> build/lib.linux-x86_64-3.6/model/rpn
creating build/lib.linux-x86_64-3.6/model/roi_align
copying model/roi_align/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_align
copying model/roi_align/build.py -> build/lib.linux-x86_64-3.6/model/roi_align
creating build/lib.linux-x86_64-3.6/model/faster_rcnn
copying model/faster_rcnn/__init__.py -> build/lib.linux-x86_64-3.6/model/faster_rcnn
copying model/faster_rcnn/faster_rcnn.py -> build/lib.linux-x86_64-3.6/model/faster_rcnn
copying model/faster_rcnn/vgg16.py -> build/lib.linux-x86_64-3.6/model/faster_rcnn
copying model/faster_rcnn/resnet.py -> build/lib.linux-x86_64-3.6/model/faster_rcnn
creating build/lib.linux-x86_64-3.6/model/nms
copying model/nms/__init__.py -> build/lib.linux-x86_64-3.6/model/nms
copying model/nms/nms_cpu.py -> build/lib.linux-x86_64-3.6/model/nms
copying model/nms/build.py -> build/lib.linux-x86_64-3.6/model/nms
copying model/nms/nms_gpu.py -> build/lib.linux-x86_64-3.6/model/nms
copying model/nms/nms_wrapper.py -> build/lib.linux-x86_64-3.6/model/nms
creating build/lib.linux-x86_64-3.6/model/roi_crop
copying model/roi_crop/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop
copying model/roi_crop/build.py -> build/lib.linux-x86_64-3.6/model/roi_crop
creating build/lib.linux-x86_64-3.6/model/roi_pooling
copying model/roi_pooling/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_pooling
copying model/roi_pooling/build.py -> build/lib.linux-x86_64-3.6/model/roi_pooling
creating build/lib.linux-x86_64-3.6/model/roi_layers
copying model/roi_layers/nms.py -> build/lib.linux-x86_64-3.6/model/roi_layers
copying model/roi_layers/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_layers
copying model/roi_layers/roi_pool.py -> build/lib.linux-x86_64-3.6/model/roi_layers
copying model/roi_layers/roi_align.py -> build/lib.linux-x86_64-3.6/model/roi_layers
creating build/lib.linux-x86_64-3.6/model/utils
copying model/utils/__init__.py -> build/lib.linux-x86_64-3.6/model/utils
copying model/utils/blob.py -> build/lib.linux-x86_64-3.6/model/utils
copying model/utils/config.py -> build/lib.linux-x86_64-3.6/model/utils
copying model/utils/logger.py -> build/lib.linux-x86_64-3.6/model/utils
copying model/utils/net_utils.py -> build/lib.linux-x86_64-3.6/model/utils
creating build/lib.linux-x86_64-3.6/model/roi_align/modules
copying model/roi_align/modules/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_align/modules
copying model/roi_align/modules/roi_align.py -> build/lib.linux-x86_64-3.6/model/roi_align/modules
creating build/lib.linux-x86_64-3.6/model/roi_align/_ext
copying model/roi_align/_ext/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_align/_ext
creating build/lib.linux-x86_64-3.6/model/roi_align/functions
copying model/roi_align/functions/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_align/functions
copying model/roi_align/functions/roi_align.py -> build/lib.linux-x86_64-3.6/model/roi_align/functions
creating build/lib.linux-x86_64-3.6/model/roi_align/_ext/roi_align
copying model/roi_align/_ext/roi_align/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_align/_ext/roi_align
creating build/lib.linux-x86_64-3.6/model/nms/_ext
copying model/nms/_ext/__init__.py -> build/lib.linux-x86_64-3.6/model/nms/_ext
creating build/lib.linux-x86_64-3.6/model/nms/_ext/nms
copying model/nms/_ext/nms/__init__.py -> build/lib.linux-x86_64-3.6/model/nms/_ext/nms
creating build/lib.linux-x86_64-3.6/model/roi_crop/modules
copying model/roi_crop/modules/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop/modules
copying model/roi_crop/modules/gridgen.py -> build/lib.linux-x86_64-3.6/model/roi_crop/modules
copying model/roi_crop/modules/roi_crop.py -> build/lib.linux-x86_64-3.6/model/roi_crop/modules
creating build/lib.linux-x86_64-3.6/model/roi_crop/_ext
copying model/roi_crop/_ext/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop/_ext
creating build/lib.linux-x86_64-3.6/model/roi_crop/functions
copying model/roi_crop/functions/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop/functions
copying model/roi_crop/functions/gridgen.py -> build/lib.linux-x86_64-3.6/model/roi_crop/functions
copying model/roi_crop/functions/roi_crop.py -> build/lib.linux-x86_64-3.6/model/roi_crop/functions
copying model/roi_crop/functions/crop_resize.py -> build/lib.linux-x86_64-3.6/model/roi_crop/functions
creating build/lib.linux-x86_64-3.6/model/roi_crop/_ext/crop_resize
copying model/roi_crop/_ext/crop_resize/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop/_ext/crop_resize
creating build/lib.linux-x86_64-3.6/model/roi_crop/_ext/roi_crop
copying model/roi_crop/_ext/roi_crop/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_crop/_ext/roi_crop
creating build/lib.linux-x86_64-3.6/model/roi_pooling/modules
copying model/roi_pooling/modules/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/modules
copying model/roi_pooling/modules/roi_pool.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/modules
creating build/lib.linux-x86_64-3.6/model/roi_pooling/_ext
copying model/roi_pooling/_ext/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/_ext
creating build/lib.linux-x86_64-3.6/model/roi_pooling/functions
copying model/roi_pooling/functions/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/functions
copying model/roi_pooling/functions/roi_pool.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/functions
creating build/lib.linux-x86_64-3.6/model/roi_pooling/_ext/roi_pooling
copying model/roi_pooling/_ext/roi_pooling/__init__.py -> build/lib.linux-x86_64-3.6/model/roi_pooling/_ext/roi_pooling
running build_ext
building 'model._C' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/home
creating build/temp.linux-x86_64-3.6/home/zgz
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu
creating build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/vision.cpp -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++
/usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/nms.cu -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/nms.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIAlign_cuda.cu -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA -I/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda-10.0/include -I/home/zgz/anaconda2/envs/pytorch-cp3/include/python3.6m -c /home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIPool_cuda.cu -o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIPool_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
g++ -pthread -shared -L/home/zgz/anaconda2/envs/pytorch-cp3/lib -Wl,-rpath=/home/zgz/anaconda2/envs/pytorch-cp3/lib,--no-as-needed build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/vision.o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/ROIAlign_cpu.o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cpu/nms_cpu.o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/nms.o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIAlign_cuda.o build/temp.linux-x86_64-3.6/home/zgz/sub_code/faster-rcnn.pytorch/lib/model/csrc/cuda/ROIPool_cuda.o -L/usr/local/cuda-10.0/lib64 -L/home/zgz/anaconda2/envs/pytorch-cp3/lib -lcudart -lpython3.6m -o build/lib.linux-x86_64-3.6/model/_C.cpython-36m-x86_64-linux-gnu.so
running develop
running egg_info
creating faster_rcnn.egg-info
writing faster_rcnn.egg-info/PKG-INFO
writing dependency_links to faster_rcnn.egg-info/dependency_links.txt
writing top-level names to faster_rcnn.egg-info/top_level.txt
writing manifest file 'faster_rcnn.egg-info/SOURCES.txt'
reading manifest file 'faster_rcnn.egg-info/SOURCES.txt'
writing manifest file 'faster_rcnn.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.6/model/_C.cpython-36m-x86_64-linux-gnu.so -> model
Creating /home/zgz/anaconda2/envs/pytorch-cp3/lib/python3.6/site-packages/faster-rcnn.egg-link (link to .)
Adding faster-rcnn 0.1 to easy-install.pth file
Installed /home/zgz/sub_code/faster-rcnn.pytorch/lib
Processing dependencies for faster-rcnn==0.1
Finished processing dependencies for faster-rcnn==0.1
the command:
CUDA_VISIBLE_DEVICES=0 python trainval_net.py --dataset pascal_voc --net vgg16 --bs 1 --nw 2 --lr 0.1 --lr_decay_step 0.1 --cuda
the error info:
Traceback (most recent call last):
File "trainval_net.py", line 27, in <module>
from roi_data_layer.roidb import combined_roidb
File "/home/zgz/tmp/tf-faster-rcnn/lib/roi_data_layer/roidb.py", line 16, in <module>
from utils.cython_bbox import bbox_overlaps
ModuleNotFoundError: No module named 'utils.cython_bbox'
I am having a similar error... is CUDA required or can I setup things without it? Seems required
I am having the same error ,if you solved ,could you tell me? I am very appreciate.