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

Method process

PATH/core/solvers/utils/pos_tester_dev.py:145–158  ·  view source on GitHub ↗

Args: inputs: the inputs to a model. It is a list of dicts. Each dict corresponds to an image and contains keys like "height", "width", "file_name". outputs: the outputs of a model. It is either list of semantic segmentation prediction

(self, inputs, outputs)

Source from the content-addressed store, hash-verified

143 return
144
145 def process(self, inputs, outputs):
146 """
147 Args:
148 inputs: the inputs to a model.
149 It is a list of dicts. Each dict corresponds to an image and
150 contains keys like "height", "width", "file_name".
151 outputs: the outputs of a model. It is either list of semantic segmentation predictions
152 (Tensor [H, W]) or list of dicts with key "sem_seg" that contains semantic
153 segmentation prediction in the same format.
154 """
155 # for input, output in zip(inputs, outputs):
156 self.results.append(outputs)
157
158 # note: sync if multi-gpu
159
160 def evaluate(self):
161 """Evaluate coco keypoint results. The pose prediction results will be

Callers 1

inference_on_datasetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected