Toybrick

标题: Syntax error in input! LexToken [打印本页]

作者: 510    时间: 2022-3-21 22:07
标题: Syntax error in input! LexToken
想问一下这个错误应该怎么解决

Syntax error in input! LexToken(NAMED_IDENTIFIER,'str',5,237)
done
--> Building model
W Genreate input meta fail, please check model.
W External input meta file "C:\Users\OUZHAN~1\AppData\Local\Temp\tmpewbxkipj\CNN_weight120ptjit_inputmeta.yml" is not exists.
Traceback (most recent call last):
  File "C:/Users/OuZhanHong/Desktop/U-Net_multiclass/pttorknn.py", line 31, in <module>
    ret = rknn.build(do_quantization=False,pre_compile=False, dataset='./torknn.txt')
  File "D:\anaconda3\envs\rknn\lib\site-packages\rknn\api\rknn.py", line 240, 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 791, in rknn.api.rknn_base.RKNNBase.build
  File "rknn\api\rknn_base.py", line 2328, in rknn.api.rknn_base.RKNNBase._generate_inputmeta
IndexError: list index out of range


pytorch环境为1.2.0,rknn版本为1.3.2

作者: 510    时间: 2022-3-21 22:09
使用了pytorch的pt模型转rknn
作者: bobby_jiang    时间: 2022-4-26 09:57
rknn和rknn toolkit都升级到最新1.7.1




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