SSD训练阶段加载初始model失败
Created by: 930083287
Traceback (most recent call last): File "train_add.py", line 87, in init_model_path=model_path) File "train_add.py", line 25, in train parameters.init_from_tar(gzip.open(init_model_path)) File "/home/users/zhaohui15/miniconda2/lib/python2.7/site-packages/paddle/v2/parameters.py", line 402, in init_from_tar self.set(pname, tar_param.get(pname)) File "/home/users/zhaohui15/miniconda2/lib/python2.7/site-packages/paddle/v2/parameters.py", line 270, in set self.setitem(key=parameter_name, value=value) File "/home/users/zhaohui15/miniconda2/lib/python2.7/site-packages/paddle/v2/parameters.py", line 223, in setitem (shape, value.shape)) ValueError: Value shape mismatch, expect (1, 525312), should (1, 290304)
当我修改config中的__C.CLASS_NUM参数由21改为其他值时,出现上述错误,paddle平台使用的是v2