DAVAR-Lab-OCR
DAVAR-Lab-OCR copied to clipboard
LGPMA - Global segmentation branch
I went through the LGPMA research paper and found the idea pretty interesting. However, I had some questions on going through the code a bit more closely.
I found that global segmentation branch results are never used to rescore LPMA branch results or fine tune the aligned bounding boxes. Only the local segmentation branch results are used to refine aligned bounding boxes. I tested the code using test_pub.py script where:
- In lgpma_base.py, I set refine_bboxes=True.
- In lgpma.py, line 167 appends the global segmentation result to the results list. However, in post_lgpma.py, line 336 never passes global segmentation results to softmasks_refine_bboxes().
This leads me to the question: Is global segmentation based refinement a missing feature or it turns out to provide better results without it?
I would really appreciate your feedback on the same.