PaddlePaddle / PaddlePaddle/FastDeploy

BatchPredict Failed to inference while using model:PaddleSeg

Open
#2,000 2 comments 0 reactions 2 assignees View on GitHub

@Zheng-Bicheng is already working on this.

Since May 31, 2023.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

使用文档中的Unet分割模型转成rknn部署到瑞芯微上提示该错误:

配置文件
image
模型转换命令:

python paddle_infer_shape.py --model_dir ./ppyolo_r50vd_dcn_1x_coco
--model_filename model.pdmodel
--params_filename model.pdiparams
--save_dir ./inference
--input_shape_dict="{'image':[1,3,608,608], 'scale_factor':[1,2],'im_shape':[1,2]}"

paddle2onnx --model_dir ./inference_seg --model_filename model.pdmodel --params_filename model.pdiparams --save_file Unet_cityscapes_without_argmax_infer/unet_lane_seg.onnx --enable_dev_version False --opset_version 12 --enable_onnx_checker True

其中--enable_dev_version改为True的话会提示错误:
image

python3 ../FastDeploy/tools/rknpu2/export.py --config_path=/data/project/rknn-toolkit2/models/Unet_cityscapes_without_argmax_infer/config.yml --target_platform=RK3588

模型转换后预测代码:

image

预测错误:
image

【FastDeploy版本】:develop

  • 【编译命令】如果您是自行编译的FastDeploy,请说明您的编译方式(参数命令)
  • 【模型转换使用系统平台】: Linux x64
  • 【预测硬件】: 瑞芯微
  • 【编译语言】: C++

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.