victoresque / pytorch-template

PyTorch deep learning projects made easy.
MIT License
4.75k stars 1.09k forks source link

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

Closed 1z1y closed 1 year ago

1z1y commented 1 year ago

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?

1z1y commented 1 year ago

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