def add_gdl_config(cfg):
    """
    Add config for GDL. 
    """

    cfg.MODEL.ROI_HEADS.NAME = "Res5ROIHeads"
    cfg.MODEL.ROI_HEADS.FREEZE_FEAT = False
    cfg.MODEL.ROI_HEADS.ENABLE_DECOUPLE = False
    cfg.MODEL.ROI_HEADS.BACKWARD_SCALE = 1.0
    cfg.MODEL.ROI_HEADS.OUTPUT_LAYER = "FastRCNNOutputLayers"
    cfg.MODEL.ROI_HEADS.CLS_DROPOUT = False
    cfg.MODEL.ROI_HEADS.DROPOUT_RATIO = 0.8
    cfg.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION = 7
    
    cfg.TEST.PCB_ENABLE = False
    cfg.TEST.PCB_MODELTYPE = 'resnet'             # res-like
    cfg.TEST.PCB_MODELPATH = ""
    cfg.TEST.PCB_ALPHA = 0.50
    cfg.TEST.PCB_UPPER = 1.0
    cfg.TEST.PCB_LOWER = 0.05 
    cfg.SOLVER.WEIGHT_DECAY = 5e-5

    cfg.MODEL.PROPOSAL_GENERATOR.FREEZE = False
    cfg.MODEL.PROPOSAL_GENERATOR.ENABLE_DECOUPLE = False
    cfg.MODEL.PROPOSAL_GENERATOR.BACKWARD_SCALE=1.0

    cfg.MODEL.BACKBONE.FREEZE_AT = 3
    return cfg