Skip to content

Pretrained Model can't load? #9

@HeConnor

Description

@HeConnor

Hello,

I got error when I load pretrained model:

monai: v0.8.1

Error(s) in loading state_dict for UNETR:
	Missing key(s) in state_dict: "vit.patch_embedding.cls_token", "encoder2.blocks.0.1.conv3.conv.weight", "encoder2.blocks.1.1.conv3.conv.weight", "encoder3.blocks.0.1.conv3.conv.weight". 
  • ! another question: When T1 images are used as network inputs, it need to be normalized from [0, 255] to [0, 1]; does this mean the maximum value of T1 images is only 255 ? ?
parser.add_argument("--a_max_value", type=int, default=255, help="maximum image intensity")

Any help is welcome.

Thanks !

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