🚀🚀🚀 YOLO series of PaddlePaddle implementation, PP-YOLOE+, RT-DETR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOv10, YOLOX, YOLOv5u, YOLOv7u, YOLOv6Lite, RTMDet and so on. 🚀🚀🚀
[X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.
请提出你的问题 Please ask your question
源代码:
import cv2
import fastdeploy.vision as vision
if __name__ == '__main__':
model = vision.detection.PPYOLOE("inference_model3/yolov7u_l_300e_coco/model.pdmodel",
"inference_model3/yolov7u_l_300e_coco/model.pdiparams",
"inference_model3/yolov7u_l_300e_coco/infer_cfg.yml")
im = cv2.imread("DJI_0001.JPG")
result = model.predict(im)
print(result)
vis_im = vision.vis_detection(im, result, score_threshold=0.0, line_size=5)
cv2.imwrite("vis_image.jpg", vis_im)
控制台报错:
Details
C:\Users\ASUS\AppData\Local\Programs\Python\Python37\python.exe "C:/Program Files/JetBrains/PyCharm 2022.3.3/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=63533
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\ASUS\\PycharmProjects\\pythonProject'])
PyDev console: starting.
Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)] on win32
runfile('C:\\Users\\ASUS\\PycharmProjects\\pythonProject\\fastDeploy.py', wdir='C:\\Users\\ASUS\\PycharmProjects\\pythonProject')
[FastDeploy][INFO]: Successfully found CUDA ToolKit from system PATH env -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin
[INFO] fastdeploy/vision/common/processors/transform.cc(45)::fastdeploy::vision::FuseNormalizeCast Normalize and Cast are fused to Normalize in preprocessing pipeline.
[INFO] fastdeploy/vision/common/processors/transform.cc(93)::fastdeploy::vision::FuseNormalizeHWC2CHW Normalize and HWC2CHW are fused to NormalizeAndPermute in preprocessing pipeline.
[INFO] fastdeploy/vision/common/processors/transform.cc(159)::fastdeploy::vision::FuseNormalizeColorConvert BGR2RGB and NormalizeAndPermute are fused to NormalizeAndPermute with swap_rb=1
Traceback (most recent call last):
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "C:\Program Files\JetBrains\PyCharm 2022.3.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2022.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\ASUS\PycharmProjects\pythonProject\fastDeploy.py", line 7, in
"inference_model3/yolov7u_l_300e_coco/infer_cfg.yml")
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37\lib\site-packages\fastdeploy\vision\detection\ppdet\__init__.py", line 106, in __init__
model_format)
RuntimeError: Check 'creator_it != CREATORS_MAP.end()' failed at C:\Jenkins\workspace\private-ci\ie\build-windows-vs2019\b\repos\openvino\src\frontends\paddle\src\frontend.cpp:40:
FrontEnd API failed with OpConversionFailure: :
No creator found for flip node.
问题确认 Search before asking
请提出你的问题 Please ask your question
源代码:
控制台报错:
Details
C:\Users\ASUS\AppData\Local\Programs\Python\Python37\python.exe "C:/Program Files/JetBrains/PyCharm 2022.3.3/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=63533 import sys; print('Python %s on %s' % (sys.version, sys.platform)) sys.path.extend(['C:\\Users\\ASUS\\PycharmProjects\\pythonProject']) PyDev console: starting. Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)] on win32 runfile('C:\\Users\\ASUS\\PycharmProjects\\pythonProject\\fastDeploy.py', wdir='C:\\Users\\ASUS\\PycharmProjects\\pythonProject') [FastDeploy][INFO]: Successfully found CUDA ToolKit from system PATH env -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin [INFO] fastdeploy/vision/common/processors/transform.cc(45)::fastdeploy::vision::FuseNormalizeCast Normalize and Cast are fused to Normalize in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(93)::fastdeploy::vision::FuseNormalizeHWC2CHW Normalize and HWC2CHW are fused to NormalizeAndPermute in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(159)::fastdeploy::vision::FuseNormalizeColorConvert BGR2RGB and NormalizeAndPermute are fused to NormalizeAndPermute with swap_rb=1 Traceback (most recent call last): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in
File "C:\Program Files\JetBrains\PyCharm 2022.3.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2022.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\ASUS\PycharmProjects\pythonProject\fastDeploy.py", line 7, in
"inference_model3/yolov7u_l_300e_coco/infer_cfg.yml")
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37\lib\site-packages\fastdeploy\vision\detection\ppdet\__init__.py", line 106, in __init__
model_format)
RuntimeError: Check 'creator_it != CREATORS_MAP.end()' failed at C:\Jenkins\workspace\private-ci\ie\build-windows-vs2019\b\repos\openvino\src\frontends\paddle\src\frontend.cpp:40:
FrontEnd API failed with OpConversionFailure: :
No creator found for flip node.