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

deeplabv3_resnet50 summary throws an error #175

Open
pgrudzien12 opened this issue Aug 12, 2021 · 1 comment
Open

deeplabv3_resnet50 summary throws an error #175

pgrudzien12 opened this issue Aug 12, 2021 · 1 comment

Comments

@pgrudzien12
Copy link

Maybe I'm not understanding something but with the following code summary throws an error:

import torch
from torchvision import models
from torchsummary import summary

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = models.segmentation.deeplabv3_resnet50(pretrained=True).eval().to(device)

summary(model, (3, 224, 224))

Actual:
Throws 'collections.OrderedDict' object has no attribute 'size'

Expected:
Show the architecture

@SoumyadeepB
Copy link

This issue has been fixed. Please refer to this pull request.

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

2 participants