PaddlePaddle / PaddlePaddle/FastDeploy
RuntimeError: Can't set input blob with name: x, because model input (shape={?,3,32,?}) and blob (shape=(6.3.48.320)) are incompatible
@DefTruth is already working on this.
Since May 10, 2023.
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 756
- Avg merge
- 19h 28m
- Merged PRs (30d)
- 4
Description
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
- 【FastDeploy版本】: fastdeploy-gpu-1.0.0
- 【编译命令】
- 【系统平台】: win10
- 【硬件】: Nvidia GPU 3080TI, CUDA 11.4 CUDNN 8.1
- 【编译语言】:Python3.8
问题日志及出现问题的操作流程
- 附上详细的问题日志有助于快速定位分析
- 【模型跑不通】
执行:examples\vision\ocr\PP-OCR\cpu-gpu\python\infer.py
python infer.py --det_model ch_ppocr_server_v2.0_det_infer --rec_model ch_ppocr_server_v2.0_rec_infer --rec_label_file ppocr_keys_v1.txt --image 23.png --device cpu --backend openvino
`
(pytorch-gpu) E:\program\FastDeploy-develop\FastDeploy-develop\examples\vision\ocr\PP-OCR\cpu-gpu\python>python infer.py --det_model ch_ppocr_server_v2.0_det_infer --rec_model ch_ppocr_server_v2.0_rec_infer --rec_label_file ppocr_keys_v1.txt --image 23.png --device cpu --backe
nd openvino
C:\Users\Administrator\anaconda3\envs\pytorch-gpu\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Users\Administrator\anaconda3\envs\pytorch-gpu\lib\site-packages\numpy.libs\libopenblas.FB5AE2TYXYH2IJRDKGDGQ3XBKLKTF43H.gfortran-win_amd64.dll
C:\Users\Administrator\anaconda3\envs\pytorch-gpu\lib\site-packages\numpy.libs\libopenblas.QVLO2T66WEPI7JZ63PS3HMOHFEY472BC.gfortran-win_amd64.dll
warnings.warn("loaded more than 1 DLL from .libs:"
[FastDeploy][INFO]: Successfully found CUDA ToolKit from system PATH env -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(218)::fastdeploy::OpenVINOBackend::InitFromPaddle number of streams:1.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(228)::fastdeploy::OpenVINOBackend::InitFromPaddle affinity:YES.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(240)::fastdeploy::OpenVINOBackend::InitFromPaddle Compile OpenVINO model on device_name:CPU.
[INFO] fastdeploy/runtime/runtime.cc(279)::fastdeploy::Runtime::CreateOpenVINOBackend Runtime initialized with Backend::OPENVINO in Device::CPU.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(218)::fastdeploy::OpenVINOBackend::InitFromPaddle number of streams:1.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(228)::fastdeploy::OpenVINOBackend::InitFromPaddle affinity:YES.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(240)::fastdeploy::OpenVINOBackend::InitFromPaddle Compile OpenVINO model on device_name:CPU.
[INFO] fastdeploy/runtime/runtime.cc(279)::fastdeploy::Runtime::CreateOpenVINOBackend Runtime initialized with Backend::OPENVINO in Device::CPU.
Traceback (most recent call last):
File "infer.py", line 132, in
result = ppocr_v3.predict(im)
File "C:\Users\Administrator\anaconda3\envs\pytorch-gpu\lib\site-packages\fastdeploy\vision\ocr\ppocr_init_.py", line 702, in predict
return self.system_.predict(input_image)
RuntimeError: Can't set input blob with name: x, because model input (shape={?,3,32,?}) and blob (shape=(6.3.48.320)) are incompatible
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.