All Projects → ShaofengZou → Android-Tensorflow-Style-Transfer

ShaofengZou / Android-Tensorflow-Style-Transfer

Licence: other
An Android app built with an artistic style transfer neural network

Programming Languages

java
68154 projects - #9 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Android-Tensorflow-Style-Transfer

ArtsyNetworks
Deep Learning + Arts
Stars: ✭ 24 (-22.58%)
Mutual labels:  style-transfer
Face-Sketch
Face Sketch Synthesis with Style Transfer using Pyramid Column Feature, WACV2018
Stars: ✭ 52 (+67.74%)
Mutual labels:  style-transfer
ImgFastNeuralStyleTransfer TensorFlow
快速风格迁移学习实践
Stars: ✭ 22 (-29.03%)
Mutual labels:  style-transfer
Neural-Tile
A better tiling script for Neural-Style
Stars: ✭ 35 (+12.9%)
Mutual labels:  style-transfer
Joint-Bilateral-Learning
An unofficial implementation of Joint Bilateral Learning for Real-time Universal photorealistic Style Transfer
Stars: ✭ 52 (+67.74%)
Mutual labels:  style-transfer
StyleCLIPDraw
Styled text-to-drawing synthesis method. Featured at IJCAI 2022 and the 2021 NeurIPS Workshop on Machine Learning for Creativity and Design
Stars: ✭ 247 (+696.77%)
Mutual labels:  style-transfer
Tensorflow Fast Style Transfer
A simple, concise tensorflow implementation of fast style transfer
Stars: ✭ 224 (+622.58%)
Mutual labels:  style-transfer
color-aware-style-transfer
Reference code for the paper CAMS: Color-Aware Multi-Style Transfer.
Stars: ✭ 36 (+16.13%)
Mutual labels:  style-transfer
Domain-Aware-Style-Transfer
Official Implementation of Domain-Aware Universal Style Transfer
Stars: ✭ 84 (+170.97%)
Mutual labels:  style-transfer
StyleTransfer-PyTorch
Implementation of image style transfer in PyTorch
Stars: ✭ 18 (-41.94%)
Mutual labels:  style-transfer
MeuralPaint
TensorFlow implementation of CNN fast neural style transfer ⚡️ 🎨 🌌
Stars: ✭ 19 (-38.71%)
Mutual labels:  style-transfer
awesome-text-style-transfer
A list of resources about Text Style Transfer
Stars: ✭ 43 (+38.71%)
Mutual labels:  style-transfer
style swap tensorflow
tensorflow code for Fast Patch-based Style Transfer of Arbitrary Style
Stars: ✭ 42 (+35.48%)
Mutual labels:  style-transfer
mlmodelzoo
Build your iOS 11+ apps with the ready-to-use Core ML models below
Stars: ✭ 17 (-45.16%)
Mutual labels:  style-transfer
gans-2.0
Generative Adversarial Networks in TensorFlow 2.0
Stars: ✭ 76 (+145.16%)
Mutual labels:  style-transfer
MIDI-VAE
No description or website provided.
Stars: ✭ 56 (+80.65%)
Mutual labels:  style-transfer
style-transfer-video-processor
This code extends the neural style transfer image processing technique to video by generating smooth transitions between several reference style images
Stars: ✭ 113 (+264.52%)
Mutual labels:  style-transfer
TitleStylist
Source code for our "TitleStylist" paper at ACL 2020
Stars: ✭ 72 (+132.26%)
Mutual labels:  style-transfer
Artistic-Style-Transfer-using-Keras-Tensorflow
Art to Image Style Transfer using Keras and Tensorflow.
Stars: ✭ 22 (-29.03%)
Mutual labels:  style-transfer
StyleGAN demo
The re-implementation of style-based generator idea
Stars: ✭ 22 (-29.03%)
Mutual labels:  style-transfer

Android-Tensorflow-Style-Transfer

An Android app built with an artistic style transfer neural network

Introduction

Artistic style transfer help you creat exciting image with sytle you like. It need two input images: one representing the artistic style and one representing the content.

This project implement style transfer on Android platfrom. It contains two parts including training style model on computer using python and deploy the model to the moblie phone with Android Studio.

The app can be download via BaiduCloud or GoogleDriver

Part I. Style Model Training

Step1. Download dataset and pretrained VGG model

Unzip the train2014.zip and put the folder train2014 and imagenet-vgg-verydeep-19.mat to the data folder

Step2. Train model

The training code refers to @GuidoPaul

python style-transfer.py --style images/styles/wave.jpg --test images/test/test.jpg

It takes about 3 to 4 hours to train on TITAN XP.

The trained model is saved in checkpoint folder and the converted pb model file is saved in model file.

You can download the pretrained model trained by images/styled/wave.jpg via BaiduCloud

Step3. Evaluate

python test_pb_file.py --model_name model/style_graph_frozen.pb --test_image images/test/test2.jpg

Run to see the input and output node and tensor size of trained model which are important for the setting on Andoird.

Part II. Android Setup

After traning style model using python, we need deploy the trained model on android.

To run this project, you need put the pre-trained pb modol file to Part2_Android_Project\Style_Transfer\app\src\main\assets download via BaiduCloud

To add your trained model, you need to follow these steps:

Step1. Add style image

  1. Add the style image to the folder Part2_Android_Project\Style_Transfer\app\src\main\res\drawable
  2. Create style object to the function initStyles() at line 653 in MainActivity.java

Step2. Add style model

  1. Add the style model to the folder Part2_Android_Project\Style_Transfer\app\src\main\assets
  2. Add this model to pu_list at Line 73 in MainActivity.java

If you like it, welcome to fork and star ^_^

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].