Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rbgirshick/yacs
/ functions
Functions
56 in github.com/rbgirshick/yacs
⨍
Functions
56
◇
Types & classes
6
↓ 20 callers
Function
get_cfg
(cls=CN)
yacs/tests.py:20
↓ 14 callers
Function
_assert_with_logging
(cond, msg)
yacs/config.py:542
↓ 10 callers
Method
merge_from_file
Load a yaml config file and merge it this CfgNode.
yacs/config.py:209
↓ 10 callers
Method
merge_from_other_cfg
Merge `cfg_other` into this CfgNode.
yacs/config.py:215
↓ 7 callers
Method
dump
Dump to a string.
yacs/config.py:188
↓ 5 callers
Method
clone
Recursively copy this CfgNode.
yacs/config.py:273
↓ 5 callers
Method
load_cfg
Load a cfg. Args: cfg_file_obj_or_str (str or file): Supports loading from: - A file obje
yacs/config.py:343
↓ 5 callers
Method
merge_from_list
Merge config (keys, values) in a list (e.g., from command line) into this CfgNode. For example, `cfg_list = ['FOO.BAR', 0.5]`.
yacs/config.py:219
↓ 4 callers
Method
freeze
Make this CfgNode and all of its children immutable.
yacs/config.py:248
↓ 4 callers
Method
is_frozen
Return mutability.
yacs/config.py:256
↓ 3 callers
Function
_valid_type
(value, allow_cfg_node=False)
yacs/config.py:448
↓ 2 callers
Function
_check_and_coerce_cfg_value_type
Checks that `replacement`, which is intended to replace `original` is of the right type. The type is correct if it matches exactly or is one of a
yacs/config.py:494
↓ 2 callers
Method
_decode_cfg_value
Decodes a raw config value (e.g., from a yaml config files or command line argument) into a Python object. If the value is a
yacs/config.py:405
↓ 2 callers
Method
_immutable
Set immutability to is_immutable and recursively apply the setting to all nested CfgNodes.
yacs/config.py:260
↓ 2 callers
Method
_load_cfg_from_yaml_str
Load a config from a YAML string encoding.
yacs/config.py:382
↓ 2 callers
Method
defrost
Make this CfgNode and all of its children mutable.
yacs/config.py:252
↓ 2 callers
Method
key_is_deprecated
Test if a key is deprecated.
yacs/config.py:301
↓ 2 callers
Method
key_is_renamed
Test if a key is renamed.
yacs/config.py:308
↓ 2 callers
Method
raise_key_rename_error
(self, full_key)
yacs/config.py:312
↓ 2 callers
Method
register_deprecated_key
Register key (e.g. `FOO.BAR`) a deprecated option. When merging deprecated keys a warning is generated and the key is ignored.
yacs/config.py:277
↓ 1 callers
Method
_create_config_tree_from_dict
Create a configuration tree using the given dict. Any dict-like objects inside dict will be treated as a new CfgNode. Args:
yacs/config.py:112
↓ 1 callers
Method
_load_cfg_from_file
Load a config from a YAML file or a Python source file.
yacs/config.py:368
↓ 1 callers
Method
_load_cfg_py_source
Load a config from a Python source file.
yacs/config.py:388
↓ 1 callers
Function
_load_module_from_file
(name, filename)
yacs/config.py:548
↓ 1 callers
Function
_merge_a_into_b
Merge config dictionary a into config dictionary b, clobbering the options in b whenever they are also specified in a.
yacs/config.py:454
↓ 1 callers
Function
conditional_cast
(from_type, to_type)
yacs/config.py:514
↓ 1 callers
Method
is_new_allowed
(self)
yacs/config.py:325
↓ 1 callers
Method
register_renamed_key
Register a key as having been renamed from `old_name` to `new_name`. When merging a renamed key, an exception is thrown alerting to user to
yacs/config.py:287
↓ 1 callers
Method
set_new_allowed
Set this config (and recursively its subconfigs) to allow merging new keys from other configs.
yacs/config.py:328
Method
__getattr__
(self, name)
yacs/config.py:137
Method
__init__
Args: init_dict (dict): the possibly-nested dictionary to initailize the CfgNode. key_list (list[str]): a list of nam
yacs/config.py:74
Method
__repr__
(self)
yacs/config.py:185
Method
__setattr__
(self, name, value)
yacs/config.py:143
Method
__str__
(self)
yacs/config.py:164
Method
_indent
(s_, num_spaces)
yacs/config.py:165
Method
convert_to_dict
(cfg_node, key_list)
yacs/config.py:191
Method
test__str__
(self)
yacs/tests.py:271
Method
test_copy_cfg
(self)
yacs/tests.py:90
Method
test_deprecated_key_from_file
(self)
yacs/tests.py:211
Method
test_deprecated_key_from_list
(self)
yacs/tests.py:178
Method
test_immutability
(self)
yacs/tests.py:61
Method
test_invalid_type
(self)
yacs/tests.py:266
Method
test_load_cfg_from_file
(self)
yacs/tests.py:248
Method
test_load_cfg_invalid_type
(self)
yacs/tests.py:199
Method
test_load_from_python_file
(self)
yacs/tests.py:256
Method
test_merge_cfg_from_cfg
(self)
yacs/tests.py:97
Method
test_merge_cfg_from_cfg
(self)
yacs/tests.py:339
Method
test_merge_cfg_from_file
(self)
yacs/tests.py:153
Method
test_merge_cfg_from_file
(self)
yacs/tests.py:314
Method
test_merge_cfg_from_list
(self)
yacs/tests.py:164
Method
test_merge_cfg_from_list
(self)
yacs/tests.py:325
Method
test_new_allowed
(self)
yacs/tests.py:296
Method
test_new_allowed_bad
(self)
yacs/tests.py:303
Method
test_nonexistant_key_from_list
(self)
yacs/tests.py:193
Method
test_renamed_key_from_file
(self)
yacs/tests.py:234
Method
test_renamed_key_from_list
(self)
yacs/tests.py:226