PaddlePaddle / PaddleClas

A treasure chest for visual classification and recognition powered by PaddlePaddle
Apache License 2.0
5.42k stars 1.16k forks source link

RK3588按照官方指引部署classification运行成功,但是结果不正确。 #3007

Open 7288Fzq opened 11 months ago

7288Fzq commented 11 months ago

完全一步步按照官方教程来做。得到结果如下:

[INFO] fastdeploy/vision/common/processors/transform.cc(93)::FuseNormalizeHWC2CHW Normalize and HWC2CHW are fused to NormalizeAndPermute in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(159)::FuseNormalizeColorConvert BGR2RGB and NormalizeAndPermute are fused to NormalizeAndPermute with swap_rb=1 [INFO] fastdeploy/runtime/backends/rknpu2/rknpu2_backend.cc(81)::GetSDKAndDeviceVersion rknpu2 runtime version: 1.5.1b19 (32afb0e92@2023-07-14T12:46:17) [INFO] fastdeploy/runtime/backends/rknpu2/rknpu2_backend.cc(82)::GetSDKAndDeviceVersion rknpu2 driver version: 0.8.2 index=0, name=inputs, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=301056, fmt=NHWC, type=FP16, qnt_type=AFFINE, zp=0, scale=1.000000, pass_through=0 index=0, name=save_infer_model/scale_0.tmp_1, n_dims=2, dims=[1, 1000, 0, 0], n_elems=1000, size=2000, fmt=UNDEFINED, type=FP32, qnt_type=AFFINE, zp=0, scale=1.000000, pass_through=0 [INFO] fastdeploy/runtime/runtime.cc(367)::CreateRKNPU2Backend Runtime initialized with Backend::RKNPU2 in Device::RKNPU. [INFO] fastdeploy/vision/common/processors/transform.cc(159)::FuseNormalizeColorConvert BGR2RGB and Normalize are fused to Normalize with swap_rb=1 [WARNING] fastdeploy/runtime/backends/rknpu2/rknpu2_backend.cc(420)::InitRKNNTensorMemory The input tensor type != model's inputs type.The input_type need FP16,but inputs[0].type is FP32 ClassifyResult( label_ids: 644, scores: 0.073181, ) [FastDeploy] PPClas in RKNPU2 duration = 0.028111s.

结果一直是 label_ids: 644, scores: 0.073181,没有变化。

cuicheng01 commented 11 months ago

按照哪个流程跑的呢

7288Fzq commented 11 months ago

就是FastDeploy的流程。一本正经一模一样。 我是将他们整合到了视频流出中,用opencv处理帧然后放入模型处理,发现结果全都一样。 然后拿单独的图片做测试,模型初始化啥都成功,然后结果跟上面的一样。

------------------ 原始邮件 ------------------ 发件人: "PaddlePaddle/PaddleClas" @.>; 发送时间: 2023年10月19日(星期四) 下午5:46 @.>; @.**@.>; 主题: Re: [PaddlePaddle/PaddleClas] RK3588按照官方指引部署classification运行成功,但是结果不正确。 (Issue #3007)

按照哪个流程跑的呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cuicheng01 commented 8 months ago

看下模型是否成功加载呢?