Toybrick

标题: PC模型转换 出错 是我的虚拟机问题吗 [打印本页]

作者: toybrickuser    时间: 2020-11-19 12:09
标题: PC模型转换 出错 是我的虚拟机问题吗
--> 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    时间: 2020-12-21 18:55
同这个错
作者: Ptolemaeus    时间: 2021-3-12 09:27
解决了吗?




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