更改任意物件

使用簡單的提示詞遮罩影片中的特定物件,並透過提示詞或可選的參考圖替換該物件。所用模型:SAM3 + Wan萬相 2.1 VACE 區域性重繪

Input

Name the object in the video, in a word or two (e.g. "lemon").

Default: pineapple

Describe the shot with the new object in it.

A photo of the replacement object, ideally on a plain background.

The clip with the object to replace.

How many frames of the clip to process (89 at 30 fps is about 3 s); keep it 4n+1.

Default: 89

Output height.

Default: 1,280

Output width; 1280×720 for wide, 720×1280 for tall.

Default: 720

Advanced settings

What to avoid.

Leave empty for a new result each run. Enter a number to repeat one.

Output
00:00
Example

試試範例

關於此工作流程

ComfyUI 中的「Change Any Objects」工作流程,讓使用者透過簡單的文字提示詞(或選用參考圖像)在影片中替換或改動物件。此工作流程利用進階局部修補技術,結合 SAM3 與 Wan2.1 VACE 等模型,以達成精準的物件遮罩與替換。流程從載入影片輸入開始,並透過 VHS_LoadVideo 與 WanVideoDecode 等節點完成必要設定。SAM3 模型負責影片分割與物件遮罩,讓使用者能用直覺的提示詞指定要改動的物件。當物件被辨識後,Wan2.1 VACE 模型會接手進行局部修補與替換,將使用者提示詞或參考圖像所導出的新內容填入。這組模型與節點的搭配,使影片編輯能在不需要大量手動修圖的情況下完成創意轉換。

問答