Faster-RCNN_TF icon indicating copy to clipboard operation
Faster-RCNN_TF copied to clipboard

tensorflow.python.framework.errors_impl.InternalError: Failed to create session.

Open ziyeshanwai opened this issue 7 years ago • 1 comments

I'm using python3.5 and tf 1.2 and i get the follow error: Tensor("Placeholder_2:0", shape=(?, 5), dtype=float32) Tensor("conv5_3/conv5_3:0", shape=(?, ?, ?, 512), dtype=float32) (<tf.Tensor 'roi-data/rois:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'roi-data/Cast:0' shape= dtype=int32>, <tf.Tensor 'roi-data/PyFunc:2' shape= dtype=float32>, <tf.Tensor 'roi-data/PyFunc:3' shape= dtype=float32>, <tf.Tensor 'roi-data/PyFunc:4' shape= dtype=float32>) [<tf.Tensor 'conv5_3/conv5_3:0' shape=(?, ?, ?, 512) dtype=float32>, <tf.Tensor 'roi-data/rois:0' shape=(?, 5) dtype=float32>] Tensor("drop7/mul:0", shape=(?, 4096), dtype=float32) Use network VGGnet_train in training Filtered 0 roidb entries: 554 -> 554 2017-12-13 20:30:20.251373: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 2017-12-13 20:30:20.251417: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-12-13 20:30:20.251422: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-12-13 20:30:20.251427: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-12-13 20:30:20.251431: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. 2017-12-13 20:30:20.385790: E tensorflow/core/common_runtime/direct_session.cc:138] Internal: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_OUT_OF_MEMORY; total memory reported: 4242014208 Traceback (most recent call last): File "/home/liyouwang/pycharm-2017.3/helpers/pydev/pydev_run_in_console.py", line 37, in run_file pydev_imports.execfile(file, globals, locals) # execute the script File "/home/liyouwang/pycharm-2017.3/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/liyouwang/PycharmProjects/Faster-RCNN_TF/tools/train_net.py", line 95, in max_iters=args.max_iters) File "/home/liyouwang/PycharmProjects/Faster-RCNN_TF/tools/../lib/fast_rcnn/train.py", line 260, in train_net with tf.Session(config=tf.ConfigProto(allow_soft_placement=True)) as sess: File "/home/liyouwang/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1292, in init super(Session, self).init(target, graph, config=config) File "/home/liyouwang/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 562, in init self._session = tf_session.TF_NewDeprecatedSession(opts, status) File "/home/liyouwang/anaconda3/lib/python3.5/contextlib.py", line 66, in exit next(self.gen) File "/home/liyouwang/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status pywrap_tensorflow.TF_GetCode(status)) tensorflow.python.framework.errors_impl.InternalError: Failed to create session.

ziyeshanwai avatar Dec 13 '17 12:12 ziyeshanwai

Same error error.

tensorflow.python.framework.errors_impl.NotFoundError: /home/ii/app/Faster-RCNN_TF-master/tools/../lib/roi_pooling_layer/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

lijf138 avatar Jun 22 '20 17:06 lijf138