Open sanjaychamlagain123 opened 2 years ago
please can you tell me if there is Val data in thatPubTables1M-Structure-PASCAL-VOC/ folder,i don't have val and test data in the PubTables1M-Structure-PASCAL-VOC/
I tried inference in the images provided in your repo as well as other images.. It works perfectly for the samples provided by you but the bbox seems to squeeze in my samples.
Can you please provide the code for inferencce?
You can try image = cv2.copyMakeBorder(image, 40,40,40,40, cv2.BORDER_CONSTANT, None, value=(255,255,255))
to add a margin before passing into the model. The corresponding word bounding boxes also need to be shifted for the post-processing step. It works perfectly on new tables when I add a margin ~40px.
I believe it may be due to the model being trained with tables that have ~40px margin in the training dataset.
@bsmock is this a good hotfix for tightly bounded tables if utilize the pre-trained weights you provided?
@finnthedawg, thanks a lot for this, it solved the squeezing issue for me
Hi @sanjaychamlagain123 Can you please share your inference code? Thanks in advance!
I tried inference in the images provided in your repo as well as other images.. It works perfectly for the samples provided by you but the bbox seems to squeeze in my samples.