Comments (12)
@appyfizzA
nvcc -std=c++11 -ccbin=/usr/bin/g++-4.9 -c -o deform_psroi_pooling_op.cu.o deform_psroi_pooling_op_gpu.cu.cc
-I $TF_INC -I $NSYNC_INC -I /usr/local -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -L /usr/local/cuda-8.0/lib64/ --expt-relaxed-constexpr -arch=$ARCH
Replace -D GOOGLE_CUDA with -L /usr/local/cuda-8.0/lib64/
from tf_deformable_net.
I think it's because your Tensorflow include the file cuda.h
in this manner:
#include "cuda/include/cuda.h"
You can try to make the file visible by adding cuda/include
in your LD_LIBRARY_PATH
and include cuda.h
instead.
For nsync_cv.h
problem, try to use the flag -I $NSYNC_INC
in g++
commands to include the path.
Also, it looks like you're using Python 2.7. I think it works better with Python 3
from tf_deformable_net.
@knmac
Thank you for your advice, I have solved the previous problem ,mainly the latter error :
4 errors detected in the compilation of "/tmp/tmpxft_00005a43_000000007_deform_psroi_pooling_op_gpu.cu.cpp1.ii".
g++: error: deform_psroi_pooling_op.cu.o: No such file or directory
from tf_deformable_net.
Have you solved this issue?
from tf_deformable_net.
@yfnn
I didn't solve this problem, can't find a solution
from tf_deformable_net.
那你实现可变形卷积了吗
from tf_deformable_net.
I compiled successfully with gcc-4.9 and g++-4.9, no error.
from tf_deformable_net.
Have you solved this issue?
cd deform_psroi_pooling_layer
nvcc -std=c++11 -ccbin=/usr/bin/g++-4.9 -c -o deform_psroi_pooling_op.cu.o deform_psroi_pooling_op_gpu.cu.cc
-I $TF_INC -I $NSYNC_INC -I /usr/local -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -L /usr/local/cuda-8.0/lib64/ --expt-relaxed-constexpr -arch=$ARCH
把 -D GOOGLE_CUDA 换成 -L /usr/local/cuda-8.0/lib64/
from tf_deformable_net.
@YZ-510
I still have one issue as follows.
g++: error: deform_conv.cu.o: No such file or directory
I use familiar command "nvcc -std=c++11 -ccbin=/usr/bin/g++-7 -c -o deform_conv.cu.o deform_conv.cu.cc" to solve the first issue, but there are some errors like this,
In file included from deform_conv.cu.cc:68:0:
deform_conv.h:66:10: fatal error: third_party/eigen3/unsupported/Eigen/CXX11/Tensor: No such file or directory
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
How can I solve this?
from tf_deformable_net.
@yfnn It's my make.sh, I use gcc-4.9 and g++-4.9:
nvcc -std=c++11 -ccbin=/usr/bin/g++-4.9 -c -o deform_conv.cu.o deform_conv.cu.cc -I $TF_INC -I $NSYNC_INC -I /usr/local -D
GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -L /usr/local/cuda-8.0/lib64/ --expt-relaxed-constexpr -arch=$ARCH
g++-4.9 -std=c++11 -shared -o deform_conv.so deform_conv.cc deform_conv.cu.o -I
$TF_INC -I $NSYNC_INC -fPIC -lcudart -L $CUDA_HOME/lib64 -D GOOGLE_CUDA=1 -Wfatal-errors
-I$CUDA_HOME/include -L $TF_LIB -ltensorflow_framework -D_GLIBCXX_USE_CXX11_ABI=0
from tf_deformable_net.
/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(57): warning: integer conversion resulted in a change of sign
/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(304): warning: integer conversion resulted in a change of sign
/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(305): warning: integer conversion resulted in a change of sign
deform_psroi_pooling_op_gpu.cu.cc(172): warning: variable "transSize" was declared but never referenced
4 errors detected in the compilation of "/tmp/tmpxft_000028eb_00000000-7_deform_psroi_pooling_op_gpu.cu.cpp1.ii".
g++: error: deform_psroi_pooling_op.cu.o: No such file or directory
/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(57): warning: integer conversion resulted in a change of sign
Did anyone solve this? @ccnankai @yfnn @YZ-510
from tf_deformable_net.
@appyfizzA
nvcc -std=c++11 -ccbin=/usr/bin/g++-4.9 -c -o deform_psroi_pooling_op.cu.o deform_psroi_pooling_op_gpu.cu.cc
-I $TF_INC -I $NSYNC_INC -I /usr/local -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -L /usr/local/cuda-8.0/lib64/ --expt-relaxed-constexpr -arch=$ARCH
Replace -D GOOGLE_CUDA with -L /usr/local/cuda-8.0/lib64/
Thank you, it ran without error.
from tf_deformable_net.
Related Issues (20)
- Could you upgrade the lib to support tensorflow 1.4, cudnn 6.0 and cuda 8.0?
- any detail result accuracy about your result? HOT 1
- config.py paras problems HOT 1
- training problems HOT 1
- Is it compatible with cuda9.1 and cudnn7? HOT 6
- Batchsize issue HOT 1
- Offsets Subnet Details HOT 3
- Meaning of num_groups in offsets HOT 3
- How to use this on Windows
- Problems in installation HOT 5
- can it be used in g++4.8? HOT 2
- Can we add deformable convolution at different places?
- Testing problem HOT 2
- deform_conv.so: undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringB5cxx11Ev HOT 1
- Thoughts on training on Custom data
- Training error while running faster_rcnn/train_net.py HOT 2
- DCN V2
- compile error
- Error when executing command: make
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf_deformable_net.