Toybrick

楼主: hisping

人工智能开发系列(3) YOLOV3开发与实现

 

hiCrystal

中级会员

积分
250
131#
发表于 2021-8-4 17:54:09 | 只看该作者
请问如何部署到rv1126上运行?
回复

使用道具 举报

求大佬指教

中级会员

积分
241
132#
发表于 2021-9-2 09:41:50 | 只看该作者
你好,请问第一步安装开发环境的链接打不开了怎么办?有新的链接吗?
回复

使用道具 举报

llllll

注册会员

积分
57
133#
发表于 2021-10-18 16:19:21 | 只看该作者
darknet转rknn失败   这是为啥呀
(venv) ljs@ljs-virtual-machine:~/yolov3_demo$ python3 rknn_transform_416x416.py
--> Loading model
W:tensorflow:From /home/ljs/venv/lib/python3.6/site-packages/rknn/api/rknn.py:136: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

W:tensorflow:From /home/ljs/venv/lib/python3.6/site-packages/rknn/api/rknn.py:136: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2021-10-18 10:35:19.926517: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
W:tensorflow:From /home/ljs/venv/lib/python3.6/site-packages/rknn/api/rknn.py:136: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

done
--> Building model
W The RKNN Model generated can not run on simulator when pre_compile is True.
W The target_platform is not set in config, using default target platform rk1808.
W The channel_mean_value is deprecated. Please use mean_values and std_values to replace it.
W:tensorflow:From /home/ljs/venv/lib/python3.6/site-packages/rknn/api/rknn.py:244: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.

W:tensorflow:From /home/ljs/venv/lib/python3.6/site-packages/rknn/api/rknn.py:244: The name tf.FIFOQueue is deprecated. Please use tf.queue.FIFOQueue instead.

W:tensorflow:From /home/ljs/venv/lib/python3.6/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.
   
2021-10-18 10:38:41.894117: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set.  If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU.  To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
/bin/sh: 1: make: not found
/bin/sh: 1: /tmp/tmp1shhxcwp/gen_nbg: not found
mv: 无法获取'/home/ljs/yolov3_demo/*.nb' 的文件状态(stat): 没有那个文件或目录
mv: 无法获取'/home/ljs/yolov3_demo/*.dat' 的文件状态(stat): 没有那个文件或目录
E Generate nbg failed.
W ----------------Warning(3)----------------
E Catch exception when building RKNN model!
E Traceback (most recent call last):
E   File "rknn/base/ovxconfiggenerator.py", line 193, in rknn.base.ovxconfiggenerator.generate_vx_config_from_files
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 632, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator.generate
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 583, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator._gen_special_case
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 548, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator._gen_nb_file
E AttributeError: 'CaseGenerator' object has no attribute 'nbg_graph_file_path'
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 601, in rknn.api.rknn_base.RKNNBase.build
E   File "rknn/api/rknn_base.py", line 414, in rknn.api.rknn_base.RKNNBase._build
E   File "rknn/base/ovxconfiggenerator.py", line 195, in rknn.base.ovxconfiggenerator.generate_vx_config_from_files
E   File "rknn/api/rknn_log.py", line 312, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Generate nbg failed.
done
E RKNN model data is None, please load model first!
E RKNN model data is None, please load model first!
回复

使用道具 举报

mogul

新手上路

积分
23
134#
发表于 2021-12-4 11:08:58 | 只看该作者
TryYourBest 发表于 2019-6-27 09:42
在跑案例的过程中,运行“python3 rknn_transform.py”时,当进行到“Building model1”时,经过一段时间后 ...

请问解决了吗?我也遇到了这个问题~
回复

使用道具 举报

王国双

新手上路

积分
26
135#
发表于 2022-1-18 14:45:54 | 只看该作者

老师 通过RK3399Pro 安装Darknet目标检测项目后 运行半小时左右出现以上RKNN_ERR_DEVICE_UNAVALABLE错误 系统是:Fedora 28 依赖环境采用的是rknn-toolkit==1.0.0 tensorflow==1.10.1 已经尝试rknn-toolkit多个版本 问题依然存在 望老师给点建议
回复

使用道具 举报

yyyy

注册会员

积分
124
136#
发表于 2022-2-22 16:04:29 | 只看该作者
我在运行python3 rknn_transform_tiny.py 时报错  File "rknn_transform_tiny.py", line 23, in <module>
    rknn.config(channel_mean_value='0 0 0 255', reorder_channel='0 1 2')
TypeError: config() got an unexpected keyword argument 'channel_mean_value'
请问该怎么解决
回复

使用道具 举报

钱钱钱

注册会员

积分
149
137#
发表于 2022-3-9 15:25:55 | 只看该作者
在转换yolov3模型的时候报出了AttributeError:"NoneType" object has no attribute "get_input_layers"错误,请问有人知道是什么原因吗?
回复

使用道具 举报

钱钱钱

注册会员

积分
149
138#
发表于 2022-3-9 15:32:02 | 只看该作者
mjq 发表于 2021-6-1 17:24
用您给的代码rknn_transform_416x416.py,以及权重、cfg文件转换yolov3.weights出错
E AttributeError: 'Mu ...

请问您结局了吗?能分享一下吗?
回复

使用道具 举报

钱钱钱

注册会员

积分
149
139#
发表于 2022-3-9 16:04:02 | 只看该作者
liuwenhua 发表于 2020-8-12 17:30
在模型进行量化的时,报错如下,可能是什么原因呢?

请问您解决了吗,能分享一下吗?
回复

使用道具 举报

2287576680

注册会员

积分
115
140#
发表于 2022-9-9 00:12:58 | 只看该作者
hisping 发表于 2019-10-30 14:51
yolov3-tiny python可以跑30帧, c可以跑更高,瓶颈在摄像头,npu只耗时6ms左右

请问3399的NPU和1126的NPU性能是一样的吗,我用1126的NPU跑yolov3_tiny,推理的时间用了25ms,解码也用了25ms,这正常吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表