Open zhouxuedaasd opened 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)
img = torch.from_numpy(img[0]).to(self.model.device) img = img.unsqueeze(0)
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)