<gh_stars>0
"""
根据配置名称返回配置对象
"""

from .store import det_train_resdcn18_4x
from .store import det_val_resdcn18_4x
from .store import det_train_resdcn18_2x
from .store import det_val_resdcn18_2x
from .store import det_train_gridnet_ball
from .store import det_val_gridnet_ball
from .store import det_train_gridnet_player
from .store import det_val_gridnet_player

from .store import mot_train_main
from .store import mot_val_main

_config_modules = {
    "det_train_resdcn18_4x": det_train_resdcn18_4x.get_config,
    "det_val_resdcn18_4x": det_val_resdcn18_4x.get_config,
    "det_train_resdcn18_2x": det_train_resdcn18_2x.get_config,
    "det_val_resdcn18_2x": det_val_resdcn18_2x.get_config,
    "det_train_gridnet_player": det_train_gridnet_player.get_config,
    "det_val_gridnet_player":det_val_gridnet_player.get_config,
    "det_train_gridnet_ball":det_train_gridnet_ball.get_config,
    "det_val_gridnet_ball": det_val_gridnet_ball.get_config,
    "mot_train_main": mot_train_main.get_config,
    "mot_val_main": mot_val_main.get_config,
}

def get_config(exp_cfg_name):
    assert exp_cfg_name in _config_modules.keys()
    # 返回对应的实验配置类
    return _config_modules[exp_cfg_name]()
"""
根据配置名称返回配置对象
"""

from .store import det_train_resdcn18_4x
from .store import det_val_resdcn18_4x
from .store import det_train_resdcn18_2x
from .store import det_val_resdcn18_2x
from .store import det_train_gridnet_ball
from .store import det_val_gridnet_ball
from .store import det_train_gridnet_player
from .store import det_val_gridnet_player

from .store import mot_train_main
from .store import mot_val_main

_config_modules = {
    "det_train_resdcn18_4x": det_train_resdcn18_4x.get_config,
    "det_val_resdcn18_4x": det_val_resdcn18_4x.get_config,
    "det_train_resdcn18_2x": det_train_resdcn18_2x.get_config,
    "det_val_resdcn18_2x": det_val_resdcn18_2x.get_config,
    "det_train_gridnet_player": det_train_gridnet_player.get_config,
    "det_val_gridnet_player":det_val_gridnet_player.get_config,
    "det_train_gridnet_ball":det_train_gridnet_ball.get_config,
    "det_val_gridnet_ball": det_val_gridnet_ball.get_config,
    "mot_train_main": mot_train_main.get_config,
    "mot_val_main": mot_val_main.get_config,
}

def get_config(exp_cfg_name):
    assert exp_cfg_name in _config_modules.keys()
    # 返回对应的实验配置类
    return _config_modules[exp_cfg_name]()
根据配置名称返回配置对象 # 返回对应的实验配置类