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

Method copy

data/config.py:74–85  ·  view source on GitHub ↗

Copies this config into a new config object, making the changes given by new_config_dict.

(self, new_config_dict={})

Source from the content-addressed store, hash-verified

72 self.__setattr__(key, val)
73
74 def copy(self, new_config_dict={}):
75 """
76 Copies this config into a new config object, making
77 the changes given by new_config_dict.
78 """
79
80 ret = Config(vars(self))
81
82 for key, val in new_config_dict.items():
83 ret.__setattr__(key, val)
84
85 return ret
86
87 def replace(self, new_config_dict):
88 """

Callers 10

__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
config.pyFile · 0.80
paint_maskFunction · 0.80
compute_masks.pyFile · 0.80
random_sample_cropFunction · 0.80

Calls 1

ConfigClass · 0.85

Tested by

no test coverage detected