MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / forward

Method forward

PATH/core/testers/reid_tester.py:45–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 super().__init__(C_train, C_test)
44
45 def forward(self):
46 self._set_randomseed(self.randomseed_pool[self.tmp.current_step])
47
48 tmp = self.tmp
49 ginfo = self.ginfo
50 tmp.drop_this_iter = False
51 output = self.model(tmp.input_var, tmp.current_step)
52 tmp.features = output[self.C_test.config['common']['tester']['test_feature_name']]
53 tmp.labels = output['label']
54 tmp.camera_ids = tmp.input_var['camera']
55
56 def gather_result(self):
57 tmp = self.tmp

Callers 1

extractMethod · 0.95

Calls 1

_set_randomseedMethod · 0.45

Tested by

no test coverage detected