Files
2025-05-27 10:37:30 -07:00

1052 lines
22 KiB
JSON

{
"id": "394ed254-7306-42a2-9ae6-aa880ce4456d",
"revision": 0,
"last_node_id": 1967,
"last_link_id": 5607,
"nodes": [
{
"id": 1947,
"type": "MarkdownNote",
"pos": [
2030,
2740
],
"size": [
540,
170
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"**ComfyUI-LBM**\n\nA ComfyUI implementation of Latent Bridge Matching (LBM) for efficient image relighting. This node utilizes the LBM algorithm to perform single-step image-to-image translation specifically for relighting tasks.\n\n[https://github.com/1038lab/ComfyUI-LBM](https://github.com/1038lab/ComfyUI-LBM)\n\nLBM Relighting Model:\n\n[https://huggingface.co/jasperai/LBM_relighting/blob/main/model.safetensors](https://huggingface.co/jasperai/LBM_relighting/blob/main/model.safetensors)"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 1948,
"type": "RMBG",
"pos": [
1370,
1800
],
"size": [
320,
302
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 5565
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": []
},
{
"name": "MASK",
"type": "MASK",
"links": [
5573
]
},
{
"name": "MASK_IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "RMBG",
"widget_ue_connectable": {}
},
"widgets_values": [
"RMBG-2.0",
1,
1024,
0,
0,
false,
true,
"Color",
"#222222"
],
"color": "#222e40",
"bgcolor": "#364254"
},
{
"id": 1949,
"type": "AILab_LoadImage",
"pos": [
1020,
1800
],
"size": [
310,
780
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5565,
5574
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
},
{
"name": "MASK_IMAGE",
"type": "IMAGE",
"links": null
},
{
"name": "WIDTH",
"type": "INT",
"links": null
},
{
"name": "HEIGHT",
"type": "INT",
"links": null
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "AILab_LoadImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"00023-449558058.jpg",
"alpha",
1,
"longest_side",
1024,
"image"
],
"color": "#2e3e57",
"bgcolor": "#4b5b73"
},
{
"id": 1950,
"type": "AILab_LoadImage",
"pos": [
1020,
2620
],
"size": [
610,
590
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5578
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
},
{
"name": "MASK_IMAGE",
"type": "IMAGE",
"links": null
},
{
"name": "WIDTH",
"type": "INT",
"links": null
},
{
"name": "HEIGHT",
"type": "INT",
"links": null
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "AILab_LoadImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"lb2.jpg",
"alpha",
1,
"shortest_side",
1024,
"image"
],
"color": "#2e3e57",
"bgcolor": "#4b5b73"
},
{
"id": 1951,
"type": "AILab_ImageCombiner",
"pos": [
1810,
2050
],
"size": [
281.7154235839844,
194
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "foreground",
"type": "IMAGE",
"link": 5574
},
{
"name": "background",
"type": "IMAGE",
"link": 5578
},
{
"name": "foreground_mask",
"shape": 7,
"type": "MASK",
"link": 5573
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5603,
5607
]
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "AILab_ImageCombiner",
"widget_ue_connectable": {}
},
"widgets_values": [
"normal",
1,
1.0000000000000002,
50,
50
],
"color": "#2e3e57",
"bgcolor": "#4b5b73"
},
{
"id": 1964,
"type": "AILab_ImagePreview",
"pos": [
2610,
1800
],
"size": [
1150,
680
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 5603
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "AILab_ImagePreview",
"widget_ue_connectable": {}
},
"widgets_values": [],
"color": "#2e3e57",
"bgcolor": "#4b5b73"
},
{
"id": 1965,
"type": "AILab_ImagePreview",
"pos": [
2610,
2530
],
"size": [
1150,
680
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 5606
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfyui-rmbg",
"ver": "4faa7c7c12147db95345ee78b30f38273443ff99",
"Node name for S&R": "AILab_ImagePreview",
"widget_ue_connectable": {}
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 1967,
"type": "LBM_Relighting",
"pos": [
2220,
2530
],
"size": [
350,
130
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 5607
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5606
]
}
],
"properties": {
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"Node name for S&R": "LBM_Relighting",
"widget_ue_connectable": {}
},
"widgets_values": [
"LBM_relighting.safetensors",
28,
"bf16",
0.005
],
"color": "#323",
"bgcolor": "#535"
}
],
"links": [
[
5565,
1949,
0,
1948,
0,
"IMAGE"
],
[
5573,
1948,
1,
1951,
2,
"MASK"
],
[
5574,
1949,
0,
1951,
0,
"IMAGE"
],
[
5578,
1950,
0,
1951,
1,
"IMAGE"
],
[
5603,
1951,
0,
1964,
0,
"IMAGE"
],
[
5606,
1967,
0,
1965,
0,
"IMAGE"
],
[
5607,
1951,
0,
1967,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5131581182307067,
"offset": [
-720.5647407999995,
-1379.0160514
]
},
"frontendVersion": "1.19.9",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"prompt": {
"6": {
"inputs": {
"text": "",
"clip": [
"38",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"7": {
"inputs": {
"text": "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
"clip": [
"38",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"38": {
"inputs": {
"clip_name": "t5xxl_fp16.safetensors",
"type": "ltxv",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"44": {
"inputs": {
"ckpt_name": "ltx-video-13b-distilled-step-13000.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"73": {
"inputs": {
"sampler_name": "euler_ancestral"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"1206": {
"inputs": {
"image": "5aa.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"1241": {
"inputs": {
"frame_rate": 24.000000000000004,
"positive": [
"6",
0
],
"negative": [
"7",
0
]
},
"class_type": "LTXVConditioning",
"_meta": {
"title": "LTXVConditioning"
}
},
"1335": {
"inputs": {
"samples": [
"1338",
0
],
"vae": [
"1870",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"1336": {
"inputs": {
"frame_rate": 24,
"loop_count": 0,
"filename_prefix": "ltxv-base",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": false,
"images": [
"1335",
0
]
},
"class_type": "VHS_VideoCombine",
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
},
"1338": {
"inputs": {
"width": 768,
"height": 512,
"num_frames": 97,
"optional_cond_indices": "0, 40, 90",
"strength": 0.8,
"crop": "center",
"crf": 30,
"blur": 1,
"model": [
"44",
0
],
"vae": [
"44",
2
],
"guider": [
"1807",
0
],
"sampler": [
"73",
0
],
"sigmas": [
"1872",
0
],
"noise": [
"1507",
0
],
"optional_cond_images": [
"1876",
0
]
},
"class_type": "LTXVBaseSampler",
"_meta": {
"title": "🅛🅣🅧 LTXV Base Sampler"
}
},
"1507": {
"inputs": {
"noise_seed": 108
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},
"1593": {
"inputs": {
"factor": 0.25,
"latents": [
"1691",
0
],
"reference": [
"1338",
0
]
},
"class_type": "LTXVAdainLatent",
"_meta": {
"title": "🅛🅣🅧 LTXV Adain Latent"
}
},
"1598": {
"inputs": {
"noise_seed": 414
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},
"1599": {
"inputs": {
"frame_rate": 24,
"loop_count": 0,
"filename_prefix": "ltxv-hd",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 18,
"save_metadata": false,
"pingpong": false,
"save_output": false,
"images": [
"1699",
0
]
},
"class_type": "VHS_VideoCombine",
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
},
"1601": {
"inputs": {
"tile_size": 1280,
"overlap": 128,
"temporal_size": 128,
"temporal_overlap": 32,
"samples": [
"1873",
0
],
"vae": [
"1870",
0
]
},
"class_type": "VAEDecodeTiled",
"_meta": {
"title": "VAE Decode (Tiled)"
}
},
"1661": {
"inputs": {
"width": 1280,
"height": 1280,
"upscale_method": "bicubic",
"keep_proportion": true,
"divisible_by": 2,
"crop": "center",
"image": [
"1601",
0
]
},
"class_type": "ImageResizeKJ",
"_meta": {
"title": "Resize Image"
}
},
"1691": {
"inputs": {
"samples": [
"1338",
0
],
"upscale_model": [
"1828",
0
],
"vae": [
"44",
2
]
},
"class_type": "LTXVLatentUpsampler",
"_meta": {
"title": "🅛🅣🅧 LTXV Latent Upsampler"
}
},
"1699": {
"inputs": {
"grain_intensity": 0.010000000000000002,
"saturation": 0.5,
"images": [
"1661",
0
]
},
"class_type": "LTXVFilmGrain",
"_meta": {
"title": "🅛🅣🅧 LTXV Film Grain"
}
},
"1807": {
"inputs": {
"skip_steps_sigma_threshold": 0.9970000000000002,
"cfg_star_rescale": true,
"sigmas": "1.0, 0.9933, 0.9850, 0.9767, 0.9008, 0.6180",
"cfg_values": "1,1,1,1,1,1",
"stg_scale_values": "0,0,0,0,0,0",
"stg_rescale_values": "1, 1, 1, 1, 1, 1",
"stg_layers_indices": "[35], [35], [35], [42], [42], [42]",
"model": [
"44",
0
],
"positive": [
"1241",
0
],
"negative": [
"1241",
1
]
},
"class_type": "STGGuiderAdvanced",
"_meta": {
"title": "🅛🅣🅧 STG Guider Advanced"
}
},
"1813": {
"inputs": {
"skip_steps_sigma_threshold": 0.9970000000000002,
"cfg_star_rescale": true,
"sigmas": "1",
"cfg_values": "1",
"stg_scale_values": "0",
"stg_rescale_values": "1",
"stg_layers_indices": "[42]",
"model": [
"44",
0
],
"positive": [
"1241",
0
],
"negative": [
"1241",
1
]
},
"class_type": "STGGuiderAdvanced",
"_meta": {
"title": "🅛🅣🅧 STG Guider Advanced"
}
},
"1828": {
"inputs": {
"upscale_model": "ltxv-spatial-upscaler-0.9.7.safetensors",
"spatial_upsample": true,
"temporal_upsample": false
},
"class_type": "LTXVLatentUpsamplerModelLoader",
"_meta": {
"title": "🅛🅣🅧 LTXV Latent Upsampler Model Loader"
}
},
"1865": {
"inputs": {
"image": "5B.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"1866": {
"inputs": {
"image": "5C.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"1867": {
"inputs": {
"image1": [
"1206",
0
],
"image2": [
"1865",
0
]
},
"class_type": "ImageBatch",
"_meta": {
"title": "Batch Images"
}
},
"1868": {
"inputs": {
"image1": [
"1867",
0
],
"image2": [
"1866",
0
]
},
"class_type": "ImageBatch",
"_meta": {
"title": "Batch Images"
}
},
"1870": {
"inputs": {
"timestep": 0.05,
"scale": 0.025,
"seed": 42,
"vae": [
"44",
2
]
},
"class_type": "Set VAE Decoder Noise",
"_meta": {
"title": "🅛🅣🅧 Set VAE Decoder Noise"
}
},
"1871": {
"inputs": {
"string": "1.0000, 0.9937, 0.9875, 0.9812, 0.9750, 0.9094, 0.7250, 0.4219, 0.0"
},
"class_type": "StringToFloatList",
"_meta": {
"title": "String to Float List"
}
},
"1872": {
"inputs": {
"float_list": [
"1871",
0
]
},
"class_type": "FloatToSigmas",
"_meta": {
"title": "Float To Sigmas"
}
},
"1873": {
"inputs": {
"horizontal_tiles": 1,
"vertical_tiles": 1,
"overlap": 1,
"latents_cond_strength": 0.15,
"boost_latent_similarity": false,
"crop": "disabled",
"optional_cond_indices": "0, 40, 90",
"images_cond_strengths": "0.9",
"model": [
"44",
0
],
"vae": [
"44",
2
],
"noise": [
"1598",
0
],
"sampler": [
"73",
0
],
"sigmas": [
"1875",
0
],
"guider": [
"1813",
0
],
"latents": [
"1593",
0
],
"optional_cond_images": [
"1876",
0
]
},
"class_type": "LTXVTiledSampler",
"_meta": {
"title": "🅛🅣🅧 LTXV Tiled Sampler"
}
},
"1874": {
"inputs": {
"string": "0.85, 0.7250, 0.6, 0.4219, 0.0"
},
"class_type": "StringToFloatList",
"_meta": {
"title": "String to Float List"
}
},
"1875": {
"inputs": {
"float_list": [
"1874",
0
]
},
"class_type": "FloatToSigmas",
"_meta": {
"title": "Float To Sigmas"
}
},
"1876": {
"inputs": {
"radius_x": 1,
"radius_y": 1,
"images": [
"1868",
0
]
},
"class_type": "BlurImageFast",
"_meta": {
"title": "Blur Image (Fast)"
}
}
},
"comfy_fork_version": "develop@580b3007",
"workspace_info": {
"id": "elBQFQknIoLYTEwIloQuw"
},
"node_versions": {
"comfy-core": "0.3.20"
},
"ue_links": [],
"links_added_by_ue": []
},
"version": 0.4
}