ComfyUI-CogVideoXWrapper/examples/cogvideo_2b_vid2vid_test_example_02.json
2024-08-27 18:32:57 +03:00

1033 lines
18 KiB
JSON

{
"last_node_id": 73,
"last_link_id": 191,
"nodes": [
{
"id": 20,
"type": "CLIPLoader",
"pos": [
-29,
407
],
"size": {
"0": 451.30548095703125,
"1": 82
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
54,
56
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"t5\\google_t5-v1_1-xxl_encoderonly-fp8_e4m3fn.safetensors",
"sd3"
]
},
{
"id": 31,
"type": "CogVideoTextEncode",
"pos": [
503,
521
],
"size": {
"0": 463.01251220703125,
"1": 98.10446166992188
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 56
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"links": [
161
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CogVideoTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 41,
"type": "ImageResizeKJ",
"pos": [
206,
-69
],
"size": {
"0": 315,
"1": 242
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 180
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"type": "INT",
"link": null,
"widget": {
"name": "width_input"
}
},
{
"name": "height_input",
"type": "INT",
"link": null,
"widget": {
"name": "height_input"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
126
],
"slot_index": 0,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
720,
480,
"lanczos",
false,
2,
0,
0,
"disabled"
]
},
{
"id": 37,
"type": "CogVideoImageEncode",
"pos": [
939,
-53
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "pipeline",
"type": "COGVIDEOPIPE",
"link": 83,
"slot_index": 0
},
{
"name": "image",
"type": "IMAGE",
"link": 129,
"slot_index": 1
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"links": [
172
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CogVideoImageEncode"
}
},
{
"id": 11,
"type": "CogVideoDecode",
"pos": [
1224,
737
],
"size": {
"0": 210,
"1": 78
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "pipeline",
"type": "COGVIDEOPIPE",
"link": 166
},
{
"name": "samples",
"type": "LATENT",
"link": 167
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
118
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CogVideoDecode"
},
"widgets_values": [
false
]
},
{
"id": 30,
"type": "CogVideoTextEncode",
"pos": [
500,
308
],
"size": {
"0": 474.8450012207031,
"1": 164.7423553466797
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 54
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"links": [
160
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CogVideoTextEncode"
},
"widgets_values": [
"A high-definition nature video showcasing a brown bear as it gracefully runs down a crystal-clear stream, surrounded by the serene ambiance of a dense, verdant forest. The sunlight filters through the canopy of tall trees, casting dappled light on the forest floor, while the gentle sound of flowing water and rustling leaves creates a peaceful atmosphere. The brown bear's fur glistens in the sunlight, highlighting its striking red and white markings as it navigates the stream with agility and playfulness."
]
},
{
"id": 57,
"type": "GetImageSizeAndCount",
"pos": [
603,
-65
],
"size": {
"0": 202.2143096923828,
"1": 99.23601531982422
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 126,
"slot_index": 0
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
129,
191
],
"slot_index": 0,
"shape": 3
},
{
"name": "720 width",
"type": "INT",
"links": [
165
],
"slot_index": 1,
"shape": 3
},
{
"name": "480 height",
"type": "INT",
"links": [
164
],
"slot_index": 2,
"shape": 3
},
{
"name": "32 count",
"type": "INT",
"links": [
178,
181
],
"slot_index": 3,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 45,
"type": "VHS_LoadVideo",
"pos": [
-93,
-153
],
"size": [
235.1999969482422,
359.5999984741211
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
},
{
"name": "frame_load_cap",
"type": "INT",
"link": 177,
"widget": {
"name": "frame_load_cap"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
179
],
"slot_index": 0,
"shape": 3
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "audio",
"type": "VHS_AUDIO",
"links": null,
"shape": 3
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "jeep.mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 20,
"skip_first_frames": 0,
"select_every_nth": 1,
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"frame_load_cap": 20,
"skip_first_frames": 0,
"force_rate": 0,
"filename": "jeep.mp4",
"type": "input",
"format": "video/mp4",
"select_every_nth": 1
}
}
}
},
{
"id": 70,
"type": "GetImageSizeAndCount",
"pos": [
214,
-234
],
"size": {
"0": 202.2143096923828,
"1": 99.23601531982422
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 179,
"slot_index": 0
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
180
],
"slot_index": 0,
"shape": 3
},
{
"name": "512 width",
"type": "INT",
"links": [],
"slot_index": 1,
"shape": 3
},
{
"name": "256 height",
"type": "INT",
"links": [],
"slot_index": 2,
"shape": 3
},
{
"name": "32 count",
"type": "INT",
"links": [],
"slot_index": 3,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 69,
"type": "INTConstant",
"pos": [
-90,
-305
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
177
],
"shape": 3
}
],
"title": "Frames to load",
"properties": {
"Node name for S&R": "INTConstant"
},
"widgets_values": [
32
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 64,
"type": "CogVideoSampler",
"pos": [
1090,
290
],
"size": {
"0": 312.9841613769531,
"1": 342.8801574707031
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pipeline",
"type": "COGVIDEOPIPE",
"link": 159
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 160
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 161
},
{
"name": "samples",
"type": "LATENT",
"link": 172
},
{
"name": "height",
"type": "INT",
"link": 164,
"widget": {
"name": "height"
}
},
{
"name": "width",
"type": "INT",
"link": 165,
"widget": {
"name": "width"
}
},
{
"name": "num_frames",
"type": "INT",
"link": 178,
"widget": {
"name": "num_frames"
}
},
{
"name": "t_tile_length",
"type": "INT",
"link": 181,
"slot_index": 7,
"widget": {
"name": "t_tile_length"
}
}
],
"outputs": [
{
"name": "cogvideo_pipe",
"type": "COGVIDEOPIPE",
"links": [
166
],
"shape": 3
},
{
"name": "samples",
"type": "LATENT",
"links": [
167
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CogVideoSampler"
},
"widgets_values": [
480,
720,
16,
25,
6,
9,
"fixed",
"DDIM",
"DDIM",
8,
0.85
]
},
{
"id": 1,
"type": "DownloadAndLoadCogVideoModel",
"pos": [
649,
182
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "cogvideo_pipe",
"type": "COGVIDEOPIPE",
"links": [
83,
159
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DownloadAndLoadCogVideoModel"
},
"widgets_values": [
"THUDM/CogVideoX-2b",
"fp16"
]
},
{
"id": 58,
"type": "ImageConcanate",
"pos": [
1499,
433
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 191
},
{
"name": "image2",
"type": "IMAGE",
"link": 170
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
132
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageConcanate"
},
"widgets_values": [
"right",
false
]
},
{
"id": 55,
"type": "GetImageSizeAndCount",
"pos": [
1223,
122
],
"size": {
"0": 210,
"1": 86
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 118,
"slot_index": 0
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
170
],
"slot_index": 0,
"shape": 3
},
{
"name": "720 width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "480 height",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "32 count",
"type": "INT",
"links": [],
"slot_index": 3,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 47,
"type": "VHS_VideoCombine",
"pos": [
1560,
-379
],
"size": [
1110,
711.3333333333333
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 132
},
{
"name": "audio",
"type": "VHS_AUDIO",
"link": null
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 8,
"loop_count": 0,
"filename_prefix": "AnimateDiff",
"format": "video/nvenc_h264-mp4",
"pix_fmt": "yuv420p",
"bitrate": 10,
"megabit": true,
"save_metadata": true,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "AnimateDiff_00001.mp4",
"subfolder": "",
"type": "temp",
"format": "video/nvenc_h264-mp4",
"frame_rate": 8
}
}
}
}
],
"links": [
[
54,
20,
0,
30,
0,
"CLIP"
],
[
56,
20,
0,
31,
0,
"CLIP"
],
[
83,
1,
0,
37,
0,
"COGVIDEOPIPE"
],
[
118,
11,
0,
55,
0,
"IMAGE"
],
[
126,
41,
0,
57,
0,
"IMAGE"
],
[
129,
57,
0,
37,
1,
"IMAGE"
],
[
132,
58,
0,
47,
0,
"IMAGE"
],
[
159,
1,
0,
64,
0,
"COGVIDEOPIPE"
],
[
160,
30,
0,
64,
1,
"CONDITIONING"
],
[
161,
31,
0,
64,
2,
"CONDITIONING"
],
[
164,
57,
2,
64,
4,
"INT"
],
[
165,
57,
1,
64,
5,
"INT"
],
[
166,
64,
0,
11,
0,
"COGVIDEOPIPE"
],
[
167,
64,
1,
11,
1,
"LATENT"
],
[
170,
55,
0,
58,
1,
"IMAGE"
],
[
172,
37,
0,
64,
3,
"LATENT"
],
[
177,
69,
0,
45,
2,
"INT"
],
[
178,
57,
3,
64,
6,
"INT"
],
[
179,
45,
0,
70,
0,
"IMAGE"
],
[
180,
70,
0,
41,
0,
"IMAGE"
],
[
181,
57,
3,
64,
7,
"INT"
],
[
191,
57,
0,
58,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.620921323059155,
"offset": [
298.59028824596885,
694.562497939138
]
}
},
"version": 0.4
}