MCPcopy
hub / github.com/dbolya/yolact / replace

Method replace

data/config.py:87–96  ·  view source on GitHub ↗

Copies new_config_dict into this config object. Note: new_config_dict can also be a config object.

(self, new_config_dict)

Source from the content-addressed store, hash-verified

85 return ret
86
87 def replace(self, new_config_dict):
88 """
89 Copies new_config_dict into this config object.
90 Note: new_config_dict can also be a config object.
91 """
92 if isinstance(new_config_dict, Config):
93 new_config_dict = vars(new_config_dict)
94
95 for key, val in new_config_dict.items():
96 self.__setattr__(key, val)
97
98 def print(self):
99 for k, v in vars(self).items():

Callers 13

trainFunction · 0.80
plotMethod · 0.80
barMethod · 0.80
gpu_infoFunction · 0.80
set_cfgFunction · 0.80
__repr__Method · 0.80
jquery.jsFile · 0.80
oeFunction · 0.80
CeFunction · 0.80
GFunction · 0.80
neFunction · 0.80
ReFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected