add a basic workflow

This commit is contained in:
unknown
2024-09-13 10:28:32 +08:00
parent 2d92068374
commit a2c19b926b
2 changed files with 503 additions and 1 deletions
+2 -1
View File
@@ -18,4 +18,5 @@ you can check it at directory: ~/.cache/huggingface/hub/models--depth-anything--
if OpenGL can find gpu, you will see log like below, and the code will run quite fast, otherwise it will run really slow.
OpenGL Renderer: NVIDIA GeForce RTX ...
Good Luck, have fun!
Good Luck, have fun!
+501
View File
@@ -0,0 +1,501 @@
{
"last_node_id": 39,
"last_link_id": 32,
"nodes": [
{
"id": 22,
"type": "VHS_LoadVideoPath",
"pos": [
1575,
-220
],
"size": [
315,
214
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
},
{
"name": "video",
"type": "STRING",
"link": 29,
"widget": {
"name": "video"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
31
],
"slot_index": 0,
"shape": 3
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "audio",
"type": "AUDIO",
"links": null,
"shape": 3
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideoPath"
},
"widgets_values": {
"video": "X://insert/path/here.mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"frame_load_cap": 0,
"skip_first_frames": 0,
"force_rate": 0,
"filename": "X://insert/path/here.mp4",
"type": "path",
"format": "video/mp4",
"select_every_nth": 1
},
"muted": false
}
}
},
{
"id": 29,
"type": "GetImageSize_",
"pos": [
374,
-83
],
"size": {
"0": 315,
"1": 118
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 25
}
],
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
18,
27
],
"slot_index": 0,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": [
19,
28
],
"slot_index": 1,
"shape": 3
},
{
"name": "min_width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "min_height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetImageSize_"
},
"widgets_values": [
512
]
},
{
"id": 30,
"type": "easy showAnything",
"pos": [
884,
75
],
"size": {
"0": 210,
"1": 76
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "anything",
"type": "*",
"link": 18
}
],
"properties": {
"Node name for S&R": "easy showAnything"
},
"widgets_values": [
"1920"
]
},
{
"id": 31,
"type": "easy showAnything",
"pos": [
876,
230
],
"size": {
"0": 210,
"1": 76
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "anything",
"type": "*",
"link": 19
}
],
"properties": {
"Node name for S&R": "easy showAnything"
},
"widgets_values": [
"1080"
]
},
{
"id": 34,
"type": "DepthFlowSimple",
"pos": [
985,
-236
],
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 26
},
{
"name": "width",
"type": "INT",
"link": 27,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 28,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "filepath",
"type": "STRING",
"links": [
29
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DepthFlowSimple"
},
"widgets_values": [
30,
20,
20,
"depthflow"
]
},
{
"id": 35,
"type": "LoadImage",
"pos": [
-50,
-325
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25,
26
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"depthflow_moutain.png",
"image"
]
},
{
"id": 37,
"type": "VHS_VideoCombine",
"pos": [
2076,
-199
],
"size": [
315,
489.9375
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 31
},
{
"name": "audio",
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": [
32
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 30,
"loop_count": 0,
"filename_prefix": "AnimateDiff",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "AnimateDiff_00006.mp4",
"subfolder": "",
"type": "temp",
"format": "video/h264-mp4",
"frame_rate": 60
}
}
}
},
{
"id": 39,
"type": "LayerUtility: PurgeVRAM",
"pos": [
2536.603788459323,
-164.2296786163215
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "anything",
"type": "*",
"link": 32
}
],
"properties": {
"Node name for S&R": "LayerUtility: PurgeVRAM"
},
"widgets_values": [
true,
true
]
}
],
"links": [
[
18,
29,
0,
30,
0,
"*"
],
[
19,
29,
1,
31,
0,
"*"
],
[
25,
35,
0,
29,
0,
"IMAGE"
],
[
26,
35,
0,
34,
0,
"IMAGE"
],
[
27,
29,
0,
34,
1,
"INT"
],
[
28,
29,
1,
34,
2,
"INT"
],
[
29,
34,
0,
22,
2,
"STRING"
],
[
31,
22,
0,
37,
0,
"IMAGE"
],
[
32,
37,
0,
39,
0,
"*"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5989500000000011,
"offset": [
-1211.0716072847422,
861.5741398595123
]
}
},
"version": 0.4
}