Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- dataset
- CUDA
- pyTorch
- colab
- raspberry pi
- python3
- dlib
- TensorFlow
- ubuntu
- python
- gpu memory
- shakeratos
- download
- ppc64le
- Anaconda
- urllib
- windows
- error
- object detection
- YouTube 8M
- Windows 10
- colaboratory
- install
- linux
- face_recognition
- keras
- Deep Learning
- 딥러닝
- Jupyter notebook
- FIle
Archives
- Today
- Total
Shakerato
pytorch load pre-trained model, Missing key(s) in state_dict 본문
In Pytorch
Error
'Missing key(s) in state_dict' when loading pre-trained model (state_dict())
Reason
In training stage, Use DataParallel for multi gpu usage
In testing stage, Don't use DataParallel
Solution
1. In testing stage, Use DataParallel
2. In testing stage, model.load_state_dict(torch.load(path), strict=False)
'Research' 카테고리의 다른 글
mosh server-client as SSH, fast (0) | 2019.10.11 |
---|---|
slow texting through ssh (0) | 2019.10.10 |
Nvidia Driver and CUDA install on ppc64le Ubuntu (0) | 2019.10.07 |
apt-get error 'Couldn't create temporary file ...' (0) | 2019.10.07 |
리눅스 한글 문제 해결 ('ascii' codec can't encode characters) (0) | 2019.08.19 |
Comments