MuhammadMoinFaisal / YOLOv8-DeepSORT-Object-Tracking

YOLOv8 Object Tracking using PyTorch, OpenCV and DeepSORT
807 stars 222 forks source link

TypeError: expected np.ndarray (got list) #57

Open zhouxuedaasd opened 4 months ago

zhouxuedaasd commented 4 months ago

File "E:\Python\ultralytics_afpn\ultralytics\models\yolo\detect\predict_deepsort.py", line 240, in preprocess img = torch.from_numpy(img).to(self.model.device) TypeError: expected np.ndarray (got list)

SHUSHENGQIGUI commented 1 month ago

img = torch.from_numpy(img[0]).to(self.model.device) img = img.unsqueeze(0)