--- title: Sketch To Photo AI emoji: 📊 colorFrom: green colorTo: green sdk: gradio sdk_version: 6.10.0 app_file: app.py pinned: false license: mit --- # Sketch-to-Photo AI This project uses **ControlNet (Scribble)** and Stable Diffusion to transform hand-drawn sketches into realistic photographic images. ### Tech Used - **Model:** `sd-controlnet-scribble` - **API:** Hugging Face Inference API (Serverless) - **UI:** Gradio Blocks ### How it works ControlNet adds a "spatial map" to the diffusion process. Instead of the AI guessing where objects should go based only on text, it uses the lines of your sketch as a structural guide, ensuring the output matches your original drawing perfectly. Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference