PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

PPOCRLabel:- ppocr WARNING: When args.layout is false, args.ocr is automatically set to false

Open AbhishekPSI7042 opened this issue 1 year ago • 16 comments

Hi, I'm getting this error when I run the PPOCRLabel.py, please resolve this issue.

[2023/10/10 11:33:25] ppocr WARNING: When args.layout is false, args.ocr is automatically set to false Traceback (most recent call last): File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 2840, in sys.exit(main()) ^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 2828, in main app, _win = get_main_app(sys.argv) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 2818, in get_main_app win = MainWindow(lang=args.lang, ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 112, in init result = self.table_ocr('./data/paddle.png', return_ocr_result_in_table=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\anaconda3\envs\env\Lib\site-packages\paddleocr\paddleocr.py", line 759, in call res, _ = super().call( ^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel..\ppstructure\predict_system.py", line 129, in call res, table_time_dict = self.table_system( ^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel..\ppstructure\table\predict_table.py", line 86, in call structure_res, elapse = self._structure(copy.deepcopy(img)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel..\ppstructure\table\predict_table.py", line 109, in structure structure_res, elapse = self.table_structurer(copy.deepcopy(img)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel..\ppstructure\table\predict_structure.py", line 120, in call data = transform(data, self.preprocess_op) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\PPOCRLabel..\ppocr\data\imaug_init.py", line 56, in transform data = op(data) ^^^^^^^^ File "C:\Users\dell\Desktop\YoloV4\PaddleOCR\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)

AbhishekPSI7042 avatar Oct 10 '23 06:10 AbhishekPSI7042