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)
| 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 |
no outgoing calls
no test coverage detected