Imported from https://github.com/IlliaOvcharenko/lung-segmentation