How deepbeepmeep/wangp works
WanGP is a local generative-media application spanning video, image, audio/TTS, and 3D. The principal workflow is a user submitting a generation request through the web interface or API, selecting a model, and receiving an output that can be browsed and reused. Its runtime also includes job queuing, input preparation, postprocessing, workspace storage, and low-VRAM model execution. The README documents these capabilities; sampled source excerpts show selected inference and memory-management behavior, but not the overall application dispatch path, so that connection is marked unverified.
Main entry points: gradio Generation Queue · wan Video Generation · models Image Generation · TTS Audio and TTS
Components 18
Application
- Web Interface
shared/gradio - WanGP API
shared/utils/fastapi_routes.py - Headless Mode
wgp.py - Generation Queue
shared/gradio - Workspace Storage
shared/utils/workspace_storage.py
Generation Models
- Video Generation
models/wan - Image Generation
models - Audio and TTS
models/TTS - 3D Generation
models/hunyuan3d
Media Tools
- Input Preparation
preprocessing - Prompt Enhancement
models/TTS/prompt_enhancers.py - Output Processing
postprocessing - Media Galleries
shared/utils
Runtime Services
- VRAM Offloading
mmgp/offload.py - Model Downloads
shared/utils/files_locator.py
Automation
- Deepy Agent
shared/deepy/controller.py - MCP Server
shared/mcp/server.py
Other components
- User
Connections 25
- User → Web Interface: submits requests
- User → WanGP API: sends requests
- User → Headless Mode: launches batches
- Web Interface → Generation Queue: queues jobs
- WanGP API → Generation Queue: queues jobs
- Headless Mode → Video Generation: requests generation
- Generation Queue → Video Generation: dispatches jobs
- Generation Queue → Image Generation: dispatches jobs
- Generation Queue → Audio and TTS: dispatches jobs
- Generation Queue → 3D Generation: dispatches jobs
- Video Generation → VRAM Offloading: uses offloading
models/wan/ovi_fusion_engine.py - Image Generation → VRAM Offloading: uses offloading
models/minimax_h3/pipeline.py - Audio and TTS → VRAM Offloading: uses offloading
models/TTS/ace_step15/pipeline_ace_step15.py - User → Input Preparation: prepares inputs
- Video Generation → Prompt Enhancement: enhances prompts
- Image Generation → Output Processing: processes outputs
- Video Generation → Output Processing: processes outputs
- Audio and TTS → Output Processing: processes outputs
- Web Interface → Workspace Storage: manages media
- Workspace Storage → Media Galleries: provides generations
shared/utils/workspace_storage.py - User → Deepy Agent: assigns tasks
- Deepy Agent → MCP Server: offers agent tools
- Video Generation → Model Downloads: selects model files
models/wan/ovi_fusion_engine.py - Image Generation → Model Downloads: selects model files
models/ming_image/ming_pipeline.py - Audio and TTS → Model Downloads: selects model files
models/TTS/index_tts2/pipeline.py