PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.72k stars 7.86k forks source link

RecursionError: maximum recursion depth exceeded while calling a Python object,object of type 'int' has no len() #6062

Closed monkeycc closed 2 years ago

monkeycc commented 2 years ago

python tools/train.py -c configs/det/det_r50_vd_db.yml -o Global.pretrained_model=./pretrain_models/ResNet50_vd_ssld_pretrained


F:\00Biaozhu\heelloOCR\Image_20220328163841993.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220328163850194.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220328163856826.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220328165400860.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220328165546995.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220418120340062.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220328165617781.JPG  1
F:\00Biaozhu\heelloOCR\Image_20220418171020869.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171218249.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171450975.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171541274.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171658630.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171738594.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171832269.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418171853727.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418172036046.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418172058676.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418172112530.bmp  1
F:\00Biaozhu\heelloOCR\Image_20220418172311571.bmp  1
F:\00Biaozhu\heelloOCR\PS_1.jpg 1
F:\00Biaozhu\heelloOCR\PS_2.jpg 1
F:\00Biaozhu\heelloOCR\PS_31.jpg    1
F:\00Biaozhu\heelloOCR\PS_33.jpg    1
F:\00Biaozhu\heelloOCR\TU_Image_20220324104250871.jpg   1
F:\00Biaozhu\heelloOCR\TU_Image_20220324104317719.jpg   1
F:\00Biaozhu\heelloOCR\TU_Image_20220324104839655.jpg   1
F:\00Biaozhu\heelloOCR\TU_Image_20220324105005447.jpg   1
F:\00Biaozhu\heelloOCR\TU_Image_20220324104248199.jpg   1
F:\00Biaozhu\heelloOCR\Image_20220418172444151.bmp  1
Train:
  dataset:
    name: SimpleDataSet
    data_dir: F:/00Biaozhu/heelloOCR
    label_file_list:
      - F:/00Biaozhu/heelloOCR/fileState.txt
..

Eval:
  dataset:
    name: SimpleDataSet
    data_dir: F:/00Biaozhu/heelloOCR
    label_file_list:
      - F:/00Biaozhu/heelloOCR/fileState.txt
[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\TU_Image_20220324104250871.jpg        1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\Image_20220418172058676.bmp   1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\TU_Image_20220324104839655.jpg        1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\Image_20220418120340062.bmp   1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\Image_20220418171218249.bmp   1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\Image_20220418172036046.bmp   1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:31:15] root ERROR: When parsing line F:\00Biaozhu\heelloOCR\Image_20220418171020869.bmp   1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

[2022/04/26 20:49:46] root ERROR: When parsing line F:\00Biaozhu\DL_wenzi\PS_33.jpg     1
, error happened with msg: Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

Exception in thread Thread-3:
Traceback (most recent call last):
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 119, in __getitem__
    outs = transform(data, self.ops)
  File "E:\PaddleOCR\ppocr\data\imaug\__init__.py", line 43, in transform
    data = op(data)
  File "E:\PaddleOCR\ppocr\data\imaug\label_ops.py", line 48, in __call__
    nBox = len(label)
TypeError: object of type 'int' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\anaconda3\envs\PaddleOCR\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "D:\anaconda3\envs\PaddleOCR\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\paddle\fluid\dataloader\dataloader_iter.py", line 213, in _thread_loop
    self._thread_done_event)
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\paddle\fluid\dataloader\fetcher.py", line 121, in fetch
    data.append(self.dataset[idx])
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 129, in __getitem__
    return self.__getitem__(rnd_idx)
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 129, in __getitem__
    return self.__getitem__(rnd_idx)
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 129, in __getitem__
    return self.__getitem__(rnd_idx)
  [Previous line repeated 976 more times]
  File "E:\PaddleOCR\ppocr\data\simple_dataset.py", line 123, in __getitem__
    data_line, traceback.format_exc()))
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 1407, in error
    self._log(ERROR, msg, args, **kwargs)
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 1514, in _log
    self.handle(record)
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 1524, in handle
    self.callHandlers(record)
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 1586, in callHandlers
    hdlr.handle(record)
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 894, in handle
    self.emit(record)
  File "D:\anaconda3\envs\PaddleOCR\lib\logging\__init__.py", line 1028, in emit
    stream.write(msg + self.terminator)
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\colorama\ansitowin32.py", line 41, in write
    self.__convertor.write(text)
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\colorama\ansitowin32.py", line 162, in write
    self.write_and_convert(text)
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\colorama\ansitowin32.py", line 190, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "D:\anaconda3\envs\PaddleOCR\lib\site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
    self.wrapped.write(text[start:end])
