Skip to content

jordenyt/stable_diffusion_sketch

Repository files navigation

Stable Diffusion Sketch Version

Transform your sketches and photos with Stable Diffusion on Android. This app integrates with ComfyUI via a RESTful API, enabling powerful AI image generation capabilities right from your mobile device.

Download Latest APK

Important Note

This version uses ComfyUI as the main Stable Diffusion platform. For the Automatic1111 (A1111) version, please check the a1111 branch.

Key Features

  • 🎨 Sketch with color using intuitive drawing tools
  • AI-powered enhancements via ComfyUI workflows
  • 🔄 Multiple input sources:
    • Blank canvas
    • Camera capture
    • Stable Diffusion outputs
    • Images from other apps
  • 🛠️ Advanced tools:
    • Color palette & eyedropper
    • Brush & eraser
    • Undo/redo
    • Zoom/pan
  • ⚙️ Customization:
    • 4 canvas aspect ratios
    • Upscaling
    • Tagging & captioning
    • Batch processing
    • Settings import/export
  • 📁 Organization:
    • Sketch grouping
    • Long-press to delete
    • EXIF metadata preservation

Screenshots

Demo Video

See how to create with Stable Diffusion Sketch:
Demo Video

Prerequisites

Before using this app, you need:

  1. ComfyUI installed on a server
  2. ComfyUI Restful API Gateway running

Setup Guide

  1. Start API Gateway: Launch ComfyuiGW on your server
  2. Install App: Download and install the APK on your Android device
  3. Configure Connection:
    • Open the app and enter your server address (default: http://[SERVER_IP]:5000)
    • For local networks: Use your server's internal IP (e.g., 192.168.x.x)
    • For remote access: Configure router NAT/firewall and DDNS
  4. Verify Connection: Visit http://[serverIP:serverPort]/docs in a browser to confirm Swagger UI loads
  5. Start Creating: Sketch and transform images with AI!

Configuration Levels

Parameters can be set at multiple levels for flexible workflow control:

Level Location Description
Workflow ComfyUI .json Static parameters (models, VAEs, etc.)
Server mode_config.json Server-wide defaults
App Defaults App settings Device-specific defaults
Mode App mode JSON Per-mode configuration
Prompt <key:value> in prompt Runtime overrides

Key Parameters

Parameter Description App Mode Prompt
$size Output image long side
$width Output width
$height Output height
$batchSize Outputs per run
$cfg CFG scale
$steps Sampling steps
$denoise Denoise strength
$positive Positive prompt

For complete configuration details, see the ComfyuiGW documentation.

License

This project is licensed under the GNU General Public License v3.0.