Files
logtd-ComfyUI-MochiEdit/example_workflows/wrapper_inversion_example.json
T
2024-11-02 14:04:02 -06:00

1255 lines
21 KiB
JSON

{
"last_node_id": 51,
"last_link_id": 94,
"nodes": [
{
"id": 27,
"type": "MochiVAEEncoderLoader",
"pos": {
"0": -2,
"1": 531
},
"size": {
"0": 236.8000030517578,
"1": 82
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "torch_compile_args",
"type": "MOCHICOMPILEARGS",
"link": null,
"shape": 7
}
],
"outputs": [
{
"name": "mochi_vae",
"type": "MOCHIVAE",
"links": [
36
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiVAEEncoderLoader"
},
"widgets_values": [
"mochi/mochi_preview_vae_encoder_bf16_.safetensors",
"bf16"
]
},
{
"id": 2,
"type": "CLIPLoader",
"pos": {
"0": -47,
"1": 172
},
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
1,
69
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"sd3"
]
},
{
"id": 8,
"type": "MochiTextEncode",
"pos": {
"0": 439,
"1": 442
},
"size": {
"0": 379.5408020019531,
"1": 144
},
"flags": {
"collapsed": true
},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 69
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"links": [
74,
82,
83
],
"slot_index": 0
},
{
"name": "clip",
"type": "CLIP",
"links": null
}
],
"properties": {
"Node name for S&R": "MochiTextEncode"
},
"widgets_values": [
"",
1,
true
]
},
{
"id": 15,
"type": "MochiDecodeSpatialTiling",
"pos": {
"0": 1593,
"1": 85
},
"size": {
"0": 260.3999938964844,
"1": 198
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "MOCHIVAE",
"link": 23
},
{
"name": "samples",
"type": "LATENT",
"link": 94
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
24,
67
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiDecodeSpatialTiling"
},
"widgets_values": [
true,
4,
4,
16,
1,
6
]
},
{
"id": 9,
"type": "VHS_VideoCombine",
"pos": {
"0": 2040,
"1": 143
},
"size": [
1261.0787353515625,
1026.4973973688088
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 24
},
{
"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"
},
"widgets_values": {
"frame_rate": 24,
"loop_count": 0,
"filename_prefix": "Mochi_preview",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "Mochi_preview_00010.mp4",
"subfolder": "",
"type": "temp",
"format": "video/h264-mp4",
"frame_rate": 24
},
"muted": false
}
}
},
{
"id": 22,
"type": "MochiImageEncode",
"pos": {
"0": 431,
"1": 542
},
"size": {
"0": 210,
"1": 174
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "encoder",
"type": "MOCHIVAE",
"link": 36
},
{
"name": "images",
"type": "IMAGE",
"link": 33
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"links": [
78,
84
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiImageEncode"
},
"widgets_values": [
false,
4,
4,
16,
1
]
},
{
"id": 24,
"type": "ImageScale",
"pos": {
"0": 435,
"1": 771
},
"size": {
"0": 210,
"1": 130
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 32
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
33,
89
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"nearest-exact",
848,
480,
"disabled"
]
},
{
"id": 40,
"type": "VHS_VideoCombine",
"pos": {
"0": 2033,
"1": 1280
},
"size": [
1261.0787353515625,
310
],
"flags": {},
"order": 20,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 68
},
{
"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"
},
"widgets_values": {
"frame_rate": 24,
"loop_count": 0,
"filename_prefix": "Mochi_preview",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "Mochi_preview_00089.mp4",
"subfolder": "",
"type": "temp",
"format": "video/h264-mp4",
"frame_rate": 24
},
"muted": false
}
}
},
{
"id": 39,
"type": "ImageConcanate",
"pos": {
"0": 1517,
"1": 1123
},
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 19,
"mode": 4,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 89
},
{
"name": "image2",
"type": "IMAGE",
"link": 67
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
68
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageConcanate"
},
"widgets_values": [
"right",
true
]
},
{
"id": 4,
"type": "DownloadAndLoadMochiModel",
"pos": {
"0": 275,
"1": -123
},
"size": {
"0": 370.07708740234375,
"1": 174
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "trigger",
"type": "CONDITIONING",
"link": null,
"shape": 7
},
{
"name": "compile_args",
"type": "MOCHICOMPILEARGS",
"link": null,
"shape": 7
}
],
"outputs": [
{
"name": "mochi_model",
"type": "MOCHIMODEL",
"links": [
72,
81
],
"slot_index": 0
},
{
"name": "mochi_vae",
"type": "MOCHIVAE",
"links": [
23
],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "DownloadAndLoadMochiModel"
},
"widgets_values": [
"mochi_preview_dit_bf16.safetensors",
"mochi_preview_vae_bf16.safetensors",
"fp8_e4m3fn",
"sdpa",
false
]
},
{
"id": 51,
"type": "MochiPrepareSigmas",
"pos": {
"0": 1260,
"1": 152
},
"size": {
"0": 172.05398559570312,
"1": 26
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"link": 92
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
93
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiPrepareSigmas"
}
},
{
"id": 30,
"type": "FlipSigmas",
"pos": {
"0": 893,
"1": 446
},
"size": {
"0": 145.175537109375,
"1": 26
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"link": 91
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
85
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "FlipSigmas"
},
"widgets_values": []
},
{
"id": 48,
"type": "MochiWrapperSamplerCustom",
"pos": {
"0": 844,
"1": 169
},
"size": {
"0": 243.60000610351562,
"1": 230
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MOCHIMODEL",
"link": 81
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 82
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 83
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 85
},
{
"name": "latents",
"type": "LATENT",
"link": 84
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 87
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"links": [
86
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiWrapperSamplerCustom"
},
"widgets_values": [
1,
1,
"fixed",
false
]
},
{
"id": 50,
"type": "MochiPrepareSigmas",
"pos": {
"0": 877,
"1": 526
},
"size": [
172.05397971748505,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"link": 90
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
91
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiPrepareSigmas"
}
},
{
"id": 46,
"type": "MochiWrapperSamplerCustom",
"pos": {
"0": 1224,
"1": -130
},
"size": {
"0": 252.70352172851562,
"1": 230
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MOCHIMODEL",
"link": 72
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 73
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 74
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 93
},
{
"name": "latents",
"type": "LATENT",
"link": 86
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 79
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"links": [
94
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiWrapperSamplerCustom"
},
"widgets_values": [
4.5,
0,
"fixed",
false
]
},
{
"id": 49,
"type": "MochiUnsampler",
"pos": {
"0": 855,
"1": 760
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
87
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiUnsampler"
},
"widgets_values": [
0,
"fixed",
0.5
]
},
{
"id": 1,
"type": "MochiTextEncode",
"pos": {
"0": 297,
"1": 152
},
"size": {
"0": 380.0573425292969,
"1": 184.70144653320312
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 1
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"links": [
73
],
"slot_index": 0
},
{
"name": "clip",
"type": "CLIP",
"links": [],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "MochiTextEncode"
},
"widgets_values": [
"a woman with blonde hair wearing a white collared shirt",
1,
true
]
},
{
"id": 33,
"type": "MochiSigmaSchedule",
"pos": {
"0": 1237,
"1": 247
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"links": [
92
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiSigmaSchedule"
},
"widgets_values": [
30,
0.025,
15
]
},
{
"id": 23,
"type": "VHS_LoadVideo",
"pos": {
"0": -23,
"1": 723
},
"size": {
"0": 252.056640625,
"1": 262
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null,
"shape": 7
},
{
"name": "vae",
"type": "VAE",
"link": null,
"shape": 7
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
32
],
"slot_index": 0
},
{
"name": "frame_count",
"type": "INT",
"links": null
},
{
"name": "audio",
"type": "AUDIO",
"links": null
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "talking.mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 31,
"skip_first_frames": 0,
"select_every_nth": 1,
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"force_rate": 0,
"frame_load_cap": 31,
"skip_first_frames": 0,
"select_every_nth": 1,
"filename": "talking.mp4",
"type": "input",
"format": "video/mp4"
},
"muted": false
}
}
},
{
"id": 21,
"type": "MochiSigmaSchedule",
"pos": {
"0": 854,
"1": 603
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"links": [
90
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiSigmaSchedule"
},
"widgets_values": [
50,
0.025,
15
]
},
{
"id": 47,
"type": "MochiResampler",
"pos": {
"0": 1248,
"1": 388
},
"size": {
"0": 210,
"1": 130
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "latents",
"type": "LATENT",
"link": 78
}
],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
79
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MochiResampler"
},
"widgets_values": [
0.7000000000000001,
0,
41,
"linear_decrease"
]
}
],
"links": [
[
1,
2,
0,
1,
0,
"CLIP"
],
[
23,
4,
1,
15,
0,
"MOCHIVAE"
],
[
24,
15,
0,
9,
0,
"IMAGE"
],
[
32,
23,
0,
24,
0,
"IMAGE"
],
[
33,
24,
0,
22,
1,
"IMAGE"
],
[
36,
27,
0,
22,
0,
"MOCHIVAE"
],
[
67,
15,
0,
39,
1,
"IMAGE"
],
[
68,
39,
0,
40,
0,
"IMAGE"
],
[
69,
2,
0,
8,
0,
"CLIP"
],
[
72,
4,
0,
46,
0,
"MOCHIMODEL"
],
[
73,
1,
0,
46,
1,
"CONDITIONING"
],
[
74,
8,
0,
46,
2,
"CONDITIONING"
],
[
78,
22,
0,
47,
0,
"LATENT"
],
[
79,
47,
0,
46,
5,
"SAMPLER"
],
[
81,
4,
0,
48,
0,
"MOCHIMODEL"
],
[
82,
8,
0,
48,
1,
"CONDITIONING"
],
[
83,
8,
0,
48,
2,
"CONDITIONING"
],
[
84,
22,
0,
48,
4,
"LATENT"
],
[
85,
30,
0,
48,
3,
"SIGMAS"
],
[
86,
48,
0,
46,
4,
"LATENT"
],
[
87,
49,
0,
48,
5,
"SAMPLER"
],
[
89,
24,
0,
39,
0,
"IMAGE"
],
[
90,
21,
0,
50,
0,
"SIGMAS"
],
[
91,
50,
0,
30,
0,
"SIGMAS"
],
[
92,
33,
0,
51,
0,
"SIGMAS"
],
[
93,
51,
0,
46,
3,
"SIGMAS"
],
[
94,
46,
0,
15,
1,
"LATENT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5559917313492343,
"offset": [
-464.29060401469224,
63.713281941055236
]
}
},
"version": 0.4
}