pmj110119/YOLOX_deepsort_tracker

TypeError: load() missing 1 required positional argument: 'Loader'

zkailinzhang opened this issue · 1 comments

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()