I'm reading a recent published paper, but it lacks reproducible architecture diagram. So I'm trying to make sense of the implementation described below:

Our multi-task network has an encoder-decoder structure based on ResNet-18. The decoder is composed of four deconvolution layers to output the final feature map which has 1/4 resolution of the input image. Similar to U-Net, we add skip connections between encoder and decoder to fuse the features at different scales. Additionally, dilated convolution and Non-Local block are added in the last two residual blocks of encoder. Three heads are attached on top of the last feature map for keypoint detection, line feature and region feature regression respectively. We use L1 loss for line feature and region feature regression, and cross-entropy loss for keypoint detection with weights of each loss set to 1.


This non-local block is added after each of the last two residual blocks of our encoder network.

And per my understanding, this is a resnet + unet + custom blocks networks.

My questions:

  1. Is this basically Res-Unet, as described by this diagram, except that I added two extra blocks (Non-local block) after each last two residual block in encoder?

enter image description here

  1. What they mean by "Three heads are attached on top of the last feature map"? What are the heads?
  2. If the final output is a feature map (2D), how does one detect the keypoints since it's in set of (x, y) coordinates?

1 Answer 1

  1. While the architecture described is similar to that shown in the diagram (which I assume you got from Zhang et al.'s Road Extraction by Deep Residual U-Net), the description says the architecture is based on ResNet18. So I'd expected it to have more residual blocks than Res-Unet (which only has 15 conv layers). Also, the encoder needs to have more residual blocks than the decoder, as the output from the decoder is lower resolution than the input to the encoder.

  2. The 'heads' are the output layers. These take the outputs from the final feature map as input, and then output the detected keypoints, line features, and region features (one head for each output). The description doesn't give the activation functions for these layers, but from the rest of the description could be softmax for the keypoints and linear for the regression features.

  3. Hopefully it's clear now that the feature map from the ResNet part of the architecture is not the final output. There is another layer (the heads) that produces the keypoints and other outputs.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.