47
社区成员




课程名称 | 适应人群 |
---|---|
搞定系列 :paddleocr训练自己数据集windows版 | 学生,入门者,ocr感兴趣的学者和研究人员 |
paddleocr训练自己数据集windows版是一门专门适合初学者训练自己的paddleocr模型教程。通过本教程您可以收获:
(1)学会在windows上安装自己的显卡驱动
(2)学会在windows上安装cuda+cudnn
(3)学会在windows上安装anaconda3
(4)学会在windows安装PPOCRLabel以及使用PPOCRLabel标注自己的数据集
(5)学会使用paddleocr训练文本检测模型
(6)学会使用paddleocr训练文本识别模型
(7)学会使用paddleocr导出自己的模型
(8)学会使用paddleocr测试自己的模型
支持paddlepaddle课程!
老师你好,我将训练的识别模型导出时,报错了,请问这是什么情况
eval model:: 0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "tools/train.py", line 227, in
main(config, device, logger, vdl_writer)
File "tools/train.py", line 198, in main
program.train(config, train_dataloader, valid_dataloader, device, model,
File "D:\paddle_ocr\PaddleOCR-release-2.7\tools\program.py", line 392, in train
cur_metric = eval(
File "D:\paddle_ocr\PaddleOCR-release-2.7\tools\program.py", line 581, in eval
metric['fps'] = total_frame / total_time
ZeroDivisionError: float division by zero
博主,你好,这个问题有办法解决吗?
(paddle) C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel>python PPOCRLabel.py --lang ch
[2023/10/08 14:53:10] ppocr WARNING: When args.layout is false, args.ocr is automatically set to false
Traceback (most recent call last):
File "PPOCRLabel.py", line 2842, in
sys.exit(main())
File "PPOCRLabel.py", line 2830, in main
app, _win = get_main_app(sys.argv)
File "PPOCRLabel.py", line 2820, in get_main_app
win = MainWindow(lang=args.lang,
File "PPOCRLabel.py", line 114, in init
result = self.table_ocr('./data/paddle.png', return_ocr_result_in_table=True)
File "d:\py\Anaconda3\envs\paddle\lib\site-packages\paddleocr\paddleocr.py", line 759, in call
res, _ = super().call(
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppstructure\predict_system.py", line 129, in call res, table_time_dict = self.table_system(
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppstructure\table\predict_table.py", line 86, in call
structure_res, elapse = self._structure(copy.deepcopy(img))
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppstructure\table\predict_table.py", line 109, in structure
structure_res, elapse = self.table_structurer(copy.deepcopy(img))
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppstructure\table\predict_structure.py", line 120, in call
data = transform(data, self.preprocess_op)
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppocr\data\imaug_init.py", line 56, in transform
data = op(data)
File "C:\Users\Administrator\PaddleOCR-release-2.7\PPOCRLabel..\ppocr\data\imaug\operators.py", line 94, in call
img.astype('float32') * self.scale - self.mean) / self.std
ValueError: operands could not be broadcast together with shapes (213,488,4) (1,1,3)在执行PPOCRLabel>python PPOCRLabel.py --lang ch出现,请问如何解决
你好,请问在windows下训练的模型在linux下能使用吗
你好,请问在windows下训练的模型在linux下能使用吗
用命令python tools/infer/predict_det.py --image_dir="./doc/imgs/00059985.jpg" --det_model_dir="./zhuzhuzhu/ch_PP-OCRv3_det_infer/"检测图片上的文字时提示nomodule named polygon,试了pip install polygon/pip install polygon3等都不行。该怎么解决?
(1)集成显卡,采用CPU方式Windows安装,python3.9,anaconda环境成功,在anaconda环境中安装paddlepaddle也一切顺利。
(2)验证是否装好,python下输入import paddle 和 paddle.fluid.install_check.run_check(),提示AttributeError: module 'paddle.fluid' has no attribute 'install_check',是什么原因,没安装
Windows安装,集成显卡,采用CPU方式安装,按照百度飞浆官方安装步骤(https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html%EF%BC%89%EF%BC%8C%E6%8F%90%E7%A4%BA%E6%B2%A1%E6%9C%89%E7%9B%B8%E5%8C%B9%E9%85%8D%E7%89%88%E6%9C%AC%E7%9A%84paddlepaddle%EF%BC%8C%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F
独立显卡怎么办?
你好,我在做模型推理的时候,执行命令后,推理出来的图片没有文本框,即使有文本框,但文本框很大(文本框里有多个关键字信息),不是一个文本框对应一个关键字信息
卢老师,训练pp v3ocr 时候 训练一会就卡住
这个识别训练 不用加入预识别模型吗
Traceback (most recent call last):
File "tools/infer/predict_det.py", line 252, in
dt_boxes, _ = text_detector(img)
File "tools/infer/predict_det.py", line 216, in call
post_result = self.postprocess_op(preds, shape_list)
File "E:\paddleocr2.2\PaddleOCR-release-2.2\ppocr\postprocess\db_postprocess.py", line 185, in call
boxes, scores = self.boxes_from_bitmap(pred[batch_index], mask,
File "E:\paddleocr2.2\PaddleOCR-release-2.2\ppocr\postprocess\db_postprocess.py", line 79, in boxes_from_bitmap
score = self.box_score_fast(pred, points.reshape(-1, 2))
File "E:\paddleocr2.2\PaddleOCR-release-2.2\ppocr\postprocess\db_postprocess.py", line 137, in box_score_fast
xmin = np.clip(np.floor(box[:, 0].min()).astype(np.int), 0, w - 1)
File "D:\anzhuang\AI\Anaconda3\envs\paddle\lib\site-packages\numpy_init_.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.np.int
was a deprecated alias for the builtin int
. To avoid this error in existing code, use int
by itself. Doing this will not modify any behavior and is safe. When replacing np.int
, you may wish to use e.g. np.int64
or np.int32
to specify the precision. If you wish to review your current use, check the release note link for additional information.
老师这个什么原因你 有没有QQ交流群 好询问问题呀
老师能不能分享下 C++调用 最新版的ocr
那四个txt文件怎么来的没有交代清楚啊,听的一头雾水,卡在这一步了