CT-Lung-Segmentation icon indicating copy to clipboard operation
CT-Lung-Segmentation copied to clipboard

Missing key(s) in state_dict

Open cuongnc220592 opened this issue 3 years ago • 0 comments

Hi author @Adamdad

I have a problem when testing with ResUnet.

device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = ResUNet().to(device) #if torch.cuda.device_count() > 1: model = nn.DataParallel(model).to(device) model_path = './checkpoint/ResUnet/best.pth.tar' print("=> loading checkpoint '{}'".format(model_path)) checkpoint = torch.load(model_path, map_location="cpu")

The output here. Could you please guide me how to fix these problem. Thank you very much, Best.

Screen Shot 2021-06-17 at 10 53 08

cuongnc220592 avatar Jun 17 '21 03:06 cuongnc220592