learnable segmentation or learnable edge detection
There is a benchmark code and test and learning dataset to perform image segmentation with ground truth dataset at Berkeley website and the code in the same place.