在推理预测中,预测不到任何内容
11ssbbjj 发布于2021-03 浏览:4798 回复:1
0
收藏

batch_image = np.array([data['image'] for data in batch_data])
print(47, batch_image)     # [[[[-0.015625 -0.1015625 -0.2109375 ... -0.3046875 -0.234375 -0.1015625] [-0.1328125 -0.21875 -0.3046875 ... -0.1796875 -0.171875 -0.015625 ] 。。。有内容 
batch_image = PaddleTensor(batch_image.astype('float32'))
print(48, batch_image)   #   (打印的结果)
data_out = self.predictor.run([batch_image])
print(56, data_out)  # [  ] 为空
confidences = data_out[0].as_ndarray()

出现了  File "F:/mycode/pythonProject/main.py", line 27, in
result, img = face_detector.face_detection(images=[image])
File "F:\mycode\pythonProject\model.py", line 88, in face_detection
confidences = data_out[0].as_ndarray()
IndexError: list index out of range

这样的错误

收藏
点赞
0
个赞
共1条回复 最后由192******42回复于2023-10
#5192******42回复于2023-10

0
快速回复
TOP
切换版块