Toybrick

标题: AttributeError: 'NoneType' object has no attribute 'get_input_layers' [打印本页]

作者: zzy178638    时间: 2020-12-11 23:48
标题: AttributeError: 'NoneType' object has no attribute 'get_input_layers'
root@debian10:/home/toybrick/yolov3_demo# python3 rknn_transform_tiny.py
--> Loading model
E Catch exception when loading darknet model: ./yolov3-tiny.cfg!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 600, in rknn.api.rknn_base.RKNNBase.load_darknet
E   File "rknn/base/RKNNlib/converter/convert_darknet.py", line 721, in rknn.base.RKNNlib.converter.convert_darknet.Converter.build_connection
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 78, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.__init__
E   File "rknn/base/RKNNlib/RKNN_session.py", line 19, in rknn.base.RKNNlib.RKNN_session.RKNNSession.__init__
E AttributeError: module 'tensorflow' has no attribute 'ConfigProto'
done
--> Building model
Traceback (most recent call last):
  File "rknn_transform_tiny.py", line 27, in <module>
    rknn.build(do_quantization=True, dataset='./dataset_416x416.txt')
  File "/root/.local/lib/python3.7/site-packages/rknn/api/rknn.py", line 231, in build
    inputs = self.rknn_base.net.get_input_layers()
AttributeError: 'NoneType' object has no attribute 'get_input_layers'

请问有遇到上述情况的同学吗,请大神指点一下,谢谢~


作者: Ptolemaeus    时间: 2021-3-12 09:26
解决了吗
作者: wangcheng    时间: 2021-5-7 09:18
我也遇到了,没解决
作者: chengliu    时间: 2021-7-7 10:15
请问现在有解决方法吗,我也遇到这个问题了
作者: wangkelin    时间: 2021-7-23 10:16
我也是,同问
作者: xxy0911    时间: 2021-9-4 11:27
我也是,同问
作者: DDX    时间: 2022-3-4 12:51

更新rknn_tools到1.7.1,应该可解决这个问题
作者: 钱钱钱    时间: 2022-3-10 16:10
请问您就解决了吗?能分享一下是怎么解决的吗?
作者: Ross    时间: 2023-4-14 15:57
同问,没解决




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3