-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train only the recognition branch #53
Comments
Hi, because the recognition branch and detection branch share the backbone, so it's not suitable to only finetune the recognition branch. |
Excuse me for this question, but I thought that the backbone of a neural network was the detection part. Does the backbone, in this case, refer to the shared part of the network before the RoI? |
The backbone indicates the FPN structure. I think optimizing the detection branch and the recognition branch simultaneously is suitable when finetuning. However when pretraining the model, it is feasible to optimize one of the branch at first. |
I think I understand why I cannot train the recognition part only. Thank you for your answers and all of your work. |
Sorry, I don't think I understand you. You mean you want only a recognition model not an end-to-end text spotting system? If it is the CRNN model is a choice. |
My bad, I did not explain it properly. In want an end to end solution. Here's why I want to do that: |
Hi, you can finetune the recognition branch with the tf.stop_gradient(), then the loss of recognition will not affect the backbone. For the bounding boxes, you can shrink or expand some ground-truth boxes for roi_rotate. |
I got an FOTS checkpoint, trained from scratch, which has pretty good results on my database.
I want to finetune the recognition branch of this checkpoint. The finetuning run smoothly but results are a bit weird:
Pretrained results:
Finetuned results:
As you can see, the detection before and after the recognition branch finetuning are different.
I did not see anyone talk about this problem on issues in this project. Do the finetuning run smoothly for you?
The text was updated successfully, but these errors were encountered: