System Config: Jetson nano , Headless mode with jetpack 4.2.2, tensorflow gpu 1.14, open cv 3.3.1(default), 6GB Swapfile running on USB Disk, jetson_clocks running. Tried options mentioned in the posts : (a) https://devtalk.nvidia.com/default/topic/1062473/jetson-nano-most-gpu-memory-is-not-available-/?offset=3
(b)https://github.com/aymericdamien/TensorFlow-Examples/issues/38
(c)
Cannot run any tensorflow models on the nano. I get the error below
2019-10-18 01:57:57.868279: I tensorflow/core/common_runtime/bfc_allocator.cc:818] total_region_allocated_bytes_: 1349517312 memory_limit_: 1349857280 available bytes: 339968 curr_region_allocation_bytes_: 1073741824
2019-10-18 01:57:57.868328: I tensorflow/core/common_runtime/bfc_allocator.cc:824] Stats:
Limit: 1349857280
InUse: 855125248
MaxInUse: 946908416
NumAllocs: 168842
MaxAllocSize: 536870912
2019-10-18 01:57:57.868418: W tensorflow/core/common_runtime/bfc_allocator.cc:319] **********************************xxxxxxxxx_______________________
Traceback (most recent call last):
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1356, in _do_call
return fn(*args)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1429, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
(0) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_291_0_26}}]]
[[ReadVariableOp_289/_1777]]
(1) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_291_0_26}}]]
0 successful operations.
0 derived errors ignored.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “GodFather_v2.py”, line 240, in
age_model = ageModel(params.age_weights)
File “/home/jetsonnano0/Hasslefree_Nano/Functions_v2.py”, line 274, in ageModel
age_model.load_weights(age_weights)
File “/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py”, line 492, in load_wrapper
return load_function(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/keras/engine/network.py”, line 1230, in load_weights
f, self.layers, reshape=reshape)
File “/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py”, line 1237, in load_weights_from_hdf5_group
K.batch_set_value(weight_value_tuples)
File “/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py”, line 2960, in batch_set_value
tf_keras_backend.batch_set_value(tuples)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/keras/backend.py”, line 3071, in batch_set_value
get_session().run(assign_ops, feed_dict=feed_dict)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 950, in run
run_metadata_ptr)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1173, in _run
feed_dict_tensor, options, run_metadata)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1350, in _do_run
run_metadata)
File “/home/jetsonnano0/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py”, line 1370, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
(0) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_291_0_26}}]]
[[ReadVariableOp_289/_1777]]
(1) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_291_0_26}}]]
0 successful operations.
0 derived errors ignored.