zhouzj
zhouzj
> 2022-09-02 10:39:31,795-INFO: Now translating model from onnx to paddle. >2022-09-02 10:39:31,795-WARNING: init() missing 1 required positional argument: 'enable_onnx_checker' 该问题是x2paddle和paddleslim版本不一致导致的; 如果使用的是paddleslim develop版,请安装x2paddle1.3.9; 如果使用的是paddleslim2.3版,则安装x2paddle1.3.8
在mac(intel)环境下,也遇到类似的错误,conv中权重形状和输出形状对应不上,如下所示: 读取的conv信息: conv2d in=(1, 2496, 7, 7) weight=(704, 2496, 1, 1) out=(1, 2560, 7, 7) pad=0 stride=1 group=1 dilation=1 quant=None bit_length=None latency=19.393 经实测发现,该conv正确的weight形状应为(2560,2496,1,1),说明out形状是正确的. 该问题带来的风险: 1. 在提取延时表的数据作为预测器训练集时,如果通过weight去读取该conv的输入、输出通道,会产生错误数据,影响预测器训练如下所示: conv2d in=(1, 960, 7,...
Thanks! We have submitted pr(https://github.com/PaddlePaddle/PaddleSlim/pull/1324) to fix the issue
> .DS_Store文件删除,或者加到.gitignore中 done
Please try to set the distillation node explicitly, or replace the distillation loss and try again. For details on how to set up the distillation node, please refer to this...
麻烦提供下剪枝后的模型文件(*.pdmodel) @SunYF-0729
直接将文件拽入输入框即可~ > > 麻烦提供下剪枝后的模型文件(*.pdmodel) @SunYF-0729 > > 这里怎么提供
It's a problem of the dataset. 'data[0]' is to take out the image data in it, please check whether the type of 'data' in the reader_wrapper is 'list'. Or try...
可以通过netron.app 可视化pdmodel文件,查看模型 input name的名字,再在config中做出相应修改~
这个config是指自动压缩的配置文件,一般是在config目录下的yaml文件,其中Global里会有input name的配置; 如果没有,则是代码会自动根据模型input name进行配置,这时候可以在run.py出错的位置,打印input name,检查是否是dataloader读取的dict数据,没有相应的key值,然后再去相应修改dataloader读取的数据内容;