src/config_handler.py
def override_config(override=None, config=None):
    """ Override params of config YAML. if override key doesn't exist
        it will throw Non-existent key.

    Args:
        override (str): String of key-value pairs.

        config: config object of type yacs.config.CfgNode

        Examples:
            >>> override = "optimizer.args.lr=0.00005 pretrained=False"

    """
    logger.debug(f" config before overriding {config}")
    tokens = override.split()
    merge_list = []
    for token in tokens:
        merge_list.extend(token.split(_EQUAL_STR))
    logger.info(f" overriding key-values {merge_list}")
    config.merge_from_list(merge_list)
    logger.info(f" overriding completed, config after override{config}")

    return config
 Override params of config YAML. if override key doesn't exist
        it will throw Non-existent key.

    Args:
        override (str): String of key-value pairs.

        config: config object of type yacs.config.CfgNode

        Examples:
            >>> override = "optimizer.args.lr=0.00005 pretrained=False"

    
Override params of config YAML. if override key doesn't exist
it will throw Non-existent key.
Override params of config YAML . if override key doesn ' t exist it will throw Non - existent key .
def override_config(override=None, config=None):
    logger.debug(f" config before overriding {config}")
    tokens = override.split()
    merge_list = []
    for token in tokens:
        merge_list.extend(token.split(_EQUAL_STR))
    logger.info(f" overriding key-values {merge_list}")
    config.merge_from_list(merge_list)
    logger.info(f" overriding completed, config after override{config}")
    return config
def override_config ( override = None , config = None ) : logger . debug ( f" config before overriding {config}" ) tokens = override . split ( ) merge_list = [ ] for token in tokens : merge_list . extend ( token . split ( _EQUAL_STR ) ) logger . info ( f" overriding key-values {merge_list}" ) config . merge_from_list ( merge_list ) logger . info ( f" overriding completed, config after override{config}" ) return config
Override params of config YAML.
Override params of config YAML .
""" Override params of config YAML. if override key doesn't exist
        it will throw Non-existent key.

    Args:
        override (str): String of key-value pairs.

        config: config object of type yacs.config.CfgNode

        Examples:
            >>> override = "optimizer.args.lr=0.00005 pretrained=False"

    """
override
String of key-value pairs.
String of key - value pairs .
config
config object of type yacs.config.CfgNode
config object of type yacs . config . CfgNode
Examples
>>> override = "optimizer.args.lr=0.00005 pretrained=False"
>>> override = " optimizer . args . lr = 0 . 00005 pretrained = False "