This repository contains all the code for the paper "Robust and generalizable segmentation of human functional tissue units".