How sirioberati/genjustsu-open-source-workflow works
Genjustsu is a local video subject-replacement workflow with a browser UI and agent CLI. Users prepare a clip in depth, face-mesh, or combined mode; inspect and approve the prepared artifacts; submit an authorized Seedance draft with character references; then review the result and optionally approve 1080p. The final preview restores the full original soundtrack. The graph follows documented capabilities and excerpted calls; unsampled implementation details are omitted where their connections cannot be verified.
Main entry points: pipeline.py Depth workflow · app.py Job API · seedance_bridge.py Seedance integration · face_mesh.py Face mesh modes
Components 19
Local entry points
- Browser UI
static/index.html - Job API
app.py - Agent CLI
workflow.py
Video preparation
- Depth workflow
pipeline.py - SAM masks
raw_masks.py - Face mesh modes
face_mesh.py - Mesh tracking worker
mesh_worker.py - Replicate models
- Hugging Face depth
Review and audio
- Audio processing
audio_workflow.py - Artifact approval
mask_review.py - Job artifacts
app.py
Generation and results
- Seedance integration
seedance_bridge.py - Media URL hosting
media_host.py - Callback receiver
webhook.py - Enhancor Seedance
- Media hosts
- Final preview
audio_workflow.py
Other components
- User or agent
Connections 25
- User or agent → Browser UI: uses
README.md - User or agent → Agent CLI: operates
README.md - Browser UI → Job API: submits jobs
README.md - Job API → Depth workflow: runs depth mode
app.py - Job API → Face mesh modes: runs mesh mode
app.py - Agent CLI → Depth workflow: prepares depth
workflow.py - Agent CLI → Face mesh modes: prepares mesh
workflow.py - Depth workflow → SAM masks: requests masks
pipeline.py - Depth workflow → Replicate models: requests depth or masks
pipeline.py - Depth workflow → Hugging Face depth: requests depth
README.md - Face mesh modes → Depth workflow: runs combined mode
face_mesh.py - Face mesh modes → Mesh tracking worker: launches tracking
face_mesh.py - Depth workflow → Audio processing: separates source audio
pipeline.py - Face mesh modes → Audio processing: prepares vocals
face_mesh.py - Job API → Artifact approval: checks approval
app.py - Agent CLI → Artifact approval: reviews artifacts
workflow.py - Job API → Seedance integration: submits draft or HD
app.py - Seedance integration → Artifact approval: requires approval
seedance_bridge.py - Seedance integration → Audio processing: prepares and restores audio
seedance_bridge.py - Seedance integration → Media URL hosting: uploads media
seedance_bridge.py - Media URL hosting → Media hosts: uploads files
media_host.py - Seedance integration → Enhancor Seedance: queues and polls
seedance_bridge.py - Callback receiver → Enhancor Seedance: receives callback traffic
README.md - Audio processing → Final preview: restores original audio
audio_workflow.py - Job API → Final preview: serves job results
app.py