Local Dream is an Android app that runs Stable Diffusion 1.5 for AI image generation. It supports text-to-image, image-to-image and inpainting features. Works with Snapdragon NPU acceleration on 8 Gen devices for faster inference, or falls back to CPU and GPU processing on other Android devices.
Features include custom model import, LoRA support, embeddings, prompt weights and upscaling with RealESRGAN. Compatible with Android 5.0 and newer. Download pre-converted models from HuggingFace or convert your own. Available as APK from GitHub releases or Google Play.
Use Cases:
Android Stable Diffusion with Snapdragon NPU acceleration
Also supports CPU/GPU inference
This project is now open sourced and completely free. Hope you enjoy it!
If you like it, please consider sponsor (https://github.com/xororz/local-dream?tab=readme-ov-file#-support-this-project) this project.
[!NOTE] Currently focus on SD1.5 models. SD2.1 models are no longer maintained due to poor quality and not popular. SDXL/Flux models are too large for most devices. So will not support them for now.
Most users don't get how to properly use highres mode. Please check here.
Now you can import your own NPU models converted using our easy-to-follow NPU Model Conversion Guide (https://github.com/xororz/local-dream/tree/master/convert). And you can also download some pre-converted models from xororz/sd-qnn (https://huggingface.co/xororz/sd-qnn/tree/main) or Mr-J-369 (https://huggingface.co/Mr-J-369). Download
_minif you are using non-flagship chips. Download_8gen1if you are using 8gen1. Download_8gen2if you are using 8gen2/3/4/5. We recommend checking the instructions on the original model page to set up prompts and parameters.You can join our telegram group (https://t.me/local_dream) for discussion or help with testing.
(masterpiece:1.5). Same format as Automatic1111 (https://github.com/AUTOMATIC1111/stable-diffusion-webui)pt to safetensors using this (https://chino.icu/local-dream/pt2sf.py)Note: Building on Linux/WSL is recommended. Other platforms are not verified.
The following tools are required for building:
# rustup default stable
rustup default 1.84.0 # Please use 1.84.0 for compatibility. Newer versions may cause build failures.
rustup target add aarch64-linux-android
git clone --recursive https://github.com/xororz/local-dream.git
QNN_SDK_ROOT in app/src/main/cpp/CMakeLists.txtANDROID_NDK_ROOT in app/src/main/cpp/CMakePresets.jsonLinux
cd app/src/main/cpp/
bash ./build.sh
Windows
# Install dependencies if needed:
# winget install Kitware.CMake
# winget install Ninja-build.Ninja
# winget install Rustlang.Rustup
cd app\src\main\cpp\
# Convert patch file (install dos2unix if needed: winget install -e --id waterlan.dos2unix)
dos2unix SampleApp.patch
.\build.bat
macOS
# Install dependencies with Homebrew:
# brew install cmake rust ninja
# Fix CMake version compatibility
sed -i '' '2s/$/ -DCMAKE_POLICY_VERSION_MINIMUM=3.5/' build.sh
bash ./build.sh
Open this project in Android Studio and navigate to: Build β Generate App Bundles or APKs β Generate APKs
[!IMPORTANT] Please note that quantized high-resolution(>768x768) models may produce images with poor layout. We recommend first generating at 512 resolution (optionally you can upscale it), then using the high-resolution model for img2img (which is essentially Highres.fix). The suggested img2img denoise_strength is around 0.8. After that, you can get images with better layout and details.
Compatible with devices featuring:
Note: Other devices cannot download NPU models
The following models are built-in and can be downloaded directly in the app:
| Model | Type | CPU/GPU | NPU | Clip Skip | Source |
|---|---|---|---|---|---|
| AnythingV5 | SD1.5 | β | β | 2 | CivitAI (https://civitai.com/models/9409?modelVersionId=30163) |
| ChilloutMix | SD1.5 | β | β | 1 | CivitAI (https://civitai.com/models/6424/chilloutmix?modelVersionId=11732) |
| Absolute Reality | SD1.5 | β | β | 2 | CivitAI (https://civitai.com/models/81458?modelVersionId=132760) |
| QteaMix | SD1.5 | β | β | 2 | CivitAI (https://civitai.com/models/50696/qteamix-q?modelVersionId=94654) |
| CuteYukiMix | SD1.5 | β | β | 2 | CivitAI (https://civitai.com/models/28169?modelVersionId=265102) |
Custom seed support for reproducible image generation:
AI API gateway system forked from New API with multi-key channel support, gift codes, native Hugging Face interface, regex filtering, token grouping, model restrictions, multiple OAuth providers, per-user rate limiting, cache billing, and comprehensive logging built with Go.
Tachiyomi/Mihon extension source collection for Chinese manga platforms including Copymanga, Vomic, and Baozi Manhua with repository auto-updates, library import, theme/region filters, ranking lists, comment viewing, and simplified/traditional Chinese conversion with Tachidesk/Suwayomi compatibility.
Free, open-source cross-platform music streaming app with React Native + Expo mobile (Android/iOS) and Electron desktop (macOS/Windows/Linux) versions, featuring high-quality streaming, offline downloads, background playback, no login requirements, ad-free experience, and 20+ language support.
Gaming-focused quick translation tool built with Tauri (Rust + React 18) for international servers, featuring hotkey translation without leaving game, three specialized modes (toxic/pro/auto), custom phrase management, multi-language support, and automatic clipboard copying for Windows and macOS.
Modern DOOM engine source port continuing ZDoom and GZDoom with high-resolution graphics, dynamic lighting, 3D floors, extensive modding support, OpenGL/Vulkan renderers, and active community development under GPL v3+ license for Linux, Windows, and macOS.
Local development client for ChatGPT apps and MCP servers with full widget emulator, OAuth debugger, LLM playground with free frontier models (GPT-5, Claude Sonnet, Gemini 2.5), JSON-RPC observability, and Apps Builder supporting Desktop/Tablet/Mobile views via NPX or desktop apps.