Spaces:
Configuration error
Configuration error
Add README.md
Browse files
README.md
CHANGED
|
@@ -1,15 +1,44 @@
|
|
| 1 |
---
|
| 2 |
-
sdk: gradio
|
| 3 |
title: Comic Character Extractor
|
| 4 |
-
emoji:
|
| 5 |
-
colorFrom:
|
| 6 |
-
colorTo:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
app_file: app.py
|
| 10 |
-
pinned:
|
| 11 |
-
|
| 12 |
-
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
title: Comic Character Extractor
|
| 3 |
+
emoji: 🎨
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.22.0
|
| 8 |
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
short_description: Auto-extract characters from comic pages
|
| 12 |
---
|
| 13 |
|
| 14 |
+
## Comic Character Extractor
|
| 15 |
+
|
| 16 |
+
Upload a comic page image and the system **automatically detects, extracts, and re-renders every character** on the page using a neutral reference prompt (plain background, no emotion, no pose, no action).
|
| 17 |
+
|
| 18 |
+
### How It Works
|
| 19 |
+
|
| 20 |
+
1. **Upload** a comic page image
|
| 21 |
+
2. **Grounding DINO (tiny)** detects all characters/people in the page
|
| 22 |
+
3. **SAM (Segment Anything)** segments each character with precise masks
|
| 23 |
+
4. Each character is cropped onto a **plain white background**
|
| 24 |
+
5. **Qwen-Image-Edit-2511** re-renders each with a **neutral prompt**:
|
| 25 |
+
|
| 26 |
+
> "Extracted character reference image, front view, standing upright, neutral facial expression, no emotion, plain solid background, no action, no pose, studio lighting, clean white background"
|
| 27 |
+
|
| 28 |
+
### Features
|
| 29 |
+
|
| 30 |
+
- **Automatic character count** — detects as many characters as are on the page
|
| 31 |
+
- **Neutral reference prompts** — no emotion, no action, no pose, plain background
|
| 32 |
+
- **Batch extraction** — all characters extracted in one go
|
| 33 |
+
|
| 34 |
+
### Models Used
|
| 35 |
+
- **Detector**: [IDEA-Research/grounding-dino-tiny](https://huggingface.co/IDEA-Research/grounding-dino-tiny)
|
| 36 |
+
- **Segmenter**: [facebook/sam-vit-base](https://huggingface.co/facebook/sam-vit-base)
|
| 37 |
+
- **Editor**: [Qwen/Qwen-Image-Edit-2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511)
|
| 38 |
+
- **Base Space**: Inspired by [prithivMLmods/Qwen-Image-Edit-2511-LoRAs-Fast](https://huggingface.co/spaces/prithivMLmods/Qwen-Image-Edit-2511-LoRAs-Fast)
|
| 39 |
+
|
| 40 |
+
### Usage
|
| 41 |
+
1. Upload a comic page image (drag & drop or paste with Ctrl+V)
|
| 42 |
+
2. Click "Run" or press Ctrl+Enter
|
| 43 |
+
3. Wait for automatic detection & extraction
|
| 44 |
+
4. Browse extracted characters in the filmstrip
|