RecursionError: maximum recursion depth exceeded while calling a Python object
riyajatar93 commented 1 year ago

i am getting same error when i am trying to train text-recognition .

`: [[1034, 182], [1205, 182], [1205, 222], [1034, 222]], "difficult": false}]\n'] [2023/10/06 14:24:25] ppocr INFO: train dataloader has 6 iters [2023/10/06 14:24:25] ppocr INFO: valid dataloader has 6 iters [2023/10/06 14:24:25] ppocr INFO: load pretrain successful from ./pretrain_models/en_PP-OCRv3_rec_train/best_accuracy [2023/10/06 14:24:25] ppocr INFO: During the training process, after the 0th iteration, an evaluation is run every 2000 iterations [2023/10/06 14:25:53] ppocr ERROR: When parsing line /home/riyaj-atar/Desktop/PaddleOCR/train_data/train_images/4-crop-0.jpg [{"transcription": "WRIGHT", "points": [[822, 124], [934, 124], [934, 155], [822, 155]], "difficult": false}, {"transcription": "RISK", "points": [[940, 122], [1012, 122], [1012, 155], [940, 155]], "difficult": false}, {"transcription": "MANAGEMENT", "points": [[1019, 121], [1198, 121], [1198, 157], [1019, 157]], "difficult": false}, {"transcription": "900", "points": [[826, 158], [880, 158], [880, 185], [826, 185]], "difficult": false}, {"transcription": "STEWART", "points": [[895, 156], [1012, 156], [1012, 188], [895, 188]], "difficult": false}, {"transcription": "AVENUE", "points": [[1019, 160], [1124, 160], [1124, 187], [1019, 187]], "difficult": false}, {"transcription": "SUITE 600", "points": [[1136, 157], [1310, 157], [1310, 189], [1136, 189]], "difficult": false}, {"transcription": "GARDEN", "points": [[827, 192], [932, 192], [932, 223], [827, 223]], "difficult": false}, {"transcription": "CITY,", "points": [[941, 190], [1020, 190], [1020, 221], [941, 221]], "difficult": false}, {"transcription": "NY", "points": [[1030, 183], [1082, 183], [1082, 227], [1030, 227]], "difficult": false}, {"transcription": "11530", "points": [[1089, 192], [1180, 192], [1180, 226], [1089, 226]], "difficult": false}] , error happened with msg: Traceback (most recent call last): File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 161, in getitem outs = transform(data, self.ops) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/init.py", line 56, in transform data = op(data) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 47, in call img = tia_distort(img, random.randint(3, 6)) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/augment.py", line 60, in tia_distort dst = trans.generate() File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/warp_mls.py", line 42, in generate return self.gen_img() File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/warp_mls.py", line 148, in gen_img nx = np.clip(nx, 0, src_w - 1) File "<__array_function__ internals>", line 200, in clip File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2180, in clip return _wrapfunc(a, 'clip', a_min, a_max, out=out, *kwargs) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc return bound(args, **kwds) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 136, in _clip if _clip_dep_is_scalar_nan(min): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 96, in _clip_dep_is_scalar_nan if ndim(a) != 0: File "<__array_function__ internals>", line 200, in ndim RecursionError: maximum recursion depth exceeded

[2023/10/06 14:25:55] ppocr ERROR: When parsing line /home/riyaj-atar/Desktop/PaddleOCR/train_data/train_images/6-crop-0.jpg [{"transcription": "USAA", "points": [[827, 130], [905, 130], [905, 157], [827, 157]], "difficult": false}, {"transcription": "NF", "points": [[909, 122], [951, 122], [951, 159], [909, 159]], "difficult": false}, {"transcription": "INS", "points": [[957, 125], [1013, 125], [1013, 158], [957, 158]], "difficult": false}, {"transcription": "9800", "points": [[825, 158], [897, 158], [897, 187], [825, 187]], "difficult": false}, {"transcription": "FREDERICKSBURG RD,", "points": [[906, 157], [1205, 157], [1205, 191], [906, 191]], "difficult": false}, {"transcription": "SAN ANTONIO,", "points": [[824, 188], [1020, 188], [1020, 226], [824, 226]], "difficult": false}, {"transcription": "TX", "points": [[1029, 189], [1077, 189], [1077, 224], [1029, 224]], "difficult": false}, {"transcription": "78288", "points": [[1086, 186], [1177, 186], [1177, 223], [1086, 223]], "difficult": false}] , error happened with msg: Traceback (most recent call last): File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 161, in getitem outs = transform(data, self.ops) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/init.py", line 56, in transform data = op(data) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 53, in call data = self.bda(data) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 93, in call img = add_gasuss_noise(img) File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 726, in add_gasuss_noise out = np.clip(out, 0, 255) File "<__array_function__ internals>", line 200, in clip File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2180, in clip return _wrapfunc(a, 'clip', a_min, a_max, out=out, *kwargs) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc return bound(args, **kwds) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 136, in _clip if _clip_dep_is_scalar_nan(min): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 96, in _clip_dep_is_scalar_nan if ndim(a) != 0: File "<__array_function__ internals>", line 200, in ndim RecursionError: maximum recursion depth exceeded while calling a Python object

Fatal Python error: Cannot recover from stack overflow. Python runtime state: initialized

Current thread 0x00007fc4da279440 (most recent call first): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3185 in ndim File "<__array_function__ internals>", line 200 in ndim File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 96 in _clip_dep_is_scalar_nan File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 136 in _clip File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 57 in _wrapfunc File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2180 in clip File "<__array_function__ internals>", line 200 in clip File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/warp_mls.py", line 148 in gen_img File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/warp_mls.py", line 42 in generate File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/text_image_aug/augment.py", line 60 in tia_distort File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 47 in call File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/init.py", line 56 in transform File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 161 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem ...


C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

FatalError: Process abort signal is detected by the operating system. [TimeInfo: Aborted at 1696582558 (unix time) try "date -d @1696582558" if you are using GNU date ] [SignalInfo: SIGABRT (@0x3e800070f3f) received by PID 462655 (TID 0x7fc4da279440) from PID 462655 ]

Fatal Python error: Cannot recover from stack overflow. Python runtime state: initialized

Current thread 0x00007fc4da279440 (most recent call first): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3185 in ndim File "<__array_function__ internals>", line 200 in ndim File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 96 in _clip_dep_is_scalar_nan File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/_methods.py", line 136 in _clip File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 57 in _wrapfunc File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2180 in clip File "<__array_function__ internals>", line 200 in clip File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 726 in add_gasuss_noise File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 93 in call File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/rec_img_aug.py", line 53 in call File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/imaug/init.py", line 56 in transform File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 161 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem File "/home/riyaj-atar/Desktop/PaddleOCR/ppocr/data/simple_dataset.py", line 171 in getitem ...


C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

FatalError: Process abort signal is detected by the operating system. [TimeInfo: Aborted at 1696582558 (unix time) try "date -d @1696582558" if you are using GNU date ] [SignalInfo: SIGABRT (@0x3e800070f41) received by PID 462657 (TID 0x7fc4da279440) from PID 462657 ]

Exception in thread Thread-1: Traceback (most recent call last): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/paddle/io/dataloader/dataloader_iter.py", line 693, in _get_data data = self._data_queue.get(timeout=self._timeout) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/multiprocessing/queues.py", line 108, in get Traceback (most recent call last): File "tools/train.py", line 227, in raise Empty _queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/threading.py", line 870, in run main(config, device, logger, vdl_writer) File "tools/train.py", line 198, in main self._target(*self._args, **self._kwargs) File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/paddle/io/dataloader/dataloader_iter.py", line 604, in _thread_loop program.train(config, train_dataloader, valid_dataloader, device, model, File "/home/riyaj-atar/Desktop/PaddleOCR/tools/program.py", line 269, in train batch = self._get_data() File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/paddle/io/dataloader/dataloader_iter.py", line 708, in _get_data raise RuntimeError( RuntimeError: DataLoader 2 workers exit unexpectedly, pids: 462655, 462657 for idx, batch in enumerate(train_dataloader): File "/home/riyaj-atar/anaconda3/envs/ocr_env/lib/python3.8/site-packages/paddle/io/dataloader/dataloader_iter.py", line 825, in next self._reader.read_nextlist()[0] SystemError: (Fatal) Blocking queue is killed because the data reader raises an exception. [Hint: Expected killed != true, but received killed_:1 == true:1.] (at /paddle/paddle/fluid/operators/reader/blocking_queue.h:175)

`