MCPcopy Index your code
hub / github.com/OpenGVLab/InternVL / get_config

Function get_config

classification/config.py:280–287  ·  view source on GitHub ↗

Get a yacs CfgNode object with default values.

(args)

Source from the content-addressed store, hash-verified

278
279
280def get_config(args):
281 """Get a yacs CfgNode object with default values."""
282 # Return a clone so that the defaults will not be altered
283 # This is for the "local variable" use pattern
284 config = _C.clone()
285 update_config(config, args)
286
287 return config

Callers 4

get_argsFunction · 0.90
parse_optionFunction · 0.90
parse_optionFunction · 0.90
parse_optionFunction · 0.90

Calls 1

update_configFunction · 0.85

Tested by

no test coverage detected