sadeepj / crfasrnn_keras

CRF-RNN Keras/Tensorflow version
http://crfasrnn.torr.vision
MIT License
603 stars 169 forks source link

Cropping Layers #59

Closed JadBatmobile closed 5 years ago

JadBatmobile commented 5 years ago

Can you explain the purpose of the Cropping2D layers?

sadeepj commented 5 years ago

Due to the padding operations done in the earlier layers of FCN network (see, for example, https://github.com/sadeepj/crfasrnn_keras/blob/master/src/crfrnn_model.py#L46), the output segmentation masks/logits have a boarder around them and are not aligned with the input image. Cropping2D layers are used to remove these boarders. Please refer to the FCN paper for more details.