YOLOX_deepsort_tracker icon indicating copy to clipboard operation
YOLOX_deepsort_tracker copied to clipboard

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

Open zkailinzhang opened this issue 3 years ago • 1 comments

File "/YOLOX_deepsort_tracker/detector.py", line 53, in detect )[0].cpu().numpy() AttributeError: 'NoneType' object has no attribute 'cpu'

zkailinzhang avatar Dec 03 '21 09:12 zkailinzhang

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

namtranase avatar Dec 13 '21 10:12 namtranase