Skip to content

IncompatibleKeys(missing_keys=[], unexpected_keys=...) #2

Description

@vietvo89

Hi Raff

I followed your instructions to test your pre-trained model as below.

from MalConvGCT_nocat import MalConvGCT
mlgct = MalConvGCT(channels=256, window_size=256, stride=64,)
x = torch.load("malconvGCT_nocat.checkpoint")
mlgct.load_state_dict(x['model_state_dict'], strict=False)

I got a bug:
_IncompatibleKeys(missing_keys=[], unexpected_keys=['convs_1.0.weight', 'convs_1.0.bias', 'convs_atn.0.weight', 'convs_atn.0.bias'])

It seems there are something wrong and mismatch.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions