Comments (14)
Setting the following should make it work (it worked at least for me)
(1) export PATH=$PATH:/usr/local/cuda-8.0/bin/ (or your corresponding cuda path) for your terminal
(2) In make.sh file inside lib directory, do CXXFLAGS='-D_MWAITXINTRIN_H_INCLUDED'
from faster-rcnn_tf.
Do you install the cuda or add cuda path in your bashrc?
from faster-rcnn_tf.
@gy1874
how do u add cuda path in your bashrc?
i try ,but failed again .
thanks
from faster-rcnn_tf.
The same issue.
I'm sure I have added the cuda path into ~/.bashrc. Is it caused by the different versions of cuda and cuDNN? Mine is cuda 7.5 and cudnn v4.0. @smallcorgi
from faster-rcnn_tf.
Oh, I have fixed this problem. You should not only add "/usr/local/cuda" but also "/usr/local/cuda-7.5/bin" into your $PATH. @jiangyuguang @gy1874
from faster-rcnn_tf.
@hzy46 ,I add all path into /.bashrc as you say,but no works,can you give me some helps?/code/Faster-RCNN_TF-master/lib$ make
thanks very much!
the information as follows:
maheng@master:
python setup.py build_ext --inplace
running build_ext
skipping 'utils/bbox.c' Cython extension (up-to-date)
skipping 'utils/nms.c' Cython extension (up-to-date)
skipping 'nms/cpu_nms.c' Cython extension (up-to-date)
skipping 'nms/gpu_nms.cpp' Cython extension (up-to-date)
rm -rf build
sh make.sh
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
/usr/local/lib/python2.7/dist-packages/tensorflow/include
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_0000087c_00000000-7_roi_pooling_op_gpu.cu.cpp1.ii".
g++: error: roi_pooling_op.cu.o: No such file or directory
from faster-rcnn_tf.
@CharlesShang @smallcorgi Could you help me solve this error? Thanks s lot
from faster-rcnn_tf.
I think the cython is ok.
2 errors detected in the compilation of "/tmp/tmpxft_0000087c_00000000-7_roi_pooling_op_gpu.cu.cpp1.ii".
g++: error: roi_pooling_op.cu.o: No such file or directory
It means this line below in make.sh
nvcc -std=c++11 -c -o roi_pooling_op.cu.o roi_pooling_op_gpu.cu.cc \
-I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -arch=sm_52
failed to generate roi_pooling_op.cu.o. So you need to
- Check cuda settings
If your system is ubuntu (above 14.04), you can add cuda.conf
file under /etc/ld.so.conf.d/
modify when needed
sudo sh -c 'echo "/usr/local/cuda/lib64" > /etc/ld.so.conf.d/cuda.conf'
sudo ldconfig
Hope this works for you
from faster-rcnn_tf.
@CharlesShang thanks a lot , I add a -D_MWAITXINTRIN_H_INCLUDED option fix the issue. , and my version of TensorFlow is 0.8 and CUDA 7.5 and GCC 5.2.1.
But when I run the demo as follow, I meet another error. I have already download the VGGnet and put it in the Faster-RCNN_TF-master directory. Is not my tensorflow version is too low?
maheng@master:~/code/Faster-RCNN_TF-master$ python ./tools/demo.py --model VGGnet_fast_rcnn_iter_70000.ckpt
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:900] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_init.cc:102] Found device 0 with properties:
name: GeForce GTX 750 Ti
major: 5 minor: 0 memoryClockRate (GHz) 1.189
pciBusID 0000:01:00.0
Total memory: 1.95GiB
Free memory: 1.76GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:755] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 750 Ti, pci bus id: 0000:01:00.0)
Tensor("Placeholder:0", shape=(?, ?, ?, 3), dtype=float32)
Tensor("conv5_3/conv5_3:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("rpn_conv/3x3/rpn_conv/3x3:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("rpn_cls_score/rpn_cls_score:0", shape=(?, ?, ?, 18), dtype=float32)
Traceback (most recent call last):
File "./tools/demo.py", line 114, in
net = get_network(args.demo_net)
File "/home/maheng/code/Faster-RCNN_TF-master/tools/../lib/networks/factory.py", line 28, in get_network
return networks.VGGnet_test()
File "/home/maheng/code/Faster-RCNN_TF-master/tools/../lib/networks/VGGnet_test.py", line 16, in init
self.setup()
File "/home/maheng/code/Faster-RCNN_TF-master/tools/../lib/networks/VGGnet_test.py", line 46, in setup
.reshape_layer(2,name = 'rpn_cls_score_reshape')
File "/home/maheng/code/Faster-RCNN_TF-master/tools/../lib/networks/network.py", line 25, in layer_decorated
layer_output = op(self, layer_input, _args, _kwargs)
File "/home/maheng/code/Faster-RCNN_TF-master/tools/../lib/networks/network.py", line 206, in reshape_layer
int(d),tf.cast(tf.cast(input_shape[1],tf.float32)(tf.cast(input_shape[3],tf.float32)/tf.cast(d,tf.float32)),tf.int32),input_shape[2]]),[0,2,3,1],name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 1092, in reshape
name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 411, in apply_op
as_ref=input_arg.is_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 566, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/constant_op.py", line 179, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/constant_op.py", line 162, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 332, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 272, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
from faster-rcnn_tf.
Maybe it's your version is too low. You can try a higher version.
Also I dont think your GTX 750 Ti has enough memory. As I remember the least mem is 3GB
from faster-rcnn_tf.
thanks for your trouble
from faster-rcnn_tf.
thanks, i will try again. @hzy46
from faster-rcnn_tf.
@StevenJames1 Can you tell me how to "add a -D_MWAITXINTRIN_H_INCLUDED option", please? Your problem have been solved completely?
from faster-rcnn_tf.
@StevenJames1
Have you solved the 'TypeError:Expected int32, got list containing Tensors of type '_Message' instead.' problem?I met the same error like you.Please help me!!!
from faster-rcnn_tf.
Related Issues (20)
- Training Faster-RCNN using scientific data
- some errors happened when i run Make for cython module HOT 1
- module compiled against API version 0xc but this version of numpy is 0xa
- What tools do you use to implement c++ code of roi-pool layer?
- ValueError: Tried to convert 'fiter' to a tensor and faild.
- You may need to pass the encoding= option to numpy.load HOT 1
- You may need to pass the encoding= option to numpy.load HOT 5
- @gdelab while testing,I have a problem about 'pickle'. so ,i change it to open files in byte as you put it,however, another question occured"Ran out of input": File "./faster_rcnn/../lib/datasets/voc_eval.py", line 123, in voc_eval
- Python.h: No such file or directory
- python setup.py build_ext --inplace File "setup.py", line 84 print extra_postargs ^ SyntaxError: Missing parentheses in call to 'print'
- when i make..thx HOT 1
- please help me to for how to get the high accuracy in faster-rcnn and parameter tuning
- demo problem HOT 1
- tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed>
- Invalid argument: TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer. Traceback (most recent call last):
- 已经解决了win10下关于faster rcnn下训练自己数据集的问题,如有不了解的,可以交流
- About RPN network improvements(Cascade RPN)
- the mAP is only 0.681? HOT 1
- image invalid, skipping
- potential bug in __init__.py
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 faster-rcnn_tf.