Tensorflow not running, shows low memory warning ! and program stops

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 516
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 517
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 518
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 519
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 520
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py”, line 525
np_resource = np.dtype([(“resource”, np.ubyte, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 541
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 542
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 543
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 544
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 545
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py”, line 550
np_resource = np.dtype([(“resource”, np.ubyte, 1)])
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

Warning (from warnings module):
File “/home/safran/tensorflow/models/research/object_detection/utils/visualization_utils.py”, line 29
import matplotlib; matplotlib.use(‘Agg’) # pylint: disable=multiple-statements
UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

The backend was originally set to ‘TkAgg’ by the following code:
File “”, line 1, in
File “/usr/lib/python3.6/idlelib/run.py”, line 144, in main
ret = method(*args, **kwargs)
File “/usr/lib/python3.6/idlelib/run.py”, line 474, in runcode
exec(code, self.locals)
File “/home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/model101_eval.py”, line 17, in
from matplotlib import pyplot as plt
File “/usr/lib/python3/dist-packages/matplotlib/pyplot.py”, line 72, in
from matplotlib.backends import pylab_setup
File “/usr/lib/python3/dist-packages/matplotlib/backends/init.py”, line 14, in
line for line in traceback.format_stack()

WARNING:tensorflow:From /home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/model101_eval.py:49: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

WARNING:tensorflow:From /home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/model101_eval.py:50: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

WARNING:tensorflow:From /home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/model101_eval.py:89: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

WARNING:tensorflow:From /home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/model101_eval.py:91: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.

WARNING:tensorflow:From /home/safran/tensorflow/models/research/object_detection/utils/ops.py:841: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version.
Instructions for updating:
box_ind is deprecated, use box_indices instead

I was trying to run Mask rcnn on tensorflow, TF GPU is installed on my jetson nano. This low memory Waring pops up regularly, though I used swapfile to 8G still dint help. ??

Thank you

Hi,

Please check this comment for information:
[url]https://devtalk.nvidia.com/default/topic/1064424/jetson-nano/tensorflow-installation-error/post/5390264/#5390264[/url]

Thanks

I tried converting .pb file to Tensor RT on jetson nano, i ran into error which is given below. i have used Accelerating Inference In TF-TRT User Guide :: NVIDIA Deep Learning Frameworks Documentation for this convertion.


UnicodeDecodeError Traceback (most recent call last)
in ()
3 with tf.gfile.GFile(‘/home/safran/Desktop/mask_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb’) as f:
4 frozen_graph = tf.GraphDef()
----> 5 frozen_graph.ParseFromString(f.read())
6 # Now you can create a TensorRT inference graph from your
7 # frozen graph:

/usr/local/lib/python3.6/dist-packages/tensorflow/python/lib/io/file_io.py in read(self, n)
126 length = n
127 return self._prepare_value(
→ 128 pywrap_tensorflow.ReadFromStream(self._read_buf, length))
129
130 @deprecation.deprecated_args(

/usr/local/lib/python3.6/dist-packages/tensorflow/python/lib/io/file_io.py in _prepare_value(self, val)
96 return compat.as_bytes(val)
97 else:
—> 98 return compat.as_str_any(val)
99
100 def size(self):

/usr/local/lib/python3.6/dist-packages/tensorflow/python/util/compat.py in as_str_any(value)
115 “”"
116 if isinstance(value, bytes):
→ 117 return as_str(value)
118 else:
119 return str(value)

/usr/local/lib/python3.6/dist-packages/tensorflow/python/util/compat.py in as_text(bytes_or_text, encoding)
85 return bytes_or_text
86 elif isinstance(bytes_or_text, bytes):
—> 87 return bytes_or_text.decode(encoding)
88 else:
89 raise TypeError(‘Expected binary or unicode string, got %r’ % bytes_or_text)

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 394: invalid start byte


I tried with saved model but this jetson nano gives this memory warning n turns off. The main aspect o fmy project is MASK RCNN. It has been 4 weeks we got this jetson nano n couldnt run a MaskRcnn inference even once. Every method we tried failed, we are not able to get any opensource solutions yet. I request you to support us ASAP.!