mirror of https://github.com/JDAI-CV/fast-reid.git
两个张量都要同步到cpu上来
parent
4508251d74
commit
5d3a505d03
|
@ -97,7 +97,7 @@ class RetriEvaluator(DatasetEvaluator):
|
|||
|
||||
def process(self, inputs, outputs):
|
||||
self.features.append(outputs.cpu())
|
||||
self.labels.extend(inputs["targets"])
|
||||
self.labels.extend(inputs["targets"].cpu())
|
||||
|
||||
def evaluate(self):
|
||||
if comm.get_world_size() > 1:
|
||||
|
|
Loading…
Reference in New Issue