def build_sem_seg_head(cfg, input_shape):
    """
    Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
    """
    name = cfg.MODEL.SEM_SEG_HEAD.NAME
    return SEM_SEG_HEADS_REGISTRY.get(name)(cfg, input_shape)

    Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
    
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/semantic_seg.py