When I convert mobilenet_v2 network to torchscript model, the size increased from 13.5MB to 43.1MB. It’s too big to deploy in Android.
How can I compress the torchscript model ?
My code:
from torchvision.models import mobilenet_v2
net = mobilenet_v2()
torch.save(net,"net.pth")
script_module = torch.jit.script(net)
torch.jit.save(script_module,"net.pt")

The size of models: