knkski / atai

Analyze This! AI competition
1 stars 1 forks source link

Investigate zero padding #13

Open knkski opened 6 years ago

knkski commented 6 years ago

Zero padding can sometimes be useful when dealing with CNNs. We should investigate how/where to use them

knkski commented 6 years ago

This graph shows the effects of zero padding on a simple CNN (2x64 conv, 2x128 conv, 2x4096 dense):

zeropadding

The dark green line shows no zero padding, the yellow line shows zero padding before the initial conv layer, the line green line shows zero padding before each set of conv layers, and the purple line shows zero padding before each conv layer.

Based off of this graph, it looks like zero padding before the initial conv layer is useful and improves performance by about 0.2%. The other zero padding layers either had no effect or worsened performance, however.