File size: 800 Bytes
59224e4
 
 
4f95cb3
59224e4
 
 
 
 
 
 
 
4f95cb3
 
 
 
 
 
 
 
 
 
 
59224e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
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