An Android application for animefying all your selfies completely built in Flutter!
animefie_demo.mp4
Install via google play store: https://play.google.com/store/apps/details?id=io.nathancooper.animefie
Or locally
I have only tested this on my personal Pixel 3a XL device that is running Android 12, so I can't guarantee it will work on other devices or OS versions. If you have any issues, please let me know!
Here are the steps to install:
- Make sure you have the latest version of Flutter installed. I recommend using the VS Code extension for Flutter as it has a lot of niceties for working with Flutter.
- Download this repository:
git clone https://github.com/ncoop57/animefie
- Navigate to the
animefie
folder in your terminal of choice - Connect your device to your computer via USB.
- Run
flutter run
in theanimefie
folder.
That's it! This should install the app on your device and launch it so that you can start taking selfies! Animefies will be saved to your Pictures
folder on your device.
This project started off uses the awesome AnimeGANv2 pytorch model from @bryandlee to generate anime faces from your selfies. The model is hosted using the awesome HuggingFace Spaces API by @akhaliq. Thanks to the awesome gradio library that HuggingFace Spaces allows you to use for hosting a model and allows for an easy to use endpoint that this app takes advantage of. The app it self is written entirely in Dart using the Flutter framework and uses the awesome example flutter camera app project from @jagrut-18 and some other amazing people (it is crazy how hard handling things like device orientation for a camera app can be so that the image is saved in the correct orientation).
The project has expanded to include even more models! The currently supported models are the following:
- ArcaneGAN: https://huggingface.co/spaces/akhaliq/ArcaneGAN
- AnimeGANv2: https://huggingface.co/spaces/akhaliq/AnimeGANv2
- JoJoGAN: https://huggingface.co/spaces/akhaliq/JoJoGAN,
- GFP-GAN: https://huggingface.co/spaces/akhaliq/GFPGAN
- Apocalyptify: https://huggingface.co/spaces/Norod78/Apocalyptify
This app does not store any photos you take outside of your device. The modified images are saved to your device. The photos you do take will be transferred to the server that hosts the Deep Learning models in order to generate their modified versions. These photos are not encrypted when transferred due to the requirements of the hosted Deep Learning models API. These Deep Learning models are hosted using the HuggingFace Spaces API and are not controlled by me and so I cannot be held responsible for any issues that may arise from your photos being shared with these spaces. Please see each Space's URL for more information on how they handle your photos.