Loading model for prediction yields RuntimeError: Error(s) in loading state_dict #12621
-
|
Hi, Big Thanks already! LightningModule constructor: Saving is done automatically using this checkpoint: loading checkpoint: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
should be: model = ImageRegressor.load_from_checkpoint(path, pretrained=True, tune_fc_only=True, model='densenet')check out the examples and description here: https://pytorch-lightning.readthedocs.io/en/latest/common/lightning_module.html#load-from-checkpoint slightly similar discussion: #12399 |
Beta Was this translation helpful? Give feedback.
should be:
check out the examples and description here: https://pytorch-lightning.readthedocs.io/en/latest/common/lightning_module.html#load-from-checkpoint
slightly similar discussion: #12399