MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / CfgNode

Class CfgNode

utils/Config.py:3–24  ·  view source on GitHub ↗

The same as `fvcore.common.config.CfgNode`, but different in: 1. Use unsafe yaml loading by default. Note that this may lead to arbitrary code execution: you must not load a config file from untrusted sources before manually inspecting the content of the file. 2. S

Source from the content-addressed store, hash-verified

1from fvcore.common.config import CfgNode as _CfgNode
2
3class CfgNode(_CfgNode):
4 """
5 The same as `fvcore.common.config.CfgNode`, but different in:
6
7 1. Use unsafe yaml loading by default.
8 Note that this may lead to arbitrary code execution: you must not
9 load a config file from untrusted sources before manually inspecting
10 the content of the file.
11 2. Support config versioning.
12 When attempting to merge an old config, it will convert the old config automatically.
13
14 .. automethod:: clone
15 .. automethod:: freeze
16 .. automethod:: defrost
17 .. automethod:: is_frozen
18 .. automethod:: load_yaml_with_base
19 .. automethod:: merge_from_list
20 .. automethod:: merge_from_other_cfg
21 """
22
23 def merge_from_dict(self, dict):
24 pass
25
26node = CfgNode()

Callers 2

Config.pyFile · 0.85
_test_loader_from_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected