You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ch_PP-OCRv4_rec & ch_PP-OCRv4_rec_distill.yml,How to solve this error report?
Traceback (most recent call last):
File "tools/train.py", line 227, in
main(config, device, logger, vdl_writer)
File "tools/train.py", line 135, in main
model = build_model(config['Architecture'])
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures_init_.py", line 34, in build_model
arch = getattr(mod, name)(config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures\distillation_model.py", line 47, in init
model = BaseModel(model_config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures\base_model.py", line 76, in init
self.head = build_head(config["Head"])
File "D:\PaddleOCR-release-2.7\ppocr\modeling\heads_init_.py", line 71, in build_head
module_class = eval(module_name)(**config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\heads\rec_multi_head.py", line 75, in init
out_channels=out_channels_list['NRTRLabelDecode'] )
KeyError: 'NRTRLabelDecode'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
ch_PP-OCRv4_rec & ch_PP-OCRv4_rec_distill.yml,How to solve this error report?
Traceback (most recent call last):
File "tools/train.py", line 227, in
main(config, device, logger, vdl_writer)
File "tools/train.py", line 135, in main
model = build_model(config['Architecture'])
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures_init_.py", line 34, in build_model
arch = getattr(mod, name)(config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures\distillation_model.py", line 47, in init
model = BaseModel(model_config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\architectures\base_model.py", line 76, in init
self.head = build_head(config["Head"])
File "D:\PaddleOCR-release-2.7\ppocr\modeling\heads_init_.py", line 71, in build_head
module_class = eval(module_name)(**config)
File "D:\PaddleOCR-release-2.7\ppocr\modeling\heads\rec_multi_head.py", line 75, in init
out_channels=out_channels_list['NRTRLabelDecode'] )
KeyError: 'NRTRLabelDecode'
Beta Was this translation helpful? Give feedback.
All reactions