SA-Net icon indicating copy to clipboard operation
SA-Net copied to clipboard

Getting error

Open DeviSPhd opened this issue 3 years ago • 2 comments

when using sa_layer in deeplearning model getting following error, kindly help to me, solve this x = x.reshape(b * self.groups, -1, h, w) RuntimeError: shape '[64, -1, 64, 64]' is invalid for input of size 327680 kindly solve this

DeviSPhd avatar Nov 06 '21 11:11 DeviSPhd

这个应该是分组的组数不能被channel维度整除造成的,可以尝试较小的分组数

wofmanaf avatar Nov 12 '21 07:11 wofmanaf

Thank you very much for your response

On Fri, 12 Nov 2021, 1:10 pm zhql, @.***> wrote:

这个应该是分组的组数不能被channel维度整除造成的,可以尝试较小的分组数

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wofmanaf/SA-Net/issues/16#issuecomment-966890144, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATPSOBBJOTDSRMQGCO23IS3ULTAIJANCNFSM5HPQ3UVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DeviSPhd avatar Nov 12 '21 07:11 DeviSPhd