Toybrick

手势demo在do_quantization=True量化出错

whxhngns200

注册会员

积分
174
楼主
发表于 2019-5-21 10:32:06    查看: 8876|回复: 2 | [复制链接]    打印 | 只看该作者
--> Loading model
done
--> Building model
E Catch exception when building RKNN model!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 498, in rknn.api.rknn_base.RKNNBase.build
T   File "rknn/api/rknn_base.py", line 1071, in rknn.api.rknn_base.RKNNBase._quantize
T   File "rknn/base/RKNNlib/app/tensorzone/quantization.py", line 144, in rknn.base.RKNNlib.app.tensorzone.quantization.Quantization.run
T   File "rknn/base/RKNNlib/app/tensorzone/quantization.py", line 91, in rknn.base.RKNNlib.app.tensorzone.quantization.Quantization._run_quantization
T   File "rknn/base/RKNNlib/app/tensorzone/workspace.py", line 167, in rknn.base.RKNNlib.app.tensorzone.workspace.Workspace._setup_graph
T   File "rknn/base/RKNNlib/app/tensorzone/workspace.py", line 168, in rknn.base.RKNNlib.app.tensorzone.workspace.Workspace._setup_graph
T   File "rknn/base/RKNNlib/app/tensorzone/graph.py", line 59, in rknn.base.RKNNlib.app.tensorzone.graph.Graph.generate
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 269, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 273, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 326, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
T   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 331, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
T   File "rknn/base/RKNNlib/layer/RKNNlayer.py", line 280, in rknn.base.RKNNlib.layer.RKNNlayer.RKNNLayer.compute_tensor
T   File "rknn/base/RKNNlib/layer/dropout.py", line 20, in rknn.base.RKNNlib.layer.dropout.Dropout.compute_out_tensor
T   File "/home/mifpay/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
T     return func(*args, **kwargs)
T   File "/home/mifpay/.local/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 2979, in dropout
T     return dropout_v2(x, rate, noise_shape=noise_shape, seed=seed, name=name)
T   File "/home/mifpay/.local/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 3024, in dropout_v2
T     "range [0, 1), got %g" % rate)
T ValueError: rate must be a scalar tensor or a float in the range [0, 1), got 1
done
E RKNN model data is None, please load model first!

回复

使用道具 举报

whxhngns200

注册会员

积分
174
沙发
 楼主| 发表于 2019-5-21 10:39:11 | 只看该作者
do_quantization=False时则没有问题
回复

使用道具 举报

zhangzj

超级版主

积分
1117
板凳
发表于 2019-5-21 15:25:10 | 只看该作者
whxhngns200 发表于 2019-5-21 10:39
do_quantization=False时则没有问题

看log是tensorflow的报错,估计是量化时tensorflow运行异常,可能跟网络结构有关
回复

使用道具 举报

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

本版积分规则

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


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