按照文档“Atlas 200I DK A2开发者套件” 23.0.RC2,应用开发入门,使用模型适配工具生成推理应用,构建目标检测跟踪应用,模型推理。在第四步执行推理中,遇到了问题,与官方教程相比多了两行:
/usr/local/miniconda3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
这是否会影响之后的模型推理?
以下是程序原powershell:
按照文档“Atlas 200I DK A2开发者套件” 23.0.RC2,应用开发入门,使用模型适配工具生成推理应用,构建目标检测跟踪应用,模型推理。在第四步执行推理中,遇到了问题,与官方教程相比多了两行:
/usr/local/miniconda3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
这是否会影响之后的模型推理?
以下是程序原powershell:
(base) root@davinci-mini:~/infer_project# python3 om_infer.py --model=output/yolov5s_bs1.om --eval --visible /usr/local/miniconda3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") [INFO] acl init success [INFO] open device 0 success [INFO] load model output/yolov5s_bs1.om success [INFO] create model description success 100%|███████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:02<00:00, 3.39it/s] Average infer time: 51.257 ms / 1 image saveing predictions.json to output/ Start evaluate *bbox* results... loading annotations into memory... Done (t=0.00s) creating index... index created! Loading and preparing results... DONE (t=0.00s) creating index... index created! get 7 images Running per image evaluation... Evaluate annotation type *bbox* DONE (t=0.37s). Accumulating evaluation results... DONE (t=0.02s). Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.319 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.783 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.063 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.260 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.368 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.054 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.279 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.442 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.400 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.445 {'bbox_mAP': 0.319, 'bbox_mAP_50': 0.783, 'bbox_mAP_75': 0.063, 'bbox_mAP_s': -1.0, 'bbox_mAP_m': 0.26, 'bbox_mAP_l': 0.368, 'bbox_mAP_copypaste': '0.319 0.783 0.063 -1.000 0.260 0.368'} [INFO] unload model success, model Id is 1 [INFO] end to destroy context [INFO] end to reset device is 0 [INFO] end to finalize acl (base) root@davinci-mini:~/infer_project#