sczhou/CodeFormer

Codeformer on the Android (or Mobile)

Opened this issue · 6 comments

I am trying to implement Codeformer on the Android system. Are there any documents or repositories available for this? I would greatly appreciate any advice.

Any news about this? I'm interested in a solution for Android.
Google offered only an example of using TensorFlowLite , but I can't find a way to create something myself, which uses a better model:

https://www.tensorflow.org/lite/examples/super_resolution/overview

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/examples/super_resolution/overview.ipynb

Can I use the current repository somehow to run on Android app?

I've implemented RealESGAN on Android, and it works quite well. You can try implementing it similarly with the waifu2x model from here: https://github.com/ArchieMeng/ncnn-android-waifu2x-demo. As for CodeFormer, things seem to be much more complicated. I'm trying, but I haven't been able to implement it yet.

@laverne01 Interesting. Can you please update it with instructions of how to use it, with dependency , snippet, etc...?
Also, does it work with images in general? Or only for anime? I want to use it for photos, such as of people.

I've implemented RealESGAN on Android, and it works quite well. You can try implementing it similarly with the waifu2x model from here: https://github.com/ArchieMeng/ncnn-android-waifu2x-demo. As for CodeFormer, things seem to be much more complicated. I'm trying, but I haven't been able to implement it yet.

RealESGAN is not good at face

RealESGAN

RealESGAN is used for image upscaling. If you want to restore faces, use CodeFormer or GFPGAN.