MAML-Pytorch icon indicating copy to clipboard operation
MAML-Pytorch copied to clipboard

Something wrong in the config of the last max pooling layer.

Open MrDavidG opened this issue 4 years ago • 1 comments

The setting of the last pooling layer is ('max_pool2d', [2, 1, 0]), which I think should be [2, 2, 0]. Maybe this is the reason of the poor performance?

MrDavidG avatar Aug 07 '20 12:08 MrDavidG

From the original work, it seems that the "same" padding is used instead of the "valid" padding. Therefore the padding in the config in miniimagenet_train.py should change from 0 to 1, i.e. '('conv2d', [32, 3, 3, 3, 1, 0])' to ('conv2d', [32, 3, 3, 3, 1, 1]), After changing the padding in the config from 0 to 1, one can change the config of ('max_pool2d', [2, 1, 0]) to ('max_pool2d', [2, 2, 0]).

IandRover avatar May 11 '21 05:05 IandRover