Spaces:
Sleeping
Sleeping
metadata
title: Sketch To Image
emoji: π»
colorFrom: yellow
colorTo: blue
sdk: docker
pinned: false
π¨ Sketch to Image AI
An interactive web application that transforms your rough sketches into detailed, high-quality images using Stable Diffusion v1.5 and ControlNet (Scribble).
β¨ Features
- Live Sketchpad: Draw directly in the browser using the integrated Gradio Sketchpad.
- Prompt-to-Image: Describe your sketch with natural language to guide the AI's generation.
- Advanced Controls: Fine-tune the output with adjustable inference steps and guidance scales.
- Optimized Performance: Uses CPU offloading and attention slicing to run efficiently.
π How it Works
- ControlNet (Scribble): Processes your hand-drawn sketch as a structural guide.
- Stable Diffusion v1.5: Generates a realistic or artistic image based on your prompt, while adhering to the structure provided by the sketch.
- UniPCMultistepScheduler: Ensures fast and high-quality image sampling.
π οΈ Tech Stack
- Framework: Gradio
- Model: Stable Diffusion v1.5
- Control: lllyasviel/sd-controlnet-scribble
- Library: Diffusers by Hugging Face
- Language: Python
π» Local Setup
Clone the repository:
git clone https://github.com/your-username/Sketch-Image.git cd Sketch-ImageCreate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun the application:
python app.py
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by logan-codes