• 版本 [version]
  • 下载 147
  • 文件大小 4354
  • 文件计数 1
  • 创建日期 2026年3月23日
  • 最后更新 2026年9月20日

【免费商用】输入图片自动抠图

【免费商用】输入图片自动抠图 是一套面向抠图场景的 ComfyUI 工作流,全图共 3 个节点、2 条连线。链路以 PreviewImage ×1、LoadImage ×1 为主干,输出图像,适合需要稳定批量出图的同学。主模型 sam_vit_h_4b8939.pth。下载后直接导入即可使用,建议显存 8GB 起。

  • 主模型:sam_vit_h_4b8939.pth
  • 核心节点:PreviewImage ×1、LoadImage ×1
  • 输出形式:输出图像
  • 规模:3 节点 / 2 连线
  • 建议显存:8GB 起
  • 适用场景:发丝级抠图、前后景分离、图层拆分与智能擦除。

资源头图

【免费商用】输入图片自动抠图

工作流节点图

【免费商用】输入图片自动抠图 工作流节点图

图较大可横向滚动;点击图片查看高清矢量原图(浏览器中可自由缩放)。

使用说明

下载工作流文件后在 ComfyUI 中直接拖入画布(或菜单 Load 导入)即可运行;缺失的自定义节点用 ComfyUI Manager 一键安装,模型按文件名放入对应的 models 目录。

源码预览

{
    "last_node_id": 25,
    "last_link_id": 24,
    "nodes": [
        {
            "id": 10,
            "type": "LayerMask: SegmentAnythingUltra V2",
            "pos": [
                1359,
                94
            ],
            "size": [
                393.1394958496094,
                342
            ],
            "flags": [],
            "order": 1,
            "mode": 0,
            "inputs": [
                {
                    "name": "image",
                    "type": "IMAGE",
                    "link": 24,
                    "label": "图像"
                }
            ],
            "outputs": [
                {
                    "name": "image",
                    "type": "IMAGE",
                    "links": [
                        11
                    ],
                    "slot_index": 0,
                    "label": "图像",
                    "shape": 3
                },
                {
                    "name": "mask",
                    "type": "MASK",
                    "links": [],
                    "slot_index": 1,
                    "label": "遮罩",
                    "shape": 3
                }
            ],
            "properties": {
                "Node name for S&R": "LayerMask: SegmentAnythingUltra V2"
            },
            "widgets_values": [
                "sam_vit_h_4b8939.pth",
                "GroundingDINO_SwinB (938MB)",
                0.3,
                "VITMatte",
                6,
                6,
                0.15,
                0.99,
                true,
                "Main body",
                "cuda",
                2
            ],
            "_widget_cache_map": [],
            "color": "rgba(27, 80, 119, 0.7)",
            "category": "Custom Nodes"
        },
        {
            "id": 11,
            "type": "PreviewImage",
            "pos": [
                1777,
                65
            ],
            "size": [
                310.7463073730469,
                398.59808349609375
            ],
            "flags": [],
            "order": 2,
            "mode": 0,
            "inputs": [
                {
                    "name": "images",
                    "type": "IMAGE",
                    "link": 11,
                    "label": "图像"
                }
            ],
            "outputs": [],
            "properties": {
                "Node name for S&R": "PreviewImage"
            },
            "widgets_values": [],
            "_widget_cache_map": [],
            "category": "Primitive Nodes"
        },
        {
            "id": 23,
            "type": "LoadImage",
            "pos": [
                993,
                62
            ],
            "size": [
                315,
                314
            ],
            "flags": [],
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
                {
                    "name": "IMAGE",
                    "type": "IMAGE",
                    "links": [
                        24
                    ],
                    "label": "图像"
                },
                {
                    "name": "MASK",
                    "type": "MASK",
                    "links": null,
                    "label": "遮罩"
                }
            ],
            "properties": {
                "Node name for S&R": "LoadImage"
            },
            "widgets_values": [
                "ComfyUI_temp_edqgy_00001_.png",
                "image"
            ],
            "_widget_cache_map": {
                "output (27).png": {
                    "value": "img/3182e97388e94f0b8fbd0234ac38e892/169bd76b4c017d3dca8220b54fb8efc8d9756647f9a99c1853962a3d9a08cef0.png",
                    "name": "outp
… (完整内容请下载文件查看)

代码较长,以上仅前 3800 字符 —— 点击下方按钮下载完整 JSON。

发表回复

你的电子邮件地址不会被公开 * 为必填字段

提交评论