CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

Codeformer on the Android (or Mobile)

Open laverne01 opened this issue 1 year ago • 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.

laverne01 avatar Sep 27 '24 07:09 laverne01

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?

AndroidDeveloperLB avatar Oct 06 '24 22:10 AndroidDeveloperLB

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 avatar Oct 07 '24 03:10 laverne01

@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.

AndroidDeveloperLB avatar Nov 28 '24 12:11 AndroidDeveloperLB

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

EternalSoySauce avatar Dec 03 '24 10:12 EternalSoySauce

@EternalSoySauce So what is good?

AndroidDeveloperLB avatar Dec 05 '24 09:12 AndroidDeveloperLB

RealESGAN

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

laverne01 avatar Dec 13 '24 06:12 laverne01