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
File "OAAT/perceptual_advex/perceptual_attack_adv.py", line 65, in _make_layer
layers.append(block(i == 0 and in_planes or out_planes, out_planes, i == 0 and stride or 1, dropRate))
TypeError: BasicBlock.__init__() takes from 3 to 4 positional arguments but 5 were given
And I think the problem is, that there are two definitions von BasicBlock in perceptual_attack_adv.py:
The one for WideResNet:
This should be fixed by renaming one or both of them to something like WideResBasicBlock or ResBasicBlock. I'll try it myself now, and then I will tell my result.
The text was updated successfully, but these errors were encountered:
I got this error after the training finished:
And I think the problem is, that there are two definitions von BasicBlock in perceptual_attack_adv.py:
The one for WideResNet:
The one for ResNet:
This should be fixed by renaming one or both of them to something like WideResBasicBlock or ResBasicBlock. I'll try it myself now, and then I will tell my result.
The text was updated successfully, but these errors were encountered: