How to handle "Memory quota exceeded" in heroku app developed using streamlit and PyTorch?
I have been developing a style transfer image application using streamlit and PyTorch. The app is facing memory quota exceeded whenever high resolution image is stylized(using the app). How do I reduce the app size(its around 200+ mb)?
App code : https://github.com/pr2tik1/deep-stylize-image
App deployment : https://deep-style-images.herokuapp.com

It is not about slug size so it is nothing to do with your application size, it is about RAM you are using. Since you are using free dyno you can not process high resolution images.
You will require minimum performance dyno in my opinion since image computation require pretty much memory.
