Closed ghost closed 3 years ago
I'd like to save a model from training, when I used torch. save(model, 'save_model_path.pt'), The following error occurred "AttributeError: Can't pickle local object 'STPM.init..hook_t' How can I save the model?
Hi. I think there is no need to save the model. The model itself is from torch hub. We just use pre-trained model and does not update weights.
I'd like to save a model from training,.hook_t'
How can I save the model?
when I used torch. save(model, 'save_model_path.pt'), The following error occurred "AttributeError: Can't pickle local object 'STPM.init.