victoresque / pytorch-template

PyTorch deep learning projects made easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python train.py --resume path/to/checkpoint

1z1y opened this issue · comments

commented

When I trained 12 epoch, I stop the procedure;then I wrote this commend "python train.py --resume path/to/checkpoints/xxx.json", but got an error like this"_pickle.UnpicklingError: invalid load key, '{'."
Please help me ,how should I use this command? And what's the purpose of this command?

commented

I solved this problem. I used the wrong command before, the parameter 'resume' should use the path of ". pth".