wan-scail-replacement

Featured

SCAIL-2 in-video character replacement on WAN 2.1. WanSCAILToVideo + SCAIL2ColoredMask + SAM3, the reference-image framing→scale rule, and the tuning/compositing pitfalls

AI & Automation 738 stars 120 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
96
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SCAIL-2 In-Video Character Replacement (WAN 2.1) SCAIL-2 (zai-org, on WAN 2.1 14B) replaces the person in a driving video with a character you supply as a reference image, end-to-end, with no pose maps, and with multi-character support. It is the successor to WAN Animate / motion transfer for the "swap the subject, keep the motion" job. The official ComfyUI template is `video_wan21_scail2_character_replacement_int8`, built around `WanSCAILToVideo` (+ `SCAIL2ColoredMask`) with a SAM3 mask driving where the character goes. This skill documents the non-obvious behaviours that cost a full multi-minute render to discover. It is not a from-scratch graph. Start from the official template and apply the guidance below. ## The one rule that costs a re-render: reference framing controls SCALE **In `replacement_mode: true`, the reference image's FRAMING controls the output character's SIZE as well as its appearance.** The SAM3 mask controls where the character is placed; the reference image controls how large. Measured on a 720x1280 driving clip where the subject occupied ~30% of frame height (subject bbox 363 px): | Reference framing | Person bbox in output | vs driving subject | |---|---|---| | Full-bleed portrait (person ~93% of frame) | 621 px | **1.71x oversized** | | Reframed (person ~34% of frame) | 364 px | **1.003x — correct** | After reframing, top/bottom registration matched the driving subject within 1 px (the character stands on the same ground plane at the same hei...

Details

Author
artokun
Repository
artokun/comfyui-mcp
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

wan-3-0-prime-reference-to-video

Build video clips from reference images, reference videos, and reference audio with Wan-AI Wan 3.0 Prime Reference to Video on RunComfy. Up to 10 reference images, 5 reference videos and 5 reference audio clips are bound to a prompt that names them as "Image 1", "Video 1", "Audio 1", giving character, product and scene consistency across a 2-30 second shot at 480p, 720p or 1080p with a synchronized audio track. Documents the full input schema, the counted-second pricing model (reference videos are billed as duration, images and audio are not), and when to route to Wan 3.0 Prime text-to-video / image-to-video, Wan 2.7 or Seedance 2.0 Pro instead. Calls `runcomfy run wan-ai/wan-3.0-prime/reference-to-video` through the local RunComfy CLI. Triggers on "wan 3 prime reference to video", "wan 3.0 prime", "wan3 prime", "reference to video", "ref2v", "keep the same character across shots", "video from reference images", or any explicit ask to generate video from references with this model.

422 Updated today
aiskillstore
AI & Automation Listed

wan-3-prompting

Use when writing or fixing prompts for Wan 3.0 video generation (Alibaba), via any API route - multi-clip film scripts, reference-to-video with real people, or when generated scenes come out illogical (objects that refuse to disappear, actions that get skipped, the wrong person speaking). Encodes the official Alibaba prompt rules, the API surface that actually exists, and the failure modes already paid for.

0 Updated 1 weeks ago
raphaelbgr
AI & Automation Featured

wan-flf-video

Build WAN 2.2 First-Last-Frame video workflows. Native dual hi-lo (required), and WanVideoWrapper VACE approaches

738 Updated yesterday
artokun