Spaces:
Configuration error
Configuration error
metadata
tags:
- ml-intern
Comic Character Extractor
Overview
This space automatically extracts all characters from a comic page image and re-renders each with a neutral reference prompt (plain background, no emotion, no pose, no action).
Built by cloning the prithivMLmods/Qwen-Image-Edit-2511-LoRAs-Fast studio UI and adding an automatic multi-character workflow.
How It Works
- Character Detection β Grounding DINO (tiny) detects all people/characters in the comic page.
- Segmentation β Segment Anything Model (SAM, vit-base) segments each detected character.
- Extraction β Each character is cropped onto a plain white background.
- Neutral Re-render β Qwen Image Edit 2511 renders each character with a neutral prompt:
white_background clean flat neutral character portrait, front_view face forward standing_pose neutral_expression, no_emotion no_action no_gesture
Features
- Auto-detects all characters β No need to specify how many characters are on the page.
- Neutral reference output β Plain background, no emotions, no poses, no actions.
- Studio UI β Dark-themed interface with canvas view, filmstrip, and inspector panel.
- Keyboard shortcuts β
Ctrl+Enterto auto-extract,Escapeto close zoom.
Usage
- Upload a comic page image (PNG/JPG).
- Click "Auto-Extract Characters" or press
Ctrl+Enter. - Each character appears as a separate image in the filmstrip.
- Click any character in the filmstrip to view it on the canvas.
- Use the Download button to save individual character images.
Models Used
| Component | Model |
|---|---|
| Character Detector | facebook/grounding-dino-tiny |
| Segmenter | facebook/sam-vit-base |
| Image Editor | Qwen/Qwen-Image-Edit-2511 |
Citation
This project uses:
License
MIT