Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing key(s) in state_dict #1

Open
cuongnc220592 opened this issue Jun 17, 2021 · 0 comments
Open

Missing key(s) in state_dict #1

cuongnc220592 opened this issue Jun 17, 2021 · 0 comments

Comments

@cuongnc220592
Copy link

cuongnc220592 commented Jun 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant