Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddleocrV4 rec_distill 训练报错 #11106

Open
526872163 opened this issue Oct 19, 2023 · 1 comment
Open

paddleocrV4 rec_distill 训练报错 #11106

526872163 opened this issue Oct 19, 2023 · 1 comment
Assignees
Labels
training this is a training related issue

Comments

@526872163
Copy link

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:ubuntu 18.4

  • 版本号/Version:Paddle:2.51 PaddleOCR:2.7 问题相关组件/Related components:

  • 运行指令/Command Code:python -m paddle.distributed.launch --gpus '0,1' tools/train.py -c configs/rec/PP-OCRv4/ch_PP-OCRv4_rec_distill.yml

  • 完整报错/Complete Error Message: File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/tools/train.py", line 227, in
    main(config, device, logger, vdl_writer)
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/tools/train.py", line 135, in main
    model = build_model(config['Architecture'])
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/ppocr/modeling/architectures/init.py", line 34, in build_model
    arch = getattr(mod, name)(config)
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/ppocr/modeling/architectures/distillation_model.py", line 47, in init
    model = BaseModel(model_config)
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/ppocr/modeling/architectures/base_model.py", line 76, in init
    self.head = build_head(config["Head"])
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/ppocr/modeling/heads/init.py", line 71, in build_head
    module_class = eval(module_name)(**config)
    File "/home/kemove/zxProjects/ocrProject/PaddleOCR-release-2.7/ppocr/modeling/heads/rec_multi_head.py", line 75, in init
    out_channels=out_channels_list['NRTRLabelDecode'])
    KeyError: 'NRTRLabelDecode'

我发现out_channels_list[]中并没有关于NRTRLabelDecode任何内容,该如何解决这个问题,很急

@asif-ca
Copy link
Contributor

asif-ca commented Dec 14, 2023

Has anybody fixed this issue?

@SWHL SWHL added the training this is a training related issue label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
training this is a training related issue
Projects
None yet
Development

No branches or pull requests

4 participants