Replies: 7 comments
-
同样的错误,看起来是读取PNG文件的时候出现了第4个channel,但是当限定img为前三个channel后,依旧有op方面的报错 |
Beta Was this translation helpful? Give feedback.
-
我这么改暂时没问题,
|
Beta Was this translation helpful? Give feedback.
-
我是想启动标注工具,就暂时注掉那两个没用的代码,也不知道后面会不会出现其它问题,目前能启动起来了 |
Beta Was this translation helpful? Give feedback.
-
我跟你一样的错误,能否标示一下注释哪个代码啊 |
Beta Was this translation helpful? Give feedback.
-
我代码里是 PPOCRLabel 中 111 112 两行。你可以根据你的报错调用栈修改。 |
Beta Was this translation helpful? Give feedback.
-
谢谢你的回复了,我还没来得及看,后面我在试试。 |
Beta Was this translation helpful? Give feedback.
-
非常感谢 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
[2023/11/03 11:09:02] ppocr WARNING: When args.layout is false, args.ocr is automatically set to false
Traceback (most recent call last):
File "PPOCRLabel.py", line 2840, in
sys.exit(main())
File "PPOCRLabel.py", line 2828, in main
app, _win = get_main_app(sys.argv)
File "PPOCRLabel.py", line 2818, in get_main_app
win = MainWindow(lang=args.lang,
File "PPOCRLabel.py", line 112, in init
result = self.table_ocr('./data/paddle.png', return_ocr_result_in_table=True)
File "C:\me\PaddleOCR.venv\lib\site-packages\paddleocr\paddleocr.py", line 759, in call
res, _ = super().call(
File "..\ppstructure\predict_system.py", line 129, in call
res, table_time_dict = self.table_system(
File "..\ppstructure\table\predict_table.py", line 86, in call
structure_res, elapse = self._structure(copy.deepcopy(img))
File "..\ppstructure\table\predict_table.py", line 109, in structure
structure_res, elapse = self.table_structurer(copy.deepcopy(img))
File "..\ppstructure\table\predict_structure.py", line 120, in call
data = transform(data, self.preprocess_op)
File "..\ppocr\data\imaug_init.py", line 56, in transform
data = op(data)
File "..\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)
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no): no
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
Beta Was this translation helpful? Give feedback.
All reactions