residual convolution block
(inputs)
| 57 | |
| 58 | # Residual Block |
| 59 | def resblock(inputs): |
| 60 | """ |
| 61 | residual convolution block |
| 62 | """ |
| 63 | out = layers.Conv2D(64, 3, padding="same", activation="relu")(inputs) |
| 64 | out = layers.Conv2D(64, 3, padding="same")(out) |
| 65 | out = layers.Add()([inputs, out]) |
| 66 | return out |
| 67 | |
| 68 | # Upsampling Block |
| 69 | def upsampling(inputs, factor=2, **kwargs): |