This code is for the paper "Side-output Residual Network for Object Symmetry Detection in the Wild". pdf
SRN is build on Holistically-Nested Edge Detection (HED)  with Residual Unit (RU). RU is used to compute the residual between output image and side-output of SRN. The comparision of the symmetry results of HED and SRN are shown below. The first row is from our SRN and the second row is from HED. From left to right, it illustrates the final output, the side-output1 to side-output5, respectively.
From the results, it's easily to understande that the output residual decreases orderly from the deepest side-ouput to the final output (ringht-to-left).
- Install prerequisites for Caffe (http://caffe.berkeleyvision.org/installation.html#prequequisites).
- Build HED (https://github.com/s9xie/hed). Supposing the root directory of HED is
- Copy the folder
- Download benchmark Sym-PASCAL trainning and testing set (OneDrive) or (BaiduYun). Our dataset Sym-PASCAL derived from PASCAL 2011 segmentation dataset . The annotation and statistics are detailed in the Section 3 in our paper.
- Download the Pre-trained VGG  model (VGG19). Copy it to
- Change the dataset path in '$HED/example/SRN/train_val.prototxt'
solve.pyin shell (or you could use IDE like Eclipse)
cd $HED/example/SRN/ python solver.py
- Change the dataset path in
We use the evaluation code of  to draw the PR curve. The code can be download spb-mil.
NOTE: Before evaluation, the NMS is utilized. We use the NMS code in Piotr's edges-master.
Pre-trained SRN model on Sym-PASCAL
The PR curve data for symmetry detection
The PR curve data for edge detection
 S. Xie and Z. Tu. Holistically-nested edge detection. In International Conference on Computer Vision, 2015
 M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The PASCAL Visual Object Classes Challenge 2011 (VOC2011) Results. http://www.pascal-network.org/challenges/VOC/voc2011/workshop/index.html.
 S. Tsogkas and I. Kokkinos. Learning-based symmetry detection in natural images. In European Conference on Computer Vision