Use fast-SRGAN on mobile

MLBoy
2 min readMar 2, 2022

--

How to use fast super-resolution machine learning model on iOS

256*256
SR to 1024*1024
Compare above original below SR

I want to use super-resolution at high speed

The super-resolution model may run too long to improve the user experience in mobile apps or to super-resolution videos.

Fast-SRGAN

It is a super-resolution model that can be executed at high speed.
Convert this for iOS and run it.

#conversion

Load the model from the checkpoint and convert it to CoreML format.

Transforms the output shape for the image and denormalizes it.

I was able to run it in 0.42 seconds on iPhone11.

Conversion Script:

Converted Model:

https://github.com/john-rocky/CoreML-Models#fast-srgan

🐣

I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com

I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.

GitHub

Twitter
Medium

--

--

MLBoy
MLBoy

No responses yet