MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / merge

Method merge

yolox/exp/base_exp.py:63–75  ·  view source on GitHub ↗
(self, cfg_list)

Source from the content-addressed store, hash-verified

61 return tabulate(exp_table, headers=table_header, tablefmt="fancy_grid")
62
63 def merge(self, cfg_list):
64 assert len(cfg_list) % 2 == 0
65 for k, v in zip(cfg_list[0::2], cfg_list[1::2]):
66 # only update value with same key
67 if hasattr(self, k):
68 src_value = getattr(self, k)
69 src_type = type(src_value)
70 if src_value is not None and src_type != type(v):
71 try:
72 v = src_type(v)
73 except Exception:
74 v = ast.literal_eval(v)
75 setattr(self, k, v)

Callers 7

track_deepsort.pyFile · 0.80
train.pyFile · 0.80
mainFunction · 0.80
track_sort.pyFile · 0.80
track_motdt.pyFile · 0.80
track.pyFile · 0.80
augment_hsvFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected