I tried the pytorch-summary on deeplabv3_resnet101
model = models.segmentation.deeplabv3_resnet101(pretrained=1).eval() #The .eval method will load it in inference mode.
summary(model, (3, 224, 224))
I goth the following error:
File "/Users/walidahmed/anaconda2/envs/pytorchEnv/lib/python3.7/site-packages/torchsummary/torchsummary.py", line 26, in hook
summary[m_key]["output_shape"] = list(output.size())
AttributeError: 'collections.OrderedDict' object has no attribute 'size'
I think this is because the output is an collections.OrderedDict but I do not know how to solve it.
I tried the pytorch-summary on deeplabv3_resnet101
I goth the following error: File "/Users/walidahmed/anaconda2/envs/pytorchEnv/lib/python3.7/site-packages/torchsummary/torchsummary.py", line 26, in hook summary[m_key]["output_shape"] = list(output.size()) AttributeError: 'collections.OrderedDict' object has no attribute 'size'
I think this is because the output is an collections.OrderedDict but I do not know how to solve it.
Can anyone please help?