Imported from https://github.com/saic-vul/fbrs_interactive_segmentation