shihaitao118

Results 18 comments of shihaitao118

> 看报错是识别部分,可以先检查下代码里有没有这一行:[https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/tools/infer/utility.py#L279,如果加上还报错](https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/tools/infer/utility.py#L279%EF%BC%8C%E5%A6%82%E6%9E%9C%E5%8A%A0%E4%B8%8A%E8%BF%98%E6%8A%A5%E9%94%99) > > 参考FAQ修改下吧:https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.5/doc/doc_ch/FAQ.md#q-trt%E9%A2%84%E6%B5%8B%E6%8A%A5%E9%94%99invalidargumenterror-some-trt-inputs-dynamic-shape-info-not-set-check-the-info-log-above-for-more-details 加上那一行代码后,推理部分报错了,报错信息如下: [2022/06/22 09:16:28] ppocr DEBUG: Namespace(alpha=1.0, benchmark=False, beta=1.0, cls_batch_num=6, cls_image_shape='3, 48, 192', cls_model_dir='/home/ocr_model/cls_infer', cls_thresh=0.9, cpu_threads=10, crop_res_save_dir='./output', det=True, det_algorithm='DB', det_db_box_thresh=0.6, det_db_score_mode='fast', det_db_thresh=0.3, det_db_unclip_ratio=1.5, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8,...

> 看报错是识别部分,可以先检查下代码里有没有这一行:[https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/tools/infer/utility.py#L279,如果加上还报错](https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/tools/infer/utility.py#L279%EF%BC%8C%E5%A6%82%E6%9E%9C%E5%8A%A0%E4%B8%8A%E8%BF%98%E6%8A%A5%E9%94%99) > > 参考FAQ修改下吧:https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.5/doc/doc_ch/FAQ.md#q-trt%E9%A2%84%E6%B5%8B%E6%8A%A5%E9%94%99invalidargumenterror-some-trt-inputs-dynamic-shape-info-not-set-check-the-info-log-above-for-more-details 完整日志如下: [2022/06/22 09:21:28] ppocr DEBUG: Namespace(alpha=1.0, benchmark=False, beta=1.0, cls_batch_num=6, cls_image_shape='3, 48, 192', cls_model_dir='/home/ocr_model/cls_infer', cls_thresh=0.9, cpu_threads=10, crop_res_save_dir='./output', det=True, det_algorithm='DB', det_db_box_thresh=0.6, det_db_score_mode='fast', det_db_thresh=0.3, det_db_unclip_ratio=1.5, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8,...

> > 这里的pred应该是一个四维的数组,你打印shape看下 > > https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/ppocr/postprocess/db_postprocess.py#L173 > > 是否方便发一下你的测试图像? 公司的邮箱 无法外发图片,不清楚是否还有别的方式给你图片

> > > > > 这里的pred应该是一个四维的数组,你打印shape看下 > > https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/ppocr/postprocess/db_postprocess.py#L173 > > > > 是否方便发一下你的测试图像? > > 公司的邮箱 无法外发图片,不清楚是否还有别的方式给你图片 ![image](https://user-images.githubusercontent.com/107932883/174997591-80f9a361-3cd6-4ba1-8703-938e2bd4bffe.png)

> > > > > > > > > > 这里的pred应该是一个四维的数组,你打印shape看下 > > > https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/ppocr/postprocess/db_postprocess.py#L173 > > > > > > 是否方便发一下你的测试图像? > > > > > > 公司的邮箱 无法外发图片,不清楚是否还有别的方式给你图片...

> > > > > 这里的pred应该是一个四维的数组,你打印shape看下 > > https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/ppocr/postprocess/db_postprocess.py#L173 > > > > 是否方便发一下你的测试图像? > > 公司的邮箱 无法外发图片,不清楚是否还有别的方式给你图片 > 这里的pred应该是一个四维的数组,你打印shape看下 > > https://github.com/PaddlePaddle/PaddleOCR/blob/0b34ad5b93f19cf2324308e52bee59daeb164c4d/ppocr/postprocess/db_postprocess.py#L173 > > 是否方便发一下你的测试图像? 打印了pred的值 ![image](https://user-images.githubusercontent.com/107932883/174999859-d7a6a479-b7c8-40e0-a5e0-c302b00f5ae1.png) [[0.05592113 0.94407886]]...

> 你是否修改了代码,我这边测试结果没问题 ![image](https://user-images.githubusercontent.com/26592129/175014418-742863ab-db33-4b40-ba3d-b0f080b0868a.png) 代码修改了,我使用了tensorrt , ![image](https://user-images.githubusercontent.com/107932883/175014857-fc216247-4707-45b1-a53f-ced19171b25f.png)

> 你是否修改了代码,我这边测试结果没问题 ![image](https://user-images.githubusercontent.com/26592129/175014418-742863ab-db33-4b40-ba3d-b0f080b0868a.png) ![image](https://user-images.githubusercontent.com/107932883/175015336-923914c3-b624-4a47-9a4f-1cf8c3b81f10.png)

> > 代码修改了,我使用了tensorrt , > > 关闭tensorrt预测是否正常呢? ![image](https://user-images.githubusercontent.com/107932883/175017995-092e2710-c5a1-4aed-8c9c-c272745355b1.png) 关闭tensorrt也不正常了,之前是可以的

> > 代码修改了,我使用了tensorrt , > > 关闭tensorrt预测是否正常呢? paddlepaddle-gpu 2.3.0 是否是这个包有问题,我是在https://www.paddlepaddle.org.cn/inference/v2.3/user_guides/download_lib.html#python 上下载的 ![image](https://user-images.githubusercontent.com/107932883/175018858-feddda65-0193-4488-a45c-735848dee178.png)