deep_sort_pytorch
deep_sort_pytorch copied to clipboard
RuntimeError: output with shape [1, 128, 64] doesn't match the broadcast shape [3, 128, 64]
I tried to run deep_sort/deep/feature_extractor.py, but there was a problem.
Traceback (most recent call last):
File "D:/目标检测各模型/deep_sort_pytorch-master/deep_sort/deep/feature_extractor.py", line 56, in
Hi!
It is because the Extractor expects list of images, however it is called with a single image
Change this:
feature = extr(img)
to this:
feature = extr([img])
Note that this does not affects the behaviour of the whole algorithm since running feature_extractor.py only is just for testing.