Reflection padding Conv2D
问题 I'm using keras to build a convolutional neural network for image segmentation and I want to use "reflection padding" instead of padding "same" but I cannot find a way to to do it in keras. inputs = Input((num_channels, img_rows, img_cols)) conv1=Conv2D(32,3,padding='same',kernel_initializer='he_uniform',data_format='channels_first')(inputs) Is there a way to implement a reflection layer and insert it in a keras model ? 回答1: The accepted answer above is not working in the current Keras