MCPcopy Index your code
hub / github.com/OpenGVLab/HumanBench / load

Method load

PATH/core/testers/tester.py:138–150  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

136 self.model = model
137
138 def load(self, args):
139 if args.load_path == '':
140 return
141 if args.recover:
142 self.last_iter = load_state(args.load_path.replace('ckpt_task_', 'ckpt_task{}_'.format(\
143 self.ginfo.task_id)), self.model, recover=args.recover)
144 self.last_iter -= 1
145 else:
146 if args.load_single:
147 load_state(args.load_path, self.model, ignore=args.ignore)
148 else:
149 load_state(args.load_path.replace('ckpt_task_', 'ckpt_task{}_'.format(\
150 self.ginfo.task_id)), self.model, ignore=args.ignore)
151
152 def initialize(self, args):
153

Callers 15

initializeMethod · 0.95
mainFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
load_last_iterFunction · 0.45
load_stateFunction · 0.45
_report_metricMethod · 0.45
vit_aligned_base_patch16Function · 0.45
vit_base_patch16Function · 0.45
vit_large_patch16Function · 0.45

Calls 1

load_stateFunction · 0.90

Tested by

no test coverage detected