{
 "last_node_id": 20,
 "last_link_id": 17,
 "nodes": [
  {
   "id": 1,
   "type": "MarkdownNote",
   "pos": [
    0,
    -460.0
   ],
   "size": [
    640,
    290
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [],
   "outputs": [],
   "properties": {},
   "widgets_values": [
    "**Needs in ComfyUI's `input` folder:** `example.png`, `clip0.png` .. `clip3.png`\n\nOne photo (example.png): Refocus blurs by depth (focus: a pixel 'x,y', a nearness 0-1, or empty = the subject). Relight shades it with a new light from the normals (no cast shadows). Parallax renders a short camera move from its depth; the holes are stretched or filled with LaMa. Remove video objects (clip0.png .. clip3.png): SAM 2 tracks the named object, its background is copied from other frames along the optical flow and only what no frame shows is filled with LaMa."
   ]
  },
  {
   "id": 2,
   "type": "LoadImage",
   "pos": [
    0.0,
    0.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      1,
      3,
      5
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "example.png",
    "image"
   ]
  },
  {
   "id": 3,
   "type": "FastforksRefocus",
   "pos": [
    1380.0,
    0.0
   ],
   "size": [
    330,
    300
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 1
    },
    {
     "name": "subject",
     "type": "MASK",
     "link": null
    }
   ],
   "outputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "links": [
      2
     ],
     "slot_index": 0
    },
    {
     "name": "nearness",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "depth-anything-v2-s",
    "auto",
    "auto",
    "",
    0.02,
    0.0
   ]
  },
  {
   "id": 4,
   "type": "PreviewImage",
   "pos": [
    1790.0,
    0.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 2
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 5,
   "type": "FastforksRelight",
   "pos": [
    1380.0,
    360.0
   ],
   "size": [
    330,
    380
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 3
    }
   ],
   "outputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "links": [
      4
     ],
     "slot_index": 0
    },
    {
     "name": "shading",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    },
    {
     "name": "normals",
     "type": "IMAGE",
     "links": [],
     "slot_index": 2
    }
   ],
   "properties": {},
   "widgets_values": [
    "moge-2-vitb-normal",
    "auto",
    "auto",
    -1.0,
    -1.0,
    -1.0,
    0.8,
    0.3,
    0.0,
    "1, 1, 1"
   ]
  },
  {
   "id": 6,
   "type": "PreviewImage",
   "pos": [
    1790.0,
    360.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 4
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 7,
   "type": "FastforksParallax",
   "pos": [
    1380.0,
    800.0
   ],
   "size": [
    330,
    340
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 5
    }
   ],
   "outputs": [
    {
     "name": "frames",
     "type": "IMAGE",
     "links": [
      6
     ],
     "slot_index": 0
    },
    {
     "name": "holes",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    },
    {
     "name": "cameras",
     "type": "STRING",
     "links": [
      7
     ],
     "slot_index": 2
    }
   ],
   "properties": {},
   "widgets_values": [
    "moge-2-vitb-normal",
    "big-lama",
    "auto",
    "auto",
    "orbit",
    60,
    0.05,
    "stretch"
   ]
  },
  {
   "id": 8,
   "type": "PreviewImage",
   "pos": [
    1790.0,
    800.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 6
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 9,
   "type": "PreviewAny",
   "pos": [
    1790.0,
    1140.0
   ],
   "size": [
    300,
    160
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 7
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "title": "cameras",
   "widgets_values": []
  },
  {
   "id": 10,
   "type": "LoadImage",
   "pos": [
    0.0,
    1300.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      8
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip0.png",
    "image"
   ]
  },
  {
   "id": 11,
   "type": "LoadImage",
   "pos": [
    0.0,
    1680.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      9
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip1.png",
    "image"
   ]
  },
  {
   "id": 12,
   "type": "LoadImage",
   "pos": [
    0.0,
    2060.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 12,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      11
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip2.png",
    "image"
   ]
  },
  {
   "id": 13,
   "type": "LoadImage",
   "pos": [
    0.0,
    2440.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 13,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      13
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "clip3.png",
    "image"
   ]
  },
  {
   "id": 14,
   "type": "ImageBatch",
   "pos": [
    380.0,
    1300.0
   ],
   "size": [
    200,
    50
   ],
   "flags": {},
   "order": 14,
   "mode": 0,
   "inputs": [
    {
     "name": "image1",
     "type": "IMAGE",
     "link": 8
    },
    {
     "name": "image2",
     "type": "IMAGE",
     "link": 9
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      10
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 15,
   "type": "ImageBatch",
   "pos": [
    660.0,
    1420.0
   ],
   "size": [
    200,
    50
   ],
   "flags": {},
   "order": 15,
   "mode": 0,
   "inputs": [
    {
     "name": "image1",
     "type": "IMAGE",
     "link": 10
    },
    {
     "name": "image2",
     "type": "IMAGE",
     "link": 11
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      12
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 16,
   "type": "ImageBatch",
   "pos": [
    940.0,
    1540.0
   ],
   "size": [
    200,
    50
   ],
   "flags": {},
   "order": 16,
   "mode": 0,
   "inputs": [
    {
     "name": "image1",
     "type": "IMAGE",
     "link": 12
    },
    {
     "name": "image2",
     "type": "IMAGE",
     "link": 13
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      14
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 17,
   "type": "FastforksRemoveObjects",
   "pos": [
    1380.0,
    1300.0
   ],
   "size": [
    330,
    420
   ],
   "flags": {},
   "order": 17,
   "mode": 0,
   "inputs": [
    {
     "name": "frames",
     "type": "IMAGE",
     "link": 14
    },
    {
     "name": "mask",
     "type": "MASK",
     "link": null
    }
   ],
   "outputs": [
    {
     "name": "frames",
     "type": "IMAGE",
     "links": [
      15
     ],
     "slot_index": 0
    },
    {
     "name": "mask",
     "type": "MASK",
     "links": [
      16
     ],
     "slot_index": 1
    },
    {
     "name": "inpainted",
     "type": "MASK",
     "links": [],
     "slot_index": 2
    }
   ],
   "properties": {},
   "widgets_values": [
    "person",
    "",
    "",
    "sea-raft-s",
    "big-lama",
    "sam2.1-hiera-tiny",
    "grounding-dino-tiny",
    "auto",
    "auto",
    8,
    960
   ]
  },
  {
   "id": 18,
   "type": "PreviewImage",
   "pos": [
    1790.0,
    1340.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 18,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 15
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 19,
   "type": "MaskToImage",
   "pos": [
    1790.0,
    1680.0
   ],
   "size": [
    200,
    30
   ],
   "flags": {},
   "order": 19,
   "mode": 0,
   "inputs": [
    {
     "name": "mask",
     "type": "MASK",
     "link": 16
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      17
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 20,
   "type": "PreviewImage",
   "pos": [
    2170.0,
    1660.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 20,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 17
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  }
 ],
 "links": [
  [
   1,
   2,
   0,
   3,
   0,
   "IMAGE"
  ],
  [
   2,
   3,
   0,
   4,
   0,
   "IMAGE"
  ],
  [
   3,
   2,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   4,
   5,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   5,
   2,
   0,
   7,
   0,
   "IMAGE"
  ],
  [
   6,
   7,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   7,
   7,
   2,
   9,
   0,
   "*"
  ],
  [
   8,
   10,
   0,
   14,
   0,
   "IMAGE"
  ],
  [
   9,
   11,
   0,
   14,
   1,
   "IMAGE"
  ],
  [
   10,
   14,
   0,
   15,
   0,
   "IMAGE"
  ],
  [
   11,
   12,
   0,
   15,
   1,
   "IMAGE"
  ],
  [
   12,
   15,
   0,
   16,
   0,
   "IMAGE"
  ],
  [
   13,
   13,
   0,
   16,
   1,
   "IMAGE"
  ],
  [
   14,
   16,
   0,
   17,
   0,
   "IMAGE"
  ],
  [
   15,
   17,
   0,
   18,
   0,
   "IMAGE"
  ],
  [
   16,
   17,
   1,
   19,
   0,
   "MASK"
  ],
  [
   17,
   19,
   0,
   20,
   0,
   "IMAGE"
  ]
 ],
 "groups": [
  {
   "id": 1,
   "title": "Inputs",
   "bounding": [
    -30.0,
    -90.0,
    1200.0,
    2900.0
   ],
   "color": "#88A",
   "font_size": 24,
   "flags": {}
  },
  {
   "id": 2,
   "title": "fastforks",
   "bounding": [
    1350.0,
    -90.0,
    1150.0,
    2080.0
   ],
   "color": "#3f789e",
   "font_size": 24,
   "flags": {}
  }
 ],
 "config": {},
 "extra": {},
 "version": 0.4
}