Toybrick

python将caffemodel转换为rknn过程中报错

hzdxs

注册会员

积分
168
楼主
发表于 2020-6-11 16:38:35    查看: 7288|回复: 1 | [复制链接]    打印 | 只看该作者
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
    stream.write(msg)
ValueError: I/O operation on closed file.
Call stack:
  File "gen_rknn.py", line 14, in <module>
    ret = rknn.build(do_quantization=True, dataset='./dataset.txt')
  File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 157, in build
    ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
  File "/usr/local/lib/python3.5/dist-packages/rknn/base/RKNNlib/app/tensorzone/tensorprovider.py", line 147, in init_session
    self.queue_task = QueueTask(sess, self.data, feed, image_tensor, image_shape)
  File "/usr/local/lib/python3.5/dist-packages/rknn/base/RKNNlib/app/tensorzone/tensorprovider.py", line 27, in __init__
    self.__init_queue(min(512,len(data)), image_tensor, image_shape)
  File "/usr/local/lib/python3.5/dist-packages/rknn/base/RKNNlib/app/tensorzone/tensorprovider.py", line 46, in __init_queue
    queue = tf.FIFOQueue(capacity = capacity,
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation_wrapper.py", line 119, in __getattr__
    _call_location(), full_name, rename)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
    get_logger().warning(msg, *args, **kwargs)
Message: 'From %s: The name %s is deprecated. Please use %s instead.\n'
Arguments: ('/usr/local/lib/python3.5/dist-packages/rknn/base/RKNNlib/app/tensorzone/tensorprovider.py:46', 'tf.FIFOQueue', 'tf.queue.FIFOQueue')

回复

使用道具 举报

hzdxs

注册会员

积分
168
沙发
 楼主| 发表于 2020-6-12 10:22:00 | 只看该作者
附件是转换日志以及rknn

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

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

本版积分规则

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


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