How to finetune my trained text detection model for KIE #1710
Replies: 2 comments 4 replies
-
Hi @sophiadouglas 👋, Glad to hear you have fine tuned your custom model. 👏 You follow the dataset format as described here ? Maybe also a way which could be interesting: #1669 (comment) CC @aminemindee Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @sophiadouglas 👋🏼 , What you need is I remember we have had trouble with tf about reseting the head not only for KIE also for fine tuning the recognition models on a different vocab like the pretrained one. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have trained a custom detection model from the pretrained fast_base model using the following commands:
python train_tensorflow.py fast_base --train_path=E:\test\train --val_path=E:\test\val --epochs=100 --batch_size=1 --freeze-backbone --early-stop --early-stop-epochs=50 --save-interval-epoch --eval-straight --rotation --pretrained
A desirable result is reached with Recall: 96%, Precision: 92%, Mean IoU: 78%.
Now, I would like to finetune this model to cater for KIE detection with 8 new classes.
I have tried using --pretrained-backbone, --resume, and --freeze-backbone but can't seem to make it work.
May I know how to go about from here? What arguments should I use to finetune my trained detection model for KIE?
Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions