百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

ComfyUI-MatAnyone

> 编程语言
开源

ComfyUI 中的 MatAnyone

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

ComfyUI 中的 MatAnyone

ComfyUI-MatAnyone

MatAnyone in ComfyUI (Remove background)

Stable Video Matting with Consistent Memory Propagation:

Scaling Video Matting via a Learned Quality Evaluator:

Download matanyone.pth from

Download matanyone2.pth from

bash
checkpoint/
    matanyone.pth
    matanyone2.pth

https://github.com/user-attachments/assets/f1805028-92ed-40b7-8bf5-85f1a3ddbe25

Workflow

The extension now includes the MatAnyone2Video node, which runs the improved MatAnyoneV2 model for higher-quality and more robust video matting.

Workflow: workflow/workflow_mat_anyone.json

(Not a workflow-embedded image)

Inputs:

  • src_video
  • forground_mask (IMAGE) or foreground_MASK (MASK): The input mask. IMAGE option will automatically convert a black/white image to a mask. At least one option must be given.
  • solid_color (optional): The solid color to create a screen. Defaults to Green Screen.
  • mask_frame: The input mask's index (defaults to 0). Support first (0), last and middle frame.
  • n_warmup: Number of iterations to warm up the model. Defaults to 10.

Memory Management Inputs:

  • max_internal_size (optional): Resizes the internal processing resolution to save memory (e.g., 360, 480). Default is -1 (full resolution).
  • max_mem_frames (optional): The number of key frames kept in high-resolution working memory. Default is 5.
  • use_long_term (optional): Limits active memory scaling by compressing older frames into long-term prototype memories, preventing OOM over time. Default is False. (Useful for long videos)

Your input mask won't actually be in the final matte. Instead, the warmup process generate a new input mask, which is then propagated throughout the video.

Additional Inputs for V2:

  • r_erode (optional): The radius for morphological erosion applied to the foreground_mask before processing (defaults to 0). Useful for refining rough masks.
  • r_dilate (optional): The radius for morphological dilation applied to the foreground_mask before processing (defaults to 0).

Credit

cite
@InProceedings{yang2025matanyone,
    title     = {{MatAnyone}: Stable Video Matting with Consistent Memory Propagation},
    author    = {Yang, Peiqing and Zhou, Shangchen and Zhao, Jixin and Tao, Qingyi and Loy, Chen Change},
    booktitle = {arXiv preprint arXiv:2501.14677},
    year      = {2025}
}

@InProceedings{yang2026matanyone2,
   title     = {{MatAnyone 2}: Scaling Video Matting via a Learned Quality Evaluator},
   author    = {Yang, Peiqing and Zhou, Shangchen and Hao, Kai and Tao, Qingyi},
   booktitle = {CVPR},
   year      = {2026}
}

Issues· 1 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言