An Android App where the user can generate a grid of sticker image, and the user can also save that image for further uses. In the backend gan model is used to generate new Images and by using rest API those images bring to android app.
Create a sticker store, where user generate images and print from the shop.
First Image | Second Image |
---|---|
Splash Screen | Main App Screen | Output Screen |
---|---|---|
Download And install Android App
Notebook: Anim Generator Gan PyTorch
See Server Code: Server Code
Browse Server Sticker Generator
This app contain 3 parts
- Create Gan Model
- Deploy in web (Rest API)
- Develop Android App
Framework: Pytorch
Datasets: anime-faces
Generator | Discriminator |
---|---|
5 ConvTranspose2d Layers | 5 Conv2d layers |
Normalization: BatchNorm2d | Normalization: BatchNorm2d |
Activation Function: ReLU, TanH | Activation Function: LeakyReLU, Sigmoid |
Hyper Parameters |
---|
Epoch: 500 |
Batch Size: 128 |
Learning Rate: 0.0002 |
Loss function: BCELoss |
Optimizer: Adam |
Betas: (0.5, 0.999) |
Transformations: Resize(64), Center Crop(64), RandomRotation(30) |
Image Size: 64 |
Generator input: 100 |
- Numpy
- PIL
- Matplotlib
Gan model deployed in heroku
Web link ->
Language: Python
A rest api is developed by using flask, the api takes number of images as parameters and generate images, then make a grid image. And return the image in base64 encoded string.
Used Libraries |
---|
Flask |
Pyorch |
TorchVision |
Numpy |
Gunicorn |
Imageio |
See Server Code: Server Code
Browse API: API link
For Developing Android App Android Studio is used.
Language: Kotlin
This app contain 4 screens -
- Splash Screen
- Main Screen
- Output Screen
- About Screen
Used Libraries |
---|
Live Data |
ViewModel |
Kotlin Coroutines |
Retrofit |
GSON |
Timber |
UCE-Handler |
See source code: Sticker Generator
Download And install Android App
Shudipto Trafder
Email: Shudiptotrafder@gmail.com
Linkedin: Shudipto Trafder