prisma-ai / torch2coreml

Torch7 -> CoreML
MIT License
384 stars 54 forks source link

High Memory Usage in iOS #12

Closed guanjhensu closed 6 years ago

guanjhensu commented 6 years ago

I try the example iOS code provided by this repo.

https://github.com/prisma-ai/torch2coreml/tree/master/example/fast-neural-style/ios

The coreml model is only ~10MB. However, the memory usage is very high, usually up to 200MB, which causes the app to terminated due to memory issue sometimes.

2017-10-11 3 17 02
opedge commented 6 years ago

You can decrease input size, thus it need to find a balance between quality (input size) and performance/resource usage.

guanjhensu commented 6 years ago

Thanks for your comment. It works!