diff --git a/example_workflows/depthflow_example.json b/example_workflows/depthflow_example.json new file mode 100644 index 0000000..1497cb3 --- /dev/null +++ b/example_workflows/depthflow_example.json @@ -0,0 +1,400 @@ +{ + "last_node_id": 7, + "last_link_id": 9, + "nodes": [ + { + "id": 5, + "type": "DepthflowMotionPresetOrbital", + "pos": { + "0": 1102.1387939453125, + "1": 469.9162902832031 + }, + "size": [ + 311.6011275454546, + 202 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "name": "feature", + "type": "FEATURE", + "link": null, + "shape": 7 + } + ], + "outputs": [ + { + "name": "DEPTHFLOW_MOTION", + "type": "DEPTHFLOW_MOTION", + "links": [ + 5 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DepthflowMotionPresetOrbital", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "widgets_values": [ + 1, + 0, + "intensity", + "relative", + 1, + false, + 0.5 + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 6, + "type": "VHS_VideoCombine", + "pos": { + "0": 1547.1387939453125, + "1": 112.91671752929688 + }, + "size": [ + 315, + 840.25 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 7, + "shape": 7 + }, + { + "name": "audio", + "type": "AUDIO", + "link": null, + "shape": 7 + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "link": null, + "shape": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": null, + "shape": 7 + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "widgets_values": { + "frame_rate": 30, + "loop_count": 0, + "filename_prefix": "AnimateDiff", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 30 + }, + "muted": false + } + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 3, + "type": "DownloadAndLoadDepthAnythingV2Model", + "pos": { + "0": 665.1389770507812, + "1": 219.91680908203125 + }, + "size": [ + 294, + 58 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "da_v2_model", + "type": "DAMODEL", + "links": [ + 1 + ] + } + ], + "properties": { + "Node name for S&R": "DownloadAndLoadDepthAnythingV2Model", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "widgets_values": [ + "depth_anything_v2_vitl_fp32.safetensors" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 2, + "type": "DepthAnything_V2", + "pos": { + "0": 697.1389770507812, + "1": 345.91680908203125 + }, + "size": { + "0": 214.20001220703125, + "1": 46 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "da_model", + "type": "DAMODEL", + "link": 1 + }, + { + "name": "images", + "type": "IMAGE", + "link": 8 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 4 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DepthAnything_V2", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 7, + "type": "LoadImage", + "pos": { + "0": 148, + "1": 115 + }, + "size": [ + 379.1454176280989, + 528.078038132231 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 8, + 9 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "widgets_values": [ + "241003125903_151_00002_.png", + "image" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 4, + "type": "Depthflow", + "pos": { + "0": 1101.1387939453125, + "1": 112.91671752929688 + }, + "size": [ + 315, + 286 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 9 + }, + { + "name": "depth_map", + "type": "IMAGE", + "link": 4 + }, + { + "name": "motion", + "type": "DEPTHFLOW_MOTION", + "link": 5 + }, + { + "name": "effects", + "type": "DEPTHFLOW_EFFECTS", + "link": null, + "shape": 7 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Depthflow", + "ttNbgOverride": { + "color": "#2a363b", + "bgcolor": "#3f5159", + "groupcolor": "#3f789e" + } + }, + "widgets_values": [ + 1, + 30, + 30, + 150, + 100, + 2, + 0, + "mirror" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + } + ], + "links": [ + [ + 1, + 3, + 0, + 2, + 0, + "DAMODEL" + ], + [ + 4, + 2, + 0, + 4, + 1, + "IMAGE" + ], + [ + 5, + 5, + 0, + 4, + 2, + "DEPTHFLOW_MOTION" + ], + [ + 7, + 4, + 0, + 6, + 0, + "IMAGE" + ], + [ + 8, + 7, + 0, + 2, + 1, + "IMAGE" + ], + [ + 9, + 7, + 0, + 4, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.7513148009015777, + "offset": [ + 26.598837170382293, + 105.44055009895037 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index dd63d9c..d5d5ecf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-depthflow-nodes" description = "Implementation of DepthFlow nodes for ComfyUI, adds a 2.5D parallax effect to images and videos. Compatible with Ryan's Flex system." -version = "1.0.1" +version = "1.0.2" license = {file = "LICENSE"} dependencies = ["numpy", "torch", "pydantic", "depthflow==0.7.1"]