'''setrmla_vitlarge_ade20k'''
import copy
from .base_cfg import SEGMENTOR_CFG
from .._base_ import DATASET_CFG_ADE20k_512x512, DATALOADER_CFG_BS16


# deepcopy
SEGMENTOR_CFG = copy.deepcopy(SEGMENTOR_CFG)
# modify dataset config
SEGMENTOR_CFG['dataset'] = DATASET_CFG_ADE20k_512x512.copy()
# modify dataloader config
SEGMENTOR_CFG['dataloader'] = DATALOADER_CFG_BS16.copy()
# modify scheduler config
SEGMENTOR_CFG['scheduler']['max_epochs'] = 130
# modify other segmentor configs
SEGMENTOR_CFG.update({
    'type': 'SETRMLA',
    'num_classes': 150,
    'head': {
        'in_channels_list': (1024, 1024, 1024, 1024), 'mla_feats_channels': 256, 'mla_up_channels': 128,
        'feats_channels': 512, 'scale_factor': 4, 'dropout': 0, 'norm_cfg': {'type': 'LayerNorm', 'eps': 1e-6},
    },
    'auxiliary': [
        {'in_channels': 256, 'out_channels': 256, 'dropout': 0, 'num_convs': 2, 'scale_factor': 4, 'kernel_size': 3},
        {'in_channels': 256, 'out_channels': 256, 'dropout': 0, 'num_convs': 2, 'scale_factor': 4, 'kernel_size': 3},
        {'in_channels': 256, 'out_channels': 256, 'dropout': 0, 'num_convs': 2, 'scale_factor': 4, 'kernel_size': 3},
    ],
})
SEGMENTOR_CFG['work_dir'] = 'setrmla_vitlarge_ade20k'
SEGMENTOR_CFG['logfilepath'] = 'setrmla_vitlarge_ade20k/setrmla_vitlarge_ade20k.log'
SEGMENTOR_CFG['resultsavepath'] = 'setrmla_vitlarge_ade20k/setrmla_vitlarge_ade20k_results.pkl'