⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
[ERROR] fastdeploy/vision/common/processors/mat_batch.cc(33)::Tensor Mats shapes are not consistent.
【模型跑不通】
auto ppocr_v3 = fastdeploy::pipeline::PPOCRv3(&det_model, &cls_model, &rec_model);
auto ppocr1 =ppocr_v3.Clone();
auto ppocr2 =ppocr_v3.Clone();
cv::Mat im = imageModel.GetIm();
fastdeploy::vision::OCRResult result;
ppocr_v3.Predict(&im, &result);
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
问题日志及出现问题的操作流程
[ERROR] fastdeploy/vision/common/processors/mat_batch.cc(33)::Tensor Mats shapes are not consistent.
cv::Mat im = imageModel.GetIm(); fastdeploy::vision::OCRResult result; ppocr_v3.Predict(&im, &result);
cv::Mat im1 = imageModel.GetIm(); fastdeploy::vision::OCRResult result1; ppocr1->Predict(&im1, &result1);
cv::Mat im2 = imageModel.GetIm(); fastdeploy::vision::OCRResult result2; ppocr2->Predict(&im2, &result2);