Kontext_Removal_Lora / kontext_remove.json
George0667's picture
Upload 2 files
8d7e109 verified
{
"id": "00000000-0000-0000-0000-000000000000",
"revision": 0,
"last_node_id": 150,
"last_link_id": 70,
"nodes": [
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
970,
366
],
"size": [
400,
200
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 30
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
39,
51
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"remove the object in the red frames"
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
100,
130
],
"size": [
270,
58
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
32,
41
]
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
100,
318
],
"size": [
270,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": []
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 25,
"type": "RandomNoise",
"pos": [
100,
506
],
"size": [
270,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": []
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
76098033215308,
"randomize"
]
},
{
"id": 26,
"type": "FluxGuidance",
"pos": [
1470,
130
],
"size": [
270,
58
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 39
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
42
]
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
2.5
]
},
{
"id": 39,
"type": "VAEEncode",
"pos": [
970,
1026
],
"size": [
140,
46
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 69
},
{
"name": "vae",
"type": "VAE",
"link": 41
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
43
]
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 129,
"type": "UNETLoader",
"pos": [
100,
718
],
"size": [
270,
82
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
55
]
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux1-dev-kontext_fp8_scaled.safetensors",
"default"
]
},
{
"id": 130,
"type": "DualCLIPLoader",
"pos": [
100,
930
],
"size": [
270,
130
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
56
]
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"clip_l.safetensors",
"t5xxl_fp16.safetensors",
"flux",
"default"
]
},
{
"id": 138,
"type": "GetImageSize+",
"pos": [
970,
1202
],
"size": [
158.27890014648438,
66
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 70
}
],
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
44
]
},
{
"name": "height",
"type": "INT",
"links": [
45
]
},
{
"name": "count",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "GetImageSize+"
},
"widgets_values": []
},
{
"id": 94,
"type": "ConditioningZeroOut",
"pos": [
1470,
318
],
"size": [
197.712890625,
26
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 51
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
59
]
}
],
"properties": {
"Node name for S&R": "ConditioningZeroOut"
},
"widgets_values": []
},
{
"id": 42,
"type": "ReferenceLatent",
"pos": [
1855.3858642578125,
362.54766845703125
],
"size": [
197.712890625,
46
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 42
},
{
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 43
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
61
]
}
],
"properties": {
"Node name for S&R": "ReferenceLatent"
},
"widgets_values": []
},
{
"id": 139,
"type": "LoraLoader",
"pos": [
596.427001953125,
108.19313049316406
],
"size": [
270,
126
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 55
},
{
"name": "clip",
"type": "CLIP",
"link": 56
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
60
]
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
30,
52
]
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"remove_lora/rorem_online.safetensors",
1,
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
2810.24658203125,
130
],
"size": [
140,
46
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 63
},
{
"name": "vae",
"type": "VAE",
"link": 32
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
66
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 96,
"type": "CLIPTextEncode",
"pos": [
970,
696
],
"size": [
400,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 52
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": []
}
],
"title": "CLIP Text Encode (NAG negative Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 150,
"type": "VideoAcc_Kontext_removal",
"pos": [
587.9496459960938,
693.0411376953125
],
"size": [
270.0601501464844,
102
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 67
},
{
"name": "mask",
"type": "MASK",
"link": 68
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
69
]
}
],
"properties": {
"Node name for S&R": "VideoAcc_Kontext_removal"
},
"widgets_values": [
3,
"Kontext"
]
},
{
"id": 146,
"type": "KSampler",
"pos": [
2287.852783203125,
132.4530029296875
],
"size": [
270,
262
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 60
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 61
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 59
},
{
"name": "latent_image",
"type": "LATENT",
"link": 62
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
63
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
12345,
"fixed",
20,
1,
"euler",
"simple",
1
]
},
{
"id": 75,
"type": "EmptySD3LatentImage",
"pos": [
1470,
474
],
"size": [
270,
106
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 44
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 45
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
62
]
}
],
"properties": {
"Node name for S&R": "EmptySD3LatentImage"
},
"widgets_values": [
1024,
1024,
3
]
},
{
"id": 149,
"type": "SaveImage",
"pos": [
3007.510009765625,
129.55459594726562
],
"size": [
270,
270
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 66
}
],
"outputs": [],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 148,
"type": "LoadImage",
"pos": [
222.87892150878906,
1087.998291015625
],
"size": [
274.080078125,
314.00006103515625
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
67,
70
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
68
]
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1028574.png [input]",
"image"
]
}
],
"links": [
[
30,
139,
1,
6,
0,
"CLIP"
],
[
32,
10,
0,
8,
1,
"VAE"
],
[
39,
6,
0,
26,
0,
"CONDITIONING"
],
[
41,
10,
0,
39,
1,
"VAE"
],
[
42,
26,
0,
42,
0,
"CONDITIONING"
],
[
43,
39,
0,
42,
1,
"LATENT"
],
[
44,
138,
0,
75,
0,
"INT"
],
[
45,
138,
1,
75,
1,
"INT"
],
[
51,
6,
0,
94,
0,
"CONDITIONING"
],
[
52,
139,
1,
96,
0,
"CLIP"
],
[
55,
129,
0,
139,
0,
"MODEL"
],
[
56,
130,
0,
139,
1,
"CLIP"
],
[
59,
94,
0,
146,
2,
"CONDITIONING"
],
[
60,
139,
0,
146,
0,
"MODEL"
],
[
61,
42,
0,
146,
1,
"CONDITIONING"
],
[
62,
75,
0,
146,
3,
"LATENT"
],
[
63,
146,
0,
8,
0,
"LATENT"
],
[
66,
8,
0,
149,
0,
"IMAGE"
],
[
67,
148,
0,
150,
0,
"IMAGE"
],
[
68,
148,
1,
150,
1,
"MASK"
],
[
69,
150,
0,
39,
0,
"IMAGE"
],
[
70,
148,
0,
138,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8444158292366651,
"offset": [
732.6195010746402,
-465.5599892396923
]
},
"frontendVersion": "1.26.13",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}