AIGC 开源文生图应用 KMP-MineStableDiffusion

10 阅读1分钟

基于Kotlin Multiplatform打造的全平台本地离线Stable Diffusion

项目地址:Onion99/KMP-MineStableDiffusion: 🎨 Multiplatform AI image generation app powered by Stable Diffusion • Built with Kotlin Multiplatform & Compose • Supports SDXL, FLUX, SD3 & more • Native performance via C++/JNI • Android & Desktop ready

🤖 Android-1Android-2
android_setting_page.gifandroid_img.webp
💻 Desktop-1💻 Desktop-2
desktop_screenshot.gifdesktop_screenshot4.gif

项目架构

graph TB
    A[Compose Multiplatform UI] --> B[Kotlin ViewModels]
    B --> C[Koin DI]
    C --> D[JNI Bridge]
    D --> E[C++ Native Layer]
    E --> F[stable-diffusion.cpp]
    F --> G[Vulkan/Metal Backend]

支持模型

针对低端机型

诸君可以试着修改wtype,更低的权重的类型,再不行那也没办法了🤣🤣🥲

android_setting.webp