YuHui

Results 10 comments of YuHui

I added a few lines of code at the beginning of the `ltp/__init__.py` : ```{py} import torch torch.set_num_threads(1) ``` it works. 但我还是不清楚哪里开启的多线程 maybe introduced in torchscript inference.

still can not delete polygon label in ver.5.4.1

建议使用yolov8,这里有别人预训练的模型:https://github.com/jiangnanboy/layout_analysis 很多文档都是基于好几年前的旧版本写的,paddle及其他组件更新后这些没更新,所以有很多坑。

我也遇到了这个问题。在aistudio里运行“[基于时空信息的异常行为检测](https://aistudio.baidu.com/aistudio/projectdetail/3431613)”没有报错,但在自己的服务器上报ValueError,报错信息正如这个issue。我看了下aistudio环境里的paddle是2.2.2版本(自己服务器安装的是2.4.0),尝试降级paddle,降到了2.3.2版本,就可以正常运行。应该是是paddle v2.4.0的bug吧。而且报错信息也太扯了:**“... must be Tensor, but got Tensor ...”**

looks like DocLaynet dataset for text lines and layout detection. (not sure for ocr, but doclaynet contains machine-generated ocr annotations)

> 还有就是我使用如下命令导出推理模型时,可以导出模型,并且在output_inference里面生成了4个文件 python tools/export_model.py -c configs/picodet/legacy_model/application/layout_analysis/picodet_lcnet_x1_0_layout.yml -o weights='output/picodet_lcnet_x1_0_layout/best_model.pdparams' --output_dir=output_inference 当我把推理模型和paddleOCR结合后就出现了下面这个错误 got same errors

> 想问下导出的inference模型文件直接推理测试会报错吗?以及,可以将该文件提供给我们用于排查问题吗? [picodet_lcnet_x1_0_layout.zip](https://github.com/PaddlePaddle/PaddleOCR/files/14691324/picodet_lcnet_x1_0_layout.zip)

from version 1.4.16 of albumentations, the filter_bboxes function (in the core/bboxes_utils.py file) returns an empty numpy array of shape [0,4] if there is no target boxes in the image after...