|
报错信息如下,固件版本是Debian10
- toybrick@debian10:/usr/share/rknn/mobilenet-ssd$ python3 ssd.py
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/ceil.py:10: The name tf.ceil is deprecated. Please use tf.math.ceil instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/depth_to_space.py:12: The name tf.depth_to_space is deprecated. Please use tf.compat.v1.depth_to_space instead.
- W:tensorflow:
- The TensorFlow contrib module will not be included in TensorFlow 2.0.
- For more information, please see:
- * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
- * https://github.com/tensorflow/addons
- * https://github.com/tensorflow/io (for I/O related ops)
- If you depend on functionality not listed there, please file an issue.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/log.py:10: The name tf.log is deprecated. Please use tf.math.log instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_normal.py:9: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_uniform.py:9: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/upsample.py:13: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
- /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
- warnings.warn(message)
- --> Loading model
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/rknn/api/rknn.py:65: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
- Instructions for updating:
- Use `tf.compat.v1.graph_util.extract_sub_graph`
- /home/toybrick/.local/lib/python3.7/site-packages/rknn/api/rknn.py:65: FutureWarning: Possible nested set at position 7
- std_values=std_values)
- done
- --> Building model
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/tensorflow/python/ops/control_flow_ops.py:1814: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
- Instructions for updating:
- tf.py_func is deprecated in TF V2. Instead, there are two
- options available in V2.
- - tf.py_function takes a python function which manipulates tf eager
- tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
- an ndarray (just call tensor.numpy()) but having access to eager tensors
- means `tf.py_function`s can use accelerators such as GPUs as well as
- being differentiable using a gradient tape.
- - tf.numpy_function maintains the semantics of the deprecated tf.py_func
- (it is not differentiable, and manipulates numpy arrays). It drops the
- stateful argument making all functions stateful.
-
- done
- E Export RKNN model to [./ssd_mobilenet_v1_coco.rknn] failed.
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 405, in rknn.api.rknn_base.RKNNBase.export_rknn
- E File "rknn/api/rknn_model.py", line 72, in rknn.api.rknn_model.RKNNModel.save
- E PermissionError: [Errno 13] Permission denied: './ssd_mobilenet_v1_coco.rknn'
- --> Init runtime environment
- E Catch exception when init runtime!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 768, in rknn.api.rknn_base.RKNNBase.init_runtime
- E File "rknn/api/rknn_runtime.py", line 144, in rknn.api.rknn_runtime.RKNNRuntime.__init__
- E File "rknn/api/rknn_platform_utils.py", line 253, in rknn.api.rknn_platform_utils.start_ntp_or_adb
- E File "rknn/api/rknn_platform_utils.py", line 118, in rknn.api.rknn_platform_utils.weather_device_use_ntb
- E File "rknn/api/rknn_utils.py", line 91, in rknn.api.rknn_utils.exec_command
- E File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
- E **kwargs).stdout
- E File "/usr/lib/python3.7/subprocess.py", line 472, in run
- E with Popen(*popenargs, **kwargs) as process:
- E File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
- E restore_signals, start_new_session)
- E File "/usr/lib/python3.7/subprocess.py", line 1453, in _execute_child
- E restore_signals, start_new_session, preexec_fn)
- E OSError: [Errno 12] Cannot allocate memory
- Init runtime environment failed
看报错信息大概是写入权限的问题,Google了一些办法都没有用,希望能得到大家的指导
|
|