Skip to content

error while loading pretrained weights #2

@sinAshish

Description

@sinAshish

I get this error while loading the weights:

RuntimeError                              Traceback (most recent call last)
<ipython-input-32-d82b0689f3c8> in <module>()
----> 1 model=model.load_state_dict(weights)

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
    767         if len(error_msgs) > 0:
    768             raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
--> 769                                self.__class__.__name__, "\n\t".join(error_msgs)))
    770 
    771     def _named_members(self, get_members_fn, prefix='', recurse=True):

RuntimeError: Error(s) in loading state_dict for NASNet:
	Missing key(s) in state_dict: "aux_features.2.weight", "aux_features.3.weight", "aux_features.3.bias", "aux_features.3.running_mean", "aux_features.3.running_var", "aux_features.5.weight", "aux_features.6.weight", "aux_features.6.bias", "aux_features.6.running_mean", "aux_features.6.running_var", "aux_linear.weight", "aux_linear.bias". 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions