Skip to content

Conversation

@SoumyadeepB
Copy link

Some pre-trained models like the deeplabv3_resnet50 returns an OrderedDict containing the semantic mask and the auxillary loss as two separate Tensors under the keys 'out' and 'aux'.

Usage of torchsummary with such models was not compatible since OrderedDict had not been considered as a potential output type.

Error thrown: 'collections.OrderedDict' object has no attribute 'size'

This issue has now been fixed.

Some pre-trained models like the deeplabv3_resnet50 returns an OrderedDict containing the semantic mask and the auxillary loss as two separate Tensors under the keys 'out' and 'aux' (https://pytorch.org/hub/pytorch_vision_deeplabv3_resnet101/). 

Usage of torchsummary with such models was not compatible since OrderedDict had not been considered as a potential output type. This issue has now been fixed.
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

Successfully merging this pull request may close these issues.

1 participant