PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

知识蒸馏det检测

Open Jackzhangfei opened this issue 2 years ago • 0 comments

请问知识蒸馏的训练后,如何使用模型?和其他的一样使用吗? 我是这样使用的: python tools/infer_det.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml -o Global.infer_img="./doc/imgs/11.jpg" Global.checkpoints="./ output/ch_PP-OCR_v3_det/latest"

但是他会显示参数不在模型中 image

[2022/08/11 23:43:22] ppocr WARNING: The pretrained params Teacher.head.thresh.conv_bn2.bias not in model [2022/08/11 23:43:22] ppocr WARNING: The pretrained params Teacher.head.thresh.conv_bn2._mean not in model [2022/08/11 23:43:22] ppocr WARNING: The pretrained params Teacher.head.thresh.conv_bn2._variance not in model [2022/08/11 23:43:22] ppocr WARNING: The pretrained params Teacher.head.thresh.conv3.weight not in model [2022/08/11 23:43:22] ppocr WARNING: The pretrained params Teacher.head.thresh.conv3.bias not in model [2022/08/11 23:43:22] ppocr INFO: load pretrain successful from ./pretrain/ch_PP-OCRv3_det_slim_distill_train/best_accuracy [2022/08/11 23:43:22] ppocr INFO: train from scratch [2022/08/11 23:43:22] ppocr INFO: infer_img: ./train_data/det/test/syn.jpg

是我的使用方法错了吗?还是配置文件问题

Jackzhangfei avatar Aug 11 '22 15:08 Jackzhangfei