![PyTorch] 5. Pytorch Visualization, Splitting dataset, Save and Load a Model | by jun94 | jun-devpBlog | Medium PyTorch] 5. Pytorch Visualization, Splitting dataset, Save and Load a Model | by jun94 | jun-devpBlog | Medium](https://miro.medium.com/v2/resize:fit:1400/1*LYTGLO9QhIX6FF3Yj_Ra-w.png)
PyTorch] 5. Pytorch Visualization, Splitting dataset, Save and Load a Model | by jun94 | jun-devpBlog | Medium
![RuntimeError: xxx.pth is a zip archive (did you mean to use torch.jit.load()?)_runtimeerror: model_data/unet_vgg_medical_origin.p-CSDN博客 RuntimeError: xxx.pth is a zip archive (did you mean to use torch.jit.load()?)_runtimeerror: model_data/unet_vgg_medical_origin.p-CSDN博客](https://img-blog.csdnimg.cn/20210506133922517.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3N0dWR5ZWJveQ==,size_16,color_FFFFFF,t_70)
RuntimeError: xxx.pth is a zip archive (did you mean to use torch.jit.load()?)_runtimeerror: model_data/unet_vgg_medical_origin.p-CSDN博客
![python - torch.save(model.state_dict()) line comes error while model complated train and trying to save it how can i solve? - Stack Overflow python - torch.save(model.state_dict()) line comes error while model complated train and trying to save it how can i solve? - Stack Overflow](https://i.stack.imgur.com/kk8e8.png)
python - torch.save(model.state_dict()) line comes error while model complated train and trying to save it how can i solve? - Stack Overflow
torch.save` and `torch.load` fail to roundtrip with `io.BytesIO` · Issue #66548 · pytorch/pytorch · GitHub
![torch.load(..., weights_only=True)` currently raises a Deprecation warning + [proposal] `weights_only=True` should become default for safe legacy- loading pickles · Issue #52181 · pytorch/pytorch · GitHub torch.load(..., weights_only=True)` currently raises a Deprecation warning + [proposal] `weights_only=True` should become default for safe legacy- loading pickles · Issue #52181 · pytorch/pytorch · GitHub](https://user-images.githubusercontent.com/98330/108770171-47f9ed00-755a-11eb-9ad6-c63dea6b3e51.png)