lib/model/utils/config.py
def cfg_from_file(filename):
  """Load a config file and merge it into the default options."""
  import yaml
  with open(filename, 'r') as f:
    yaml_cfg = edict(yaml.load(f))

  _merge_a_into_b(yaml_cfg, __C)
Load a config file and merge it into the default options.
Load a config file and merge it into the default options.
Load a config file and merge it into the default options .
def cfg_from_file(filename):
  import yaml
  with open(filename, 'r') as f:
    yaml_cfg = edict(yaml.load(f))
  _merge_a_into_b(yaml_cfg, __C)
def cfg_from_file ( filename ) : import yaml with open ( filename , 'r' ) as f : yaml_cfg = edict ( yaml . load ( f ) ) _merge_a_into_b ( yaml_cfg , __C )
Load a config file and merge it into the default options.
Load a config file and merge it into the default options .
"""Load a config file and merge it into the default options."""
filename