def build_transformer_decoder(cfg, in_channels, mask_classification=True):
    """
    Build a instance embedding branch from `cfg.MODEL.INS_EMBED_HEAD.NAME`.
    """
    name = cfg.MODEL.ONE_FORMER.TRANSFORMER_DECODER_NAME
    return TRANSFORMER_DECODER_REGISTRY.get(name)(cfg, in_channels, mask_classification)

    Build a instance embedding branch from `cfg.MODEL.INS_EMBED_HEAD.NAME`.
    
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/oneformer_transformer_decoder.py