-
Notifications
You must be signed in to change notification settings - Fork 40
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
About rvl_cdip_dataset.csv #29
Comments
Hi there, I have provided an answer to this question, here And, for the usage of the docformer (i.e to use the DocFormer model), I have also provided a sample notebook, which describes how to train docformer for the purpose of Mask Language Modeling, and with some tweaks, you can extend it to multiple tasks. Here, is the link for the same link to notebook. Please ignore that, file i.e Do feel free to ask, for more queries. Regards, |
Thanks for the reply Akarsh. I want to use the docformer code for the classification problem on rvl-cdip dataset. |
For that, the things are simple, just have a look at the MLM colab notebook, and then make the argument used for masking the input ids to be false, and in the modelling part, change the dimension of the last layer i.e the classification layer to be equal to the num of classes, and then you can go for training. However, you need to make sure, you have the OCR for RVL-CDIP since, it is a large dataser, else it would take time for generating OCR. Feel free to ping for more help. Regards, |
Thanks for the reply. I will try this and get back to you. |
Hello author: |
Actually, the architecture of the decoder is not mentioned, so earlier I implemented just a simple conv->deconv architecture, but I think, you would have to implement your own decoder, as per your usage. Just take the output of the encoder of DocFormer, and then pass it through Conv, and then Upsample, and I hope that works. Do let me know if there is something more. And yes, earlier the size of the image was 224 x 224 but, now it is 500 x 384 |
Hi,
Can you please provide code to generate the csv file used in the examples folder in dataset_creation_for_docformer.py file
The text was updated successfully, but these errors were encountered: