Smooth Lock-On Stabilization with Wan2.1 VACE outpainting
5.0
0 reviewsDescription
What's this?
My previous Lock-On Stabilization workflow (Lock-On Stabilization using Florence2 and SAM2) Acropped the video to match the subject's shape. This workflow takes the opposite approach: instead of cropping, what if we use **Wan2.1 VACE outpainting** to fill in the areas that become visible when the camera tracks the subject?
Workflow
This workflow consists of two main steps: Lock-On Stabilization and Wan2.1 VACE Outpainting. While they're connected in this workflow, users with 12GB VRAM or less should run these steps separately.
Lock-On Stabilization using Florence-2 and SAM2
- 🟥 Resize images
- 🟪 Add green padding around all edges
- → This green area will later be converted to masks
- 🟩 Object detection with Florence-2 + segmentation with SAM2
- 🟦 Extract mask position and size, then crop so the mask stays centered
- 🟨 Receive X(Y) axis coordinates as lists and smooth them using Kalman filter
Wan2.1 VACE Outpainting
- 🟦 🔧 Mask From Color node converts green areas to masks
- 🟦 Convert green areas to gray using the masks (VACE requires gray areas for outpainting)
- → Then standard Wan2.1 VACE processing
Discussion
(No comments yet)
Loading...
Reviews
No reviews yet
Versions (1)
- latest (2 months ago)
Node Details
Primitive Nodes (26)
CFGZeroStar (1)
DownloadAndLoadSAM2Model (1)
Florence2ModelLoader (1)
Florence2Run (2)
Florence2toCoordinates (2)
GODMT_BatchToList (2)
GODMT_ListToBatch (2)
IDENode (2)
ImagePadKJ (1)
MarkdownNote (6)
ModelSamplingSD3 (1)
PrimitiveFloat (1)
Sam2VideoSegmentation (1)
Sam2VideoSegmentationAddPoints (1)
UnetLoaderGGUF (1)
WanVaceToVideo (1)
Custom Nodes (35)
ComfyUI
- ImageFromBatch (1)
- PreviewImage (3)
- ImageCrop (1)
- CLIPLoader (1)
- VAEDecode (1)
- CLIPTextEncode (2)
- VAELoader (1)
- UNetTemporalAttentionMultiply (1)
- GrowMask (1)
- EmptyImage (1)
- KSampler (1)
- ImageCompositeMasked (1)
- ImageScaleToTotalPixels (1)
- SimpleMath+ (2)
- MaskFromColor+ (1)
- ImageResize+ (1)
- MasksToMaskList (1)
- ImpactDecomposeSEGS (1)
- ImpactFrom_SEG_ELT (1)
- ImpactFrom_SEG_ELT_bbox (1)
- MaskToSEGS (1)
- ImpactImageBatchToImageList (1)
- ImageListToImageBatch (1)
- VHS_VideoCombine (2)
- VHS_VideoInfoLoaded (2)
- VHS_LoadVideo (1)
- GetImageSize (3)
Model Details
Checkpoints (0)
LoRAs (0)