pytorch-summary icon indicating copy to clipboard operation
pytorch-summary copied to clipboard

Crash on yolact summary

Open apletea opened this issue 5 years ago • 3 comments

Hi!

I am using this repo for geting model of yolact https://github.com/dbolya/yolact.

When I am trying to get summary it fallows as "AttributeError: 'list' object has no attribute 'size'".

And after applying summary this model didnt work at all. But before it inference works.

So can you help me to find the any problems here?

apletea avatar Jun 14 '19 15:06 apletea

should fix: summary[m_key]["input_shape"] = list(input[0].size()) summary[m_key]["input_shape"][0] = batch_size to #summary[m_key]["input_shape"] = list(input[0].size()) #summary[m_key]["input_shape"][0] = batch_size

ZvukZTyshyny avatar Jun 27 '19 07:06 ZvukZTyshyny

@sksq96 @ZvukZTyshyny @apletea I am too facing the same issue while trying to get the summary of Yolact model. Any idea as to how to solve this??

sicarioakki avatar Jul 24 '19 09:07 sicarioakki

Should be fixed in my Fork - see #124

TylerYep avatar Apr 24 '20 19:04 TylerYep