ifzhang / FairMOT

[IJCV-2021] FairMOT: On the Fairness of Detection and Re-Identification in Multi-Object Tracking
MIT License
4.03k stars 934 forks source link

TypeError: new(): invalid data type 'str' #510

Open wc1229 opened 2 years ago

wc1229 commented 2 years ago

hello,how to solve this problem: FairMOT) lpj@lpj:~/wc/FairMOT-master/src$ python detection_demo.py Creating model... arch, heads, head_conv, device dla_34 {'hm': 1, 'wh': 4, 'id': 128, 'reg': 2} 256 cuda loaded /home/lpj/wc/FairMOT-master/models/fairmot_dla34.pth, epoch 30 /home/lpj/wc/FairMOT/lib/python3.6/site-packages/torch/nn/functional.py:1625: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.") Traceback (most recent call last): File "detection_demo.py", line 100, in hm = output['hm'].sigmoid()#wc:otput['hm'].sigmoid() TypeError: new(): invalid data type 'str'