CivArchive
    Video Object Replacement - v2.0
    NSFW

    Introduction

    This workflow uses Segment Anything v2 to segment out the part of the original video to be replaced. Then the Set Latent Noise Mask node is used before passing the VAE encoded video into the KSampler.

    You will provide a reference image to be used with IPAdapter and also a prompt to guide the generation of the new object. The depth controlnet is used to give some guidance on what the shape of the replaced object should be.

    Models

    1. SD1.5 Checkpoint: I use a LCM checkpoint so I do not need to use the AnimateLCM LoRA. You can use your favourite SD1.5 checkpoint. https://civarchive.com/models/4384?modelVersionId=252914

    2. AnimateLCM_sd15_t2v.ckpt: Download from https://huggingface.co/wangfuyun/AnimateLCM/tree/main and put in models/animatediff_models

    3. control_v11f1p_sd15_depth_fp16.safetensors and depth_anything_v2_vitl.pth. Download using Manager.

    4. IPAdapter PLUS: download ip-adapter-plus_sd15.safetensors using ComfyUI manager. Also download ViT-H and ViT-G clip_vision models using the ComfyUI manager.

    5. SAM2 models should automatically download

    Custom Nodes

    Install with Manager:

    1. ComfyUI-VideoHelperSuite

    2. Crystools

    3. KJNodes for ComfyUI

    4. ComfyUI's ControlNet Auxiliary Preprocessors

    5. ComfyUI-Advanced-ControlNet

    6. AnimateDiff Evolved

    7. ComfyUI_IPAdapter_plus

    Description

    Updated the workflow to use SAM2.

    FAQ

    Comments (1)

    larryvw1100Oct 17, 2025
    CivitAI

    I got it to work but where do i set the color of hair that I want to change in the video .also what is the first part of the wowflow used for can I disable it

    Workflows
    SD 1.5

    Details

    Downloads
    371
    Platform
    CivitAI
    Platform Status
    Available
    Created
    10/10/2024
    Updated
    5/14/2026
    Deleted
    -

    Files

    videoObject_v20.zip

    Mirrors

    CivitAI (1 mirrors)