You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the test, the mode loading shape does not match
Traceback (most recent call last):
File "trainer.py", line 228, in
main()
File "trainer.py", line 149, in main
model = DepthLitModel.load_from_checkpoint(CKPT_PATH, config=config)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 157, in load_from_checkpoint
model = cls._load_model_state(checkpoint, strict=strict, **kwargs)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 205, in _load_model_state
model.load_state_dict(checkpoint['state_dict'], strict=strict)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1672, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for DepthLitModel:
size mismatch for net.coords: copying a param with shape torch.Size([8, 480, 640, 2]) from checkpoint, the shape in current model is torch.Size([16, 480, 640, 2]).
The text was updated successfully, but these errors were encountered:
When I run the test, the mode loading shape does not match
Traceback (most recent call last):
File "trainer.py", line 228, in
main()
File "trainer.py", line 149, in main
model = DepthLitModel.load_from_checkpoint(CKPT_PATH, config=config)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 157, in load_from_checkpoint
model = cls._load_model_state(checkpoint, strict=strict, **kwargs)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 205, in _load_model_state
model.load_state_dict(checkpoint['state_dict'], strict=strict)
File "/data/home/wuhaifeng/anaconda3/envs/p3depth/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1672, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for DepthLitModel:
size mismatch for net.coords: copying a param with shape torch.Size([8, 480, 640, 2]) from checkpoint, the shape in current model is torch.Size([16, 480, 640, 2]).
The text was updated successfully, but these errors were encountered: