Reference-guided Pseudo-Label Generation for Medical Semantic Segmentation