layout-parser icon indicating copy to clipboard operation
layout-parser copied to clipboard

Train (fine-tune) LayoutParser pre-trained model using custom dataset

Open ammarsaf opened this issue 1 year ago • 3 comments

Motivation I want to fine-tune the pre-train model from LayoutParser by using my own dataset images. But I don't find any way in the documentation where I can train the pre-train model using my custom dataset, instead I only can train the Fast_RCNN or MaskRCNN model which means training from scratch. This might required million of dataset to get to get better performance metrics.

Is there any way I can fine-tune the model from LayoutParser? Is this even possible?

ammarsaf avatar Mar 29 '23 06:03 ammarsaf

I have the exact same question

epassaro avatar Apr 19 '23 16:04 epassaro

Hi @Ammar-Azman and @epassaro,

You have this tutorial that explains how to fine-tune the models available on the model zoo: https://towardsdatascience.com/auto-parse-and-understand-any-document-5d72e81b0be9

The model weights link is within the config.yml under the Weights key. I hope that helps.

jfecunha avatar Apr 24 '23 11:04 jfecunha

Thank you, I already achieved that using the Detectron2 tutorial, but I will take a look anyway.

epassaro avatar Apr 24 '23 13:04 epassaro