-
Notifications
You must be signed in to change notification settings - Fork 57
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
Questions & Requests? #20
Comments
Hi, |
Unfortunately not, I'm still trying to understand that piece of it. Expecting help from @CZWin32768, the author of thi repo |
@akshowhini I am not one of the authors. I just fixed an issue when I was looking over this repo. For table re-construction I believe this is not included and in my experience this is a topic by its own. Table reconstruction, including accounting for potential errors, isn't that trivial. |
@akshowhini @rmporsch |
@abhyantrika I will say that this also confused me a bit. Its also not mentioned in the paper I believe: Lines 66 to 92 in b62789a
the chunks are actually transformed. You will need to re-convert them to visualize the results. Please note that the evaluation stats are published in the paper @akshowhini . I guess this also should answer a number of your other questions. |
@rmporsch |
@abhyantrika for chunk in chunks:
copy_chunk = copy.deepcopy(chunk)
chunk.x1 = copy_chunk.x1 + self.table_min_x
chunk.x2 = copy_chunk.x2 + self.table_min_x
chunk.y1 = table_max_y - copy_chunk.y2
chunk.y2 = table_max_y - copy_chunk.y1
chunk.pos = [chunk.x1, chunk.x2, chunk.y1, chunk.y2] |
@rmporsch |
This is a post processing I did to visualize the prediction results when I took a look at the paper. table_mix_x etc refer to the same one as in |
@rmporsch |
@rmporsch @akshowhini |
@abhyantrika yes, since the chunks are changed during preprocssing (during the data loader process) you will need to change them back. |
@rmporsch hey can you provide steps or example notebook for training and inference the model . |
sorry I don't think I have any bandwidth for that at the moment.
But again...I am not the maintainer of this repo, nor was I involved in the
development.
…On Fri, Oct 30, 2020 at 1:15 PM Kumar Rajwani ***@***.***> wrote:
@rmporsch <https://github.com/rmporsch> hey can you provide steps or
example notebook for training and inference the model .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZZ4RQCOI5MP3M4YQC3PKLSNJDVZANCNFSM4ORAPL3Q>
.
|
@rmporsch @akshowhini @abhyantrika can you help me to inference the trained model. I have only image from which contains the table. so how can i create the other required files and get the structure of table from image. |
For that you would need an text segmentation model and probably an OCR model first. This model here requires at least the coordinates of the text. |
Thanks for reply i am using the tesseract model which is able to give me text coordinate with transcription. |
@rmporsch As per your guidance i was reading paper and i have found following things. |
@CZWin32768 @rmporsch hey i have doubt structure is actually a table right? so if we giving complete table then what model is doing. rel file is just relation horizontal and vertical also the cell between them right? |
@rmporsch hey can you give me few hints to go ahead i am stuck. |
@kbrajwani The model predicts the edges (a column, a row, or no relationship) between each node (the text boxes). Hence, during inference the model predicts from features present in the chunk file the relationship between each text chunk. |
@rmporsch Thanks for the support. I am studying this type of work so if you know another project similar to this can you please share it here. it would be appreciated. |
Hi, everyone. Another vital point here is that coordinates are different from those you wish to apply to your I hope it will be handy to someone, cause I've struggled with it for almost the whole day! |
@Darenar Hey, that tip was useful thanks for that! Could you also please shed some light on the inference script. I can't seem to find that. |
Has anyone done inference with the provided model? I am stuck loading the TableInferDataset. There the script wants to load the relation files from relation_path. But on inference there shouldn't be a relation file, because this is what we want to predict isn't it? I have a structure.json and chunks.json file according to the input in the training routine. What am I missing? |
I have managed to get this running and added the inference script at my fork. Also I had to do minor changes in the source code in the TableInferDataset class. Here is the Link to the repo. Have fun and I hope it helps. Where: |
do you know how to infer? or in other words, how to make prediction? |
do you know how to infer? or in other words, how to make prediction? |
do you know how to infer? or in other words, how to make prediction? |
do you know how to infer? or in other words, how to make prediction? |
do you know how to infer? or in other words, how to make prediction? |
do you know how to infer? or in other words, how to make prediction? |
@Darenar do you know how to infer? or in other words, how to make prediction? |
eval_relations(gt=[ground_truth_relations], res=[your_relations], cmp_blank=True)
rel_gen.py
thisThe text was updated successfully, but these errors were encountered: