Skip to content

RecursionError: maximum recursion depth exceeded while calling a Python object #16605

@PengYuan0

Description

@PengYuan0

🔎 Search before asking

  • I have searched the PaddleOCR Docs and found no similar bug report.
  • I have searched the PaddleOCR Issues and found no similar bug report.
  • I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

[2025/09/29 10:06:25] ppocr ERROR: When parsing line images/0199137931034-91_89-240&290_487&377-489&374_242&372_248&286_495&288-0_0_18_10_25_29_27-133-65.jpg 皖AUL153
, error happened with msg: Traceback (most recent call last):
File "/mnt/车牌/PaddleOCR/ppocr/data/simple_dataset.py", line 137, in getitem
outs = transform(data, self.ops)
File "/mnt/车牌/PaddleOCR/ppocr/data/imaug/init.py", line 73, in transform
data = op(data)
File "/mnt/车牌/PaddleOCR/ppocr/data/imaug/label_ops.py", line 1299, in call
data_ctc = copy.deepcopy(data)
File "/home/pengyuan/anaconda3/envs/OCR/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/pengyuan/anaconda3/envs/OCR/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/pengyuan/anaconda3/envs/OCR/lib/python3.8/copy.py", line 153, in deepcopy
y = copier(memo)
RecursionError: maximum recursion depth exceeded while calling a Python object
在用configs/rec/PP-OCRv3/PP-OCRv3_mobile_rec.yml跑文本识别模型的时候报错 数据集格式按照官方的要求来的 用/t分隔
运行命令为python tools/train.py -c configs/rec/PP-OCRv3/PP-OCRv3_mobile_rec.yml

🏃‍♂️ Environment (运行环境)

Package Version


albucore 0.0.17
albumentations 1.4.18
annotated-types 0.7.0
anyio 4.5.2
astor 0.8.1
certifi 2025.8.3
charset-normalizer 3.4.3
coloredlogs 15.0.1
Cython 3.1.4
decorator 5.2.1
eval_type_backport 0.2.2
exceptiongroup 1.3.0
flatbuffers 25.9.23
h11 0.16.0
httpcore 1.0.9
httpx 0.28.1
humanfriendly 10.0
idna 3.10
imageio 2.35.1
lazy_loader 0.4
lmdb 1.7.3
mpmath 1.3.0
networkx 3.1
numpy 1.24.4
nvidia-cublas-cu11 11.11.3.6
nvidia-cuda-cupti-cu11 11.8.87
nvidia-cuda-nvrtc-cu11 11.8.89
nvidia-cuda-runtime-cu11 11.8.89
nvidia-cudnn-cu11 8.9.6.50
nvidia-cufft-cu11 10.9.0.58
nvidia-curand-cu11 10.3.0.86
nvidia-cusolver-cu11 11.4.1.48
nvidia-cusparse-cu11 11.7.5.86
nvidia-nccl-cu11 2.19.3
nvidia-nvtx-cu11 11.8.86
onnx 1.17.0
onnxoptimizer 0.3.13
onnxruntime 1.19.2
opencv-contrib-python 4.12.0.88
opencv-python 4.12.0.88
opencv-python-headless 4.12.0.88
opt-einsum 3.3.0
packaging 25.0
paddle2onnx 2.0.1
paddlepaddle-gpu 3.0.0
pillow 10.4.0
pip 24.2
polygraphy 0.49.26
protobuf 5.29.4
pyclipper 1.3.0.post6
pydantic 2.10.6
pydantic_core 2.27.2
PyWavelets 1.4.1
PyYAML 6.0.2
rapidfuzz 3.9.7
requests 2.32.4
scikit-image 0.21.0
scipy 1.10.1
setuptools 75.1.0
shapely 2.0.7
sniffio 1.3.1
sympy 1.13.3
tifffile 2023.7.10
tqdm 4.67.1
typing_extensions 4.13.2
urllib3 2.2.3
wheel 0.44.0

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

Package Version


albucore 0.0.17
albumentations 1.4.18
annotated-types 0.7.0
anyio 4.5.2
astor 0.8.1
certifi 2025.8.3
charset-normalizer 3.4.3
coloredlogs 15.0.1
Cython 3.1.4
decorator 5.2.1
eval_type_backport 0.2.2
exceptiongroup 1.3.0
flatbuffers 25.9.23
h11 0.16.0
httpcore 1.0.9
httpx 0.28.1
humanfriendly 10.0
idna 3.10
imageio 2.35.1
lazy_loader 0.4
lmdb 1.7.3
mpmath 1.3.0
networkx 3.1
numpy 1.24.4
nvidia-cublas-cu11 11.11.3.6
nvidia-cuda-cupti-cu11 11.8.87
nvidia-cuda-nvrtc-cu11 11.8.89
nvidia-cuda-runtime-cu11 11.8.89
nvidia-cudnn-cu11 8.9.6.50
nvidia-cufft-cu11 10.9.0.58
nvidia-curand-cu11 10.3.0.86
nvidia-cusolver-cu11 11.4.1.48
nvidia-cusparse-cu11 11.7.5.86
nvidia-nccl-cu11 2.19.3
nvidia-nvtx-cu11 11.8.86
onnx 1.17.0
onnxoptimizer 0.3.13
onnxruntime 1.19.2
opencv-contrib-python 4.12.0.88
opencv-python 4.12.0.88
opencv-python-headless 4.12.0.88
opt-einsum 3.3.0
packaging 25.0
paddle2onnx 2.0.1
paddlepaddle-gpu 3.0.0
pillow 10.4.0
pip 24.2
polygraphy 0.49.26
protobuf 5.29.4
pyclipper 1.3.0.post6
pydantic 2.10.6
pydantic_core 2.27.2
PyWavelets 1.4.1
PyYAML 6.0.2
rapidfuzz 3.9.7
requests 2.32.4
scikit-image 0.21.0
scipy 1.10.1
setuptools 75.1.0
shapely 2.0.7
sniffio 1.3.1
sympy 1.13.3
tifffile 2023.7.10
tqdm 4.67.1
typing_extensions 4.13.2
urllib3 2.2.3
wheel 0.44.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions