模型还原训练问题,修改skpt.meta
Created by: ARDUJS
环境
- AI Studio
- paddle 1.7.2
- paddlehub 1.6
- python 3.7
意图
模型训练到了51000step,我想把模型还原到41000step,然后我修改了skpt.meta文件,修改后报错
然后我还原skpt.meta文件,把其中41000更正为51000,依旧报错
报错内容
File "/home/aistudio/work/R_3/Main.py", line 144, in <module>
seq_label_task.finetune_and_eval()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 863, in finetune_and_eval
return self.finetune(do_eval=True)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 878, in finetune
self.init_if_necessary()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 366, in init_if_necessary
if not self.load_checkpoint():
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 832, in load_checkpoint
main_program=self.main_program)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlehub/finetune/checkpoint.py", line 37, in load_checkpoint
ckpt.ParseFromString(f.read())
google.protobuf.message.DecodeError: Error parsing message