Convolutional neural network: Difference between revisions
| (3 intermediate revisions by the same user not shown) | |||
| Line 105: | Line 105: | ||
;Common Types of padding | ;Common Types of padding | ||
* Zero | * Zero or Constant padding | ||
* Mirror/Reflection | * Mirror/Reflection padding | ||
* Replication | * Replication padding | ||
With convolution layers in | With convolution layers in libraries you often see these two types of padding which can be added to the conv layer directly: | ||
* <code>VALID</code> - Do not do any padding | * <code>VALID</code> - Do not do any padding | ||
* <code>SAME</code> - Apply zero padding such that the output will have resolution \(\lfloor x/stride \rfloor\). | * <code>SAME</code> - Apply zero padding such that the output will have resolution \(\lfloor x/stride \rfloor\). | ||