Toybrick

PC模型转换 出错 是我的虚拟机问题吗

toybrickuser

新手上路

积分
43
楼主
发表于 2020-11-19 12:09:17    查看: 10422|回复: 2 | [复制链接]    打印 | 只看该作者
--> Loading model
W:tensorflow:From /home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/rknn/api/rknn.py:132: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

W:tensorflow:From /home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/rknn/api/rknn.py:132: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2020-11-18 19:59:10.554940: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
W:tensorflow:From /home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/rknn/api/rknn.py:132: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

E Catch exception when loading darknet model: ./yolov3_416x416.cfg!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 616, in rknn.api.rknn_base.RKNNBase.load_darknet
E   File "rknn/api/rknn_base.py", line 1700, in rknn.api.rknn_base.RKNNBase._save_net_to_temp_dir
E   File "rknn/base/RKNNlib/RKNNnet.py", line 391, in rknn.base.RKNNlib.RKNNnet.RKNNNet.save_data
E   File "rknn/base/RKNNlib/RKNNnet.py", line 405, in rknn.base.RKNNlib.RKNNnet.RKNNNet._save_old_data
E   File "rknn/base/RKNNlib/RKNNnet.py", line 414, in rknn.base.RKNNlib.RKNNnet.RKNNNet._save_old_data
E   File "/home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/numpy/lib/npyio.py", line 536, in save
E     pickle_kwargs=pickle_kwargs)
E   File "/home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/numpy/lib/format.py", line 629, in write_array
E     pickle.dump(array, fp, protocol=2, **pickle_kwargs)
E MemoryError
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.
Traceback (most recent call last):
  File "rknn_transform_416x416.py", line 27, in <module>
    rknn.build(do_quantization=True, dataset='./dataset_416x416.txt', pre_compile=True)
  File "/home/admin0/anaconda3/envs/tensotflow/lib/python3.6/site-packages/rknn/api/rknn.py", line 249, in build
    ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile, batch_size=rknn_batch_size)
  File "rknn/api/rknn_base.py", line 875, in rknn.api.rknn_base.RKNNBase.build
  File "rknn/api/rknn_base.py", line 2903, in rknn.api.rknn_base.RKNNBase._generate_inputmeta
  File "/home/admin0/anaconda3/envs/tensotflow/lib/python3.6/posixpath.py", line 122, in splitext
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

回复

使用道具 举报

fly

注册会员

积分
70
沙发
发表于 2020-12-21 18:55:04 | 只看该作者
同这个错
回复

使用道具 举报

Ptolemaeus

中级会员

积分
205
板凳
发表于 2021-3-12 09:27:08 | 只看该作者
解决了吗?
回复

使用道具 举报

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

本版积分规则

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


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