trocr-chinese icon indicating copy to clipboard operation
trocr-chinese copied to clipboard

vocab.txt

Open lyc728 opened this issue 2 years ago • 3 comments

你好,我想请问下cust-data/vocab.txt,这个字典在训练中有对应吗?我加载了你放好的预训练模型能直接训练,而这个字典是否起到作用了呢?

lyc728 avatar Apr 07 '22 12:04 lyc728

python init_custdata_model.py \   
    --cust_vocab ./cust-data/vocab.txt \  
    --pretrain_model ./weights \
    --cust_data_init_weights_path ./cust-data/weights

执行这个,就会生成自己训练集下字符集预训练初始权重。如果直接用内置的模型,就会用预训练模型的字符集

wenyinlong avatar Apr 07 '22 15:04 wenyinlong

你好,我这里训练得到的验证集精度为啥一直是0呢? 企业微信截图_16496484113052

lyc728 avatar Apr 11 '22 03:04 lyc728

你好,我这里训练得到的验证集精度为啥一直是0呢?

更新一下代码即可

wenlihaoyu avatar Apr 11 '22 08:04 wenlihaoyu