Git Product home page Git Product logo

iamsdt / stickergenerator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 34.71 MB

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.

Kotlin 99.01% Python 0.99%
gan pytorch python3 kotlin android retrofit2 kotlin-coroutines viewmodel mvvm-android pytorch-gan

stickergenerator's Introduction

Project: Sticker Generator

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.

Future Possibilities

Create a sticker store, where user generate images and print from the shop.

Schreenshorts

GAN Model output

First Image Second Image
First Image Second Image

Android App

Splash Screen Main App Screen Output Screen
Splash Screen Main Page Output screen

Test

Download And install Android App

Notebook: Anim Generator Gan PyTorch

See Server Code: Server Code

Browse Server Sticker Generator

Architecture

This app contain 3 parts

  1. Create Gan Model
  2. Deploy in web (Rest API)
  3. Develop Android App

Gan Model

Framework and Datasets

Framework: Pytorch

Datasets: anime-faces

Architecture

Generator Discriminator
5 ConvTranspose2d Layers 5 Conv2d layers
Normalization: BatchNorm2d Normalization: BatchNorm2d
Activation Function: ReLU, TanH Activation Function: LeakyReLU, Sigmoid

Hyper Parameters:

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

Others Libraries

  • Numpy
  • PIL
  • Matplotlib

Kernel Link

Anim Generator Gan PyTorch

Deploy in web (Rest API)

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
Code Link

See Server Code: Server Code

Browse API: API link

Develop Android App

For Developing Android App Android Studio is used.

Language: Kotlin

This app contain 4 screens -

  • Splash Screen
  • Main Screen
  • Output Screen
  • About Screen

Design Pattern - MVVM

Used Libraries
Live Data
ViewModel
Kotlin Coroutines
Retrofit
GSON
Timber
UCE-Handler

Code link

See source code: Sticker Generator

Download And install Android App

Develpoer

Shudipto Trafder

Email: [email protected]

Linkedin: Shudipto Trafder

stickergenerator's People

Contributors

iamsdt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hommmm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.