Any ideas to adapt the model to train small amount of images

sarah1: <p>Hello,<br>
I need some advice and help from everyone who are welcoming to share their knowledge.<br>
Actually I have only around 1000 image and I want to use them to generate this mode please check the link[the model I need to adapt to train 1000 image <a href="https://github.com/biswassanket/synth_doc_generation" rel="noopener nofollow ugc">https://github.com/biswassanket/synth_doc_generation</a></p>
<p>Is it possible and how I can adapted the code to my small amount of data? Thank you in advance. .</p>

fpozzi: <blockquote>
<p>Hello,<br>
I need some advice and help from everyone who are welcoming to share their knowledge.<br>
Actually I have only around 1000 image and I want to use them to generate this mode please check the link[the model I need to adapt to train 1000 image <a href="https://github.com/biswassanket/synth_doc_generation" rel="noopener nofollow ugc">https://github.com/biswassanket/synth_doc_generation </a></p>
<p>Is it possible and how I can adapted the code to my small amount of data? Thank you in advance. .</p>
</blockquote>
<p>Have you considered fine-tuning a pre-trained model?</p>

sarah1: <p>hell fpozzi,<br>
Thank you very much for your suggestion,<br>
Please I have some questions to help me out as I am a beginner :</p>
<p>so for my case I have to use 1. <a href="https://drive.google.com/file/d/1_yaxaXEINqAD-jlSqxtz1yIsor_0Lwam/view?usp=sharing" rel="noopener nofollow ugc">trained model on PubLayNet</a><br>
my data has the same classes as publaynet only with different language (not in english)  it will work right ?<br>
second any suggestion on how I fine-tuning it to adapt my data ?<br>
Thank you.</p>

fpozzi: <blockquote>
<p>hell fpozzi,<br>
Thank you very much for your suggestion,<br>
Please I have some questions to help me out as I am a beginner :</p>
<p>so for my case I have to use 1. <a href="https://drive.google.com/file/d/1_yaxaXEINqAD-jlSqxtz1yIsor_0Lwam/view?usp=sharing" rel="noopener nofollow ugc">trained model on PubLayNet</a><br>
my data has the same classes as publaynet only with different language (not in english) it will work right ?</p>
</blockquote>
<p>I think the best thing to do is to try. Another thing you can do is to search for similar works.</p>
<blockquote>
<p>second any suggestion on how I fine-tuning it to adapt my data ?</p>
</blockquote>
<p>Since your dataset is very small, you can freeze the first layers of your network and make the remaining layers trainable.</p>

sarah1: <p>Thank you very much for your reply<br>
I will follow your guide and keep you updated if I face any problems</p>

JohnPolo: <p>fpozzi has the right idea. Just to supplement what they wrote, here is a tutorial on finetuning a trained model: <a href="https://colab.research.google.com/github/pytorch/tutorials/blob/gh-pages/_downloads/torchvision_finetuning_instance_segmentation.ipynb#scrollTo=6-NFR--2fXV3" class="inline-onebox" rel="noopener nofollow ugc">Google Colab</a></p>

sarah1: <p>Hello guys,<br>
so I searched for pretrained model to work with my data but I didn’t find any similar model.</p>
<p>Any ideas of how I can train the model from scratch with my data ?<br>
Thank you</p>