Giter VIP home page Giter VIP logo

kmp-stable-diffusion's Introduction

KMP-Stable-Diffusion

Github - viethua99 License Github - viethua99 Linkedin - viethua99

-----------------------------------------------------

Supporters

Stargazers repo roster for @viethua99/KMP-Stable-Diffusion

Demo Video

IMAGE ALT TEXT HERE

Features

Stable Diffusion

Text To Image Image To Image

Others Feature

Save Locally Dark / Light Mode
Expand to see supported styles
Style Sample Style Sample
Anime Origami
3D Model Line Art
Photographic Analog Film
Comic Book Cinematic
Pixel Art Isometric
Neon Punk Low Poly
Fantasy Art Tile Texture
Digital Art

Screenshots

Android

iOS

Setup

Stability AI

This project using the Stability AI API for constructing RESTful API. Stability AI provides a RESTful API interface to highly detailed objects built from thousands of lines of data related to text to images.

  • Step 1: Create an account and generate an API key at Stability AI

  • Step 2: Paste the API key to your project gradle.properties file:

STABLE_DIFFUSION_API_KEY=YOUR_API_KEY_HERE
  • Step 3: Sync project and run your app

Android

Select composeApp configuration and run the project.

iOS

Select iOSApp configuration and run the project.

Technical Dependencies

Project Structure

Common Structure

├── composeApp
│   ├── androidMain
│   ├── commonMain
│   │   ├── kotlin/com/vproject/stablediffusion
│   │   │   ├── database
│   │   │   │   ├── dao                                      <––– Data Access Object (DAOs)
│   │   │   │   └── ...
│   │   │   ├── di                                           <––– Koin Depedenency Injection package
│   │   │   ├── model
│   │   │   ├── network
│   │   │   │    ├── StableDiffusionApi.kt                   <––– RESTFul APIs
│   │   │   │    └── ...
│   │   │   ├── presentation
│   │   │   │   ├── component
│   │   │   │   ├── screen
│   │   │   │   │   ├── generate                             <––– Generate Screen package
│   │   │   │   │   │   ├── GenerateScreen.kt                <––– Composable Generate Screen UIs
│   │   │   │   │   │   ├── GenerateModel.kt                 <––– Generate Screen View Model
│   │   │   │   │   │   └── GenerateUiState.kt               <––– Generate Sealed class UI State
│   │   │   │   │   └── ...
│   │   │   ├── repository
│   │   │   │   ├── ImageRepository.kt                       <––– Image repository to send requests
│   │   │   │   └── ...
│   │   │   └── util
│   │   ├── resources                                        <––– Moko Resources to store local images and strings
│   │   └── sqldelight/com/vproject/stablediffusion          <––– Local database entities
│   ├── desktopMain
│   └── iosMain
└── ...

System Design

System Design

Download

Go to the Releases to download the latest APK version.

License

KMP-Stable-Diffusion is distributed under the terms of the Apache License (Version 2.0). See the license for more information.

kmp-stable-diffusion's People

Contributors

viethua99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kmp-stable-diffusion's Issues

Disable Auto Prompt Clear

Hello, I just tried your app today and it looks nice till now and personally i think that, when user clicks the Generate button, prompt gets cleared automatically, which I don't think most of the user wants, is there any way to stop it, please provide a new version/release..

App header obscures the title

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot_20231016-121617_Text To Image

Smartphone (please complete the following information):

  • Device: poco x3 pro
  • OS: Android 13

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.