You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Dear Author:
Thank you for sharing your great projects and contributing your valuable creative points. I am a student of medical image classification, and I want to learn from your innovations and apply them to the densenet network. After adding CA attention, I got this error: TypeError: init() missing 1 required positional argument: ' oup'; so I changed the two parameters inp, oup of your code, as shown in the following code. Not sure if such a change has made a change in implementing your original functionality? Or, do you have any experimental cases of applying CA attention to other networks such as ResNet networks?
Sincerely look forward to your reply and wish you a happy life!
#def init(self, inp, oup, reduction=32):
def init(self,num_channels,reduction=32):
super(CoordAtt, self).init()
self.pool_h = nn.AdaptiveAvgPool2d((None, 1))
self.pool_w = nn.AdaptiveAvgPool2d((1, None))
Hello Dear Author:
Thank you for sharing your great projects and contributing your valuable creative points. I am a student of medical image classification, and I want to learn from your innovations and apply them to the densenet network. After adding CA attention, I got this error: TypeError: init() missing 1 required positional argument: ' oup'; so I changed the two parameters inp, oup of your code, as shown in the following code. Not sure if such a change has made a change in implementing your original functionality? Or, do you have any experimental cases of applying CA attention to other networks such as ResNet networks?
Sincerely look forward to your reply and wish you a happy life!
#def init(self, inp, oup, reduction=32):
def init(self,num_channels,reduction=32):
super(CoordAtt, self).init()
self.pool_h = nn.AdaptiveAvgPool2d((None, 1))
self.pool_w = nn.AdaptiveAvgPool2d((1, None))
The text was updated successfully, but these errors were encountered: