frotms / PaddleOCR2Pytorch

PaddleOCR inference in PyTorch. Converted from [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
Apache License 2.0
809 stars 159 forks source link

识别模型head问题 #68

Open 294978174 opened 1 year ago

294978174 commented 1 year ago

您好 我看paddle识别用了两个头 一个CTC 一个Sarhead 我看您代码 转预训练模型的时候没有用sar
elif k.startswith('Student.head.sar_head.'): continue

这是为什么呢

frotms commented 1 year ago

paddle识别推理时也只用了ctc

Ivansyf34 commented 6 months ago

paddle识别推理时也只用了ctc

请问paddle的推理模型怎样转换成pth啊

frotms commented 6 months ago

@Ivansyf34 https://github.com/frotms/PaddleOCR2Pytorch/blob/main/doc/doc_ch/inference.md

Ivansyf34 commented 6 months ago

@Ivansyf34 https://github.com/frotms/PaddleOCR2Pytorch/blob/main/doc/doc_ch/inference.md

这不是只能转换训练模型.pdmarams文件吗,paddle导出的推理模型.pdiparams .pdmodel那怎么转换呐

frotms commented 6 months ago

目前转换不了