Imported from https://github.com/EdwardTyantov/ultrasound-nerve-segmentation