βœ“
Local Dream Download

Android app for running Stable Diffusion with Snapdragon NPU acceleration. Supports text-to-image, image-to-image and inpainting with custom models, LoRA and upscaling. Works on Android 5.0 and newer.

⭐ 1,339 stars on GitHub
Latest Release: v2.3.1

About Software

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:

  • Generate images from text on Android using Stable Diffusion AI models
  • Transform existing images with AI using image-to-image generation
  • Edit and redraw specific areas of images with inpainting tools
  • Use Snapdragon NPU acceleration for faster generation on compatible devices
  • Import custom models and LoRA files to personalize output style

Downloads

v2.3.1 December 03, 2025
LocalDream_armv8a_2.3.1.apkapk
LocalDream_armv8a_2.3.1_with_filter.apkapk
v2.3.0 December 01, 2025
LocalDream_armv8a_2.3.0.apkapk
LocalDream_armv8a_2.3.0_with_filter.apkapk
v2.2.1 November 05, 2025
LocalDream_armv8a_2.2.1.apkapk
LocalDream_armv8a_2.2.1_with_filter.apkapk
v2.2.0 November 02, 2025
LocalDream_armv8a_2.2.0.apkapk
LocalDream_armv8a_2.2.0_with_filter.apkapk
v2.1.2 October 17, 2025
LocalDream_armv8a_2.1.2.apkapk
LocalDream_armv8a_2.1.2_with_filter.apkapk
v2.1.1 October 14, 2025
LocalDream_armv8a_2.1.1.apkapk
LocalDream_armv8a_2.1.1_with_filter.apkapk
v2.1.0 October 12, 2025
LocalDream_armv8a_2.1.0.apkapk
LocalDream_armv8a_2.1.0_with_filter.apkapk
v2.0.0 October 10, 2025
LocalDream_armv8a_2.0.0.apkapk
LocalDream_armv8a_2.0.0_with_filter.apkapk
v1.9.1 October 08, 2025
LocalDream_armv8a_1.9.1.apkapk
LocalDream_armv8a_1.9.1_with_filter.apkapk
v1.9.0 October 06, 2025
LocalDream_armv8a_1.9.0.apkapk
LocalDream_armv8a_1.9.0_with_filter.apkapk
v1.8.4 September 29, 2025
LocalDream_armv8a_1.8.4.apkapk
LocalDream_armv8a_1.8.4_with_filter.apkapk
v1.8.3 September 28, 2025
LocalDream_armv8a_1.8.3.apkapk
LocalDream_armv8a_1.8.3_with_filter.apkapk
v1.8.2 September 21, 2025
LocalDream_armv8a_1.8.2.apkapk
LocalDream_armv8a_1.8.2_with_filter.apkapk
v1.8.1 August 10, 2025
LocalDream_armv8a_1.8.1.apkapk
LocalDream_armv8a_1.8.1_with_filter.apkapk
v1.8.0 August 04, 2025
LocalDream_armv8a_1.8.0.apkapk
LocalDream_armv8a_1.8.0_with_filter.apkapk
v1.7.1 July 05, 2025
LocalDream_armv8a_1.7.1.apkapk
LocalDream_armv8a_1.7.1_with_filter.apkapk
v1.7.0 June 30, 2025
LocalDream_armv8a_1.7.0.apkapk
LocalDream_armv8a_1.7.0_with_filter.apkapk
v1.6.0 June 06, 2025
LocalDream_armv8a_1.6.0.apkapk
LocalDream_armv8a_1.6.0_with_filter.apkapk
v1.5.2 May 27, 2025
LocalDream_armv8a_1.5.2.apkapk
LocalDream_armv8a_1.5.2_with_filter.apkapk
v1.5.1 May 22, 2025
LocalDream_armv8a_1.5.1.apkapk
LocalDream_armv8a_1.5.1_with_filter.apkapk
v1.5.0 May 17, 2025
LocalDream_armv8a_1.5.0.apkapk
LocalDream_armv8a_1.5.0_with_filter.apkapk
v1.4.1 April 25, 2025
LocalDream_armv8a_1.4.1.apkapk
LocalDream_armv8a_1.4.1_with_filter.apkapk
v1.4.0 April 22, 2025
LocalDream_armv8a_1.4.0.apkapk
LocalDream_armv8a_1.4.0_with_filter.apkapk
v1.3.2 April 18, 2025
LocalDream_armv8a_1.3.2.apkapk
LocalDream_armv8a_1.3.2_with_filter.apkapk
v1.3.1 April 18, 2025
LocalDream_armv8a_1.3.1.apkapk
LocalDream_armv8a_1.3.1_with_filter.apkapk
v1.3.0 April 09, 2025
LocalDream_armv8a_1.3.0.apkapk
LocalDream_armv8a_1.3.0_with_filter.apkapk
v1.2.2 March 22, 2025
LocalDream_armv8a_1.2.2.apkapk
LocalDream_armv8a_1.2.2_with_filter.apkapk
v1.2.1 March 17, 2025
LocalDream_armv8a_1.2.1.apkapk
LocalDream_armv8a_1.2.1_with_filter.apkapk
v1.2.0 March 13, 2025
LocalDream_armv8a_1.2.0.apkapk
LocalDream_armv8a_1.2.0_with_filter.apkapk
v1.1.2 February 19, 2025
LocalDream_armv8a_1.1.2.apkapk
LocalDream_armv8a_1.1.2_with_filter.apkapk

Package Info

Last Updated
Dec 03, 2025
Latest Version
v2.3.1
License
NOASSERTION
Total Versions
30

README

Local Dream

Android Stable Diffusion with Snapdragon NPU acceleration
Also supports CPU/GPU inference

About this Repo

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 _min if you are using non-flagship chips. Download _8gen1 if you are using 8gen1. Download _8gen2 if 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.

πŸš€ Quick Start

  1. Download: Get the APK from Releases (https://github.com/xororz/local-dream/releases) or Google Play (https://play.google.com/store/apps/details?id=io.github.xororz.localdream)(NSFW filtered)
  2. Install: Install the APK on your Android device
  3. Select Models: Open the app and download the model(s) you want to use

✨ Features

  • 🎨 txt2img - Generate images from text descriptions
  • πŸ–ΌοΈ img2img - Transform existing images
  • 🎭 inpaint - Redraw selected areas of images
  • custom models - Import your own SD1.5 models for CPU (in app) or NPU (follow conversion guide (https://github.com/xororz/local-dream/tree/master/convert)). You can get some pre-converted models from xororz/sd-qnn (https://huggingface.co/xororz/sd-qnn) or Mr-J-369 (https://huggingface.co/Mr-J-369)
  • lora support - Support adding LoRA weights to custom CPU models when importing.
  • prompt weights - Emphasize certain words in prompts. E.g., (masterpiece:1.5). Same format as Automatic1111 (https://github.com/AUTOMATIC1111/stable-diffusion-webui)
  • embeddings - Support for custom embeddings like EasyNegative (https://civitai.com/models/7808/easynegative). SafeTensor format is required. Convert pt to safetensors using this (https://chino.icu/local-dream/pt2sf.py)
  • upscalers - 4x upscaling with realesrgan_x4plus_anime_6b (https://github.com/xinntao/Real-ESRGAN/) and 4x-UltraSharpV2_Lite (https://huggingface.co/Kim2091/UltraSharpV2)

πŸ”§ Build Instructions

Note: Building on Linux/WSL is recommended. Other platforms are not verified.

Prerequisites

The following tools are required for building:

  • Rust - Install rustup (https://rustup.rs/), then run:
    # 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
    
  • Ninja - Build system
  • CMake - Build configuration

1. Clone Repository

git clone --recursive https://github.com/xororz/local-dream.git

2. Prepare SDKs

  1. Download QNN SDK: Get QNN_SDK_2.39 (https://apigwx-aws.qualcomm.com/qsc/public/v1/api/download/software/sdks/Qualcomm_AI_Runtime_Community/All/2.39.0.250926/v2.39.0.250926.zip) and extract
  2. Download Android NDK: Get Android NDK (https://developer.android.com/ndk/downloads) and extract
  3. Configure paths:
    • Update QNN_SDK_ROOT in app/src/main/cpp/CMakeLists.txt
    • Update ANDROID_NDK_ROOT in app/src/main/cpp/CMakePresets.json

3. Build Libraries

Linux

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

4. Build APK

Open this project in Android Studio and navigate to: Build β†’ Generate App Bundles or APKs β†’ Generate APKs

Technical Implementation

NPU Acceleration

  • SDK: Qualcomm QNN SDK leveraging Hexagon NPU
  • Quantization: W8A16 static quantization for optimal performance
  • Resolution: Fixed 512Γ—512 model shape
  • Performance: Extremely fast inference speed

CPU/GPU Inference

  • Framework: Powered by MNN framework
  • Quantization: W8 dynamic quantization
  • Resolution: Flexible sizes (128Γ—128, 256Γ—256, 384Γ—384, 512Γ—512)
  • Performance: Moderate speed with high compatibility

NPU High Resolution Support

[!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.

Device Compatibility

NPU Acceleration Support

Compatible with devices featuring:

  • Snapdragon 8 Gen 1/8+ Gen 1
  • Snapdragon 8 Gen 2
  • Snapdragon 8 Gen 3
  • Snapdragon 8 Elite
  • Snapdragon 8 Elite Gen 5/8 Gen 5
  • Non-flagship chips with Hexagon V68 or above (e.g., Snapdragon 7 Gen 1, 8s Gen 3)

Note: Other devices cannot download NPU models

CPU/GPU Support

  • RAM Requirement: ~2GB available memory
  • Compatibility: Most Android devices from recent years

Available 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)

🎲 Seed Settings

Custom seed support for reproducible image generation:

  • CPU Mode: Seeds guarantee identical results across different devices with same parameters
  • GPU Mode: Results may differ from CPU mode and can vary between different devices
  • NPU Mode: Seeds ensure consistent results only on devices with identical chipsets

Credits & Acknowledgments

Related Software

Veloera

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.

⭐ 1,548

Copymanga Copy20

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.

⭐ 1,541copymanga, extension, mihon

Openspot Music App

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.

⭐ 1,503api, flac, free-music

Deep Rant

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.

⭐ 1,494

Uz Doom

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.

⭐ 1,492

Inspector

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.

⭐ 1,481mcp, modelcontextprotocol, mcp-clients