hongyu12321 commited on
Commit
1fbd439
Β·
verified Β·
1 Parent(s): 2879606

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -29
README.md CHANGED
@@ -1,30 +1,10 @@
1
  ---
2
- # 🎨 Color Pencil Sketch β€” Vivid AI (Gradio + OpenCV + MediaPipe)
3
-
4
- Turn any photo (upload or webcam) into a **color pencil sketch** and make it **vivid** with smart saturation, local contrast, paper grain, portrait-aware blending, and optional AI super-resolution.
5
-
6
- ## Features
7
- - **Color Pencil Sketch** (OpenCV `pencilSketch`)
8
- - **Vivid Mode**: saturation boost + CLAHE local contrast
9
- - **Paper Texture**: subtle procedural paper grain
10
- - **Portrait Guard (AI)**: MediaPipe selfie segmentation blends a bit of the original image where a person is detected
11
- - **AI Upscale x2**: OpenCV `dnn_superres` + EDSR (auto-downloads the model)
12
-
13
- ## Controls
14
- - `sigma_s`, `sigma_r`, `shade_factor`: core sketch look
15
- - `Vivid mode`: make colors pop without blowing highlights
16
- - `Paper texture`: tactile, print-like finish
17
- - `Portrait guard`: keep people natural (faces/hair/clothes)
18
- - `AI Upscale x2`: export higher-res sketches
19
-
20
- ## Deploy on Hugging Face Spaces
21
- 1. Create a **Space β†’ Gradio (Python)**.
22
- 2. Upload `app.py`, `requirements.txt`, `README.md`.
23
- 3. Wait for build β†’ **Run**.
24
- 4. (Optional) Enable **GPU** not required; CPU works fine.
25
-
26
- ## Local run (optional)
27
- ```bash
28
- python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
29
- pip install -r requirements.txt
30
- python app.py
 
1
  ---
2
+ title: Color Pencil Sketch β€” Vivid AI
3
+ emoji: 🎨
4
+ colorFrom: pink
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: "4.44.0"
8
+ app_file: app.py
9
+ pinned: false
10
+ ---