pytorch-layoutnet icon indicating copy to clipboard operation
pytorch-layoutnet copied to clipboard

How to downsize the model

Open krishamehta opened this issue 6 years ago • 2 comments

My current laptop has a 4 GB graphics card due to which I am unable to train the model on it. Can you please tell me how should I go about making the changes in order to run it on my machine. Thank you!

krishamehta avatar Sep 13 '18 12:09 krishamehta

You can just modified the model.py to reduce the size of the model. For example: reducing the numbers of channels, remove few layers of the encoder/decoder...

This path Downsize-channels.patch.txt divide the numbers of channels of each layers for you and take less than 3G gpu on my machine while training.

Hope it helps you.

sunset1995 avatar Sep 13 '18 15:09 sunset1995

This works perfectly. Thank you so much.

krishamehta avatar Sep 14 '18 18:09 krishamehta