Open zkailinzhang opened 2 years ago
Try this:
with torch.no_grad():
outputs = self.model(img)
outputs = postprocess(
outputs, self.exp.num_classes, self.exp.test_conf, self.exp.nmsthre # TODO:用户可更改
)
if outputs[0] is not None:
outputs = outputs[0].cpu().numpy()
File "/YOLOX_deepsort_tracker/detector.py", line 53, in detect )[0].cpu().numpy() AttributeError: 'NoneType' object has no attribute 'cpu'