Skip to content

AttributeError: 'NoneType' object has no attribute 'cpu' #17

@Peac12

Description

@Peac12

hi , please can you help me
I was doing every step , but i face this problem in detector.py :
YOLOX_deepsort_tracker/detector.py", line 51, in detect
outputs = postprocess(
AttributeError: 'NoneType' object has no attribute 'cpu'

the code in detecto.py is :
with torch.no_grad():
outputs = self.model(img)
outputs = postprocess(
outputs, self.exp.num_classes, self.exp.test_conf, self.exp.nmsthre # TODO:用户可更改
)[0].cpu().numpy()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions