YOLOX_deepsort_tracker
YOLOX_deepsort_tracker copied to clipboard
TypeError: load() missing 1 required positional argument: 'Loader'
File "/YOLOX_deepsort_tracker/detector.py", line 53, in detect )[0].cpu().numpy() AttributeError: 'NoneType' object has no attribute 'cpu'
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()