I am exploring deploying a MaskRCNN model (https://github.com/matterport/Mask_RCNN) to a mobile device. The model is built on tensorflow-1.x and Keras-2, having some custom code but mostly rely on keras.models.model as its core.
My major concern is the memory requirement: with batch size = 1, the program gets killed during loading the weights, after tensorflow allocator sending "allocation over 10% of system memory" warnings. Is there any dirty and simple ways that I can compress the model size with minimal change to the source code? Like, setting the tf/keras default data type to float16 globally, or drop near-zero weights.