Fix crop blueprint split coverage

Made-with: Cursor
This commit is contained in:
ComfyUI Wiki 2026-04-13 18:37:53 +08:00
parent 1f60ff8e58
commit ec31322751
2 changed files with 439 additions and 54 deletions

View File

@ -1,6 +1,6 @@
{ {
"revision": 0, "revision": 0,
"last_node_id": 135, "last_node_id": 139,
"last_link_id": 0, "last_link_id": 0,
"nodes": [ "nodes": [
{ {
@ -263,10 +263,9 @@
"links": [ "links": [
7, 7,
14, 14,
26,
28, 28,
37, 40,
40 242
] ]
} }
], ],
@ -281,7 +280,7 @@
"Node name for S&R": "ComfyMathExpression" "Node name for S&R": "ComfyMathExpression"
}, },
"widgets_values": [ "widgets_values": [
"a/b" "max(1, int(a/b))"
] ]
}, },
{ {
@ -312,7 +311,8 @@
"name": "width", "name": "width",
"type": "INT", "type": "INT",
"links": [ "links": [
3 3,
241
] ]
}, },
{ {
@ -320,7 +320,8 @@
"name": "height", "name": "height",
"type": "INT", "type": "INT",
"links": [ "links": [
5 5,
245
] ]
}, },
{ {
@ -597,11 +598,10 @@
"type": "INT", "type": "INT",
"links": [ "links": [
8, 8,
15,
23, 23,
27, 27,
38, 39,
39 246
] ]
} }
], ],
@ -616,7 +616,167 @@
"Node name for S&R": "ComfyMathExpression" "Node name for S&R": "ComfyMathExpression"
}, },
"widgets_values": [ "widgets_values": [
"a/b" "max(1, int(a/b))"
]
},
{
"id": 138,
"type": "ComfyMathExpression",
"pos": [
1170,
1210
],
"size": [
420,
190
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 241
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": 242
},
{
"label": "c",
"localized_name": "values.c",
"name": "values.c",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
243,
244
]
}
],
"title": "Math Expression (Right Width)",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.18.1",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"max(1, a - b)"
]
},
{
"id": 139,
"type": "ComfyMathExpression",
"pos": [
1170,
1860
],
"size": [
420,
190
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 245
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": 246
},
{
"label": "c",
"localized_name": "values.c",
"name": "values.c",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
247,
248
]
}
],
"title": "Math Expression (Bottom Height)",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.18.1",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"max(1, a - b)"
] ]
}, },
{ {
@ -733,7 +893,7 @@
"widget": { "widget": {
"name": "height" "name": "height"
}, },
"link": 15 "link": 247
} }
], ],
"outputs": [ "outputs": [
@ -803,7 +963,7 @@
"widget": { "widget": {
"name": "width" "name": "width"
}, },
"link": 26 "link": 243
}, },
{ {
"localized_name": "height", "localized_name": "height",
@ -1012,7 +1172,7 @@
"widget": { "widget": {
"name": "width" "name": "width"
}, },
"link": 37 "link": 244
}, },
{ {
"localized_name": "height", "localized_name": "height",
@ -1021,7 +1181,7 @@
"widget": { "widget": {
"name": "height" "name": "height"
}, },
"link": 38 "link": 248
} }
], ],
"outputs": [ "outputs": [
@ -1224,8 +1384,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 15, "id": 247,
"origin_id": 13, "origin_id": 139,
"origin_slot": 1, "origin_slot": 1,
"target_id": 16, "target_id": 16,
"target_slot": 3, "target_slot": 3,
@ -1240,8 +1400,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 26, "id": 243,
"origin_id": 7, "origin_id": 138,
"origin_slot": 1, "origin_slot": 1,
"target_id": 25, "target_id": 25,
"target_slot": 2, "target_slot": 2,
@ -1288,21 +1448,53 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 37, "id": 244,
"origin_id": 7, "origin_id": 138,
"origin_slot": 1, "origin_slot": 1,
"target_id": 32, "target_id": 32,
"target_slot": 2, "target_slot": 2,
"type": "INT" "type": "INT"
}, },
{ {
"id": 38, "id": 248,
"origin_id": 13, "origin_id": 139,
"origin_slot": 1, "origin_slot": 1,
"target_id": 32, "target_id": 32,
"target_slot": 3, "target_slot": 3,
"type": "INT" "type": "INT"
}, },
{
"id": 241,
"origin_id": 8,
"origin_slot": 0,
"target_id": 138,
"target_slot": 0,
"type": "INT"
},
{
"id": 242,
"origin_id": 7,
"origin_slot": 1,
"target_id": 138,
"target_slot": 1,
"type": "INT"
},
{
"id": 245,
"origin_id": 8,
"origin_slot": 1,
"target_id": 139,
"target_slot": 0,
"type": "INT"
},
{
"id": 246,
"origin_id": 13,
"origin_slot": 1,
"target_id": 139,
"target_slot": 1,
"type": "INT"
},
{ {
"id": 2, "id": 2,
"origin_id": -10, "origin_id": -10,

View File

@ -1,6 +1,6 @@
{ {
"revision": 0, "revision": 0,
"last_node_id": 134, "last_node_id": 141,
"last_link_id": 0, "last_link_id": 0,
"nodes": [ "nodes": [
{ {
@ -360,13 +360,11 @@
89, 89,
97, 97,
99, 99,
122,
127, 127,
134,
142, 142,
146, 146,
152, 152,
160 300
] ]
} }
], ],
@ -382,7 +380,7 @@
"Node name for S&R": "ComfyMathExpression" "Node name for S&R": "ComfyMathExpression"
}, },
"widgets_values": [ "widgets_values": [
"a/b" "max(1, int(a/b))"
] ]
}, },
{ {
@ -413,7 +411,8 @@
"name": "width", "name": "width",
"type": "INT", "type": "INT",
"links": [ "links": [
73 73,
300
] ]
}, },
{ {
@ -421,7 +420,8 @@
"name": "height", "name": "height",
"type": "INT", "type": "INT",
"links": [ "links": [
79 79,
305
] ]
}, },
{ {
@ -707,9 +707,6 @@
121, 121,
123, 123,
126, 126,
135,
143,
153,
161 161
] ]
} }
@ -726,7 +723,7 @@
"Node name for S&R": "ComfyMathExpression" "Node name for S&R": "ComfyMathExpression"
}, },
"widgets_values": [ "widgets_values": [
"a/b" "max(1, int(a/b))"
] ]
}, },
{ {
@ -1215,7 +1212,8 @@
"links": [ "links": [
136, 136,
147, 147,
156 156,
306
] ]
} }
], ],
@ -1339,7 +1337,7 @@
"widget": { "widget": {
"name": "width" "name": "width"
}, },
"link": 122 "link": 302
}, },
{ {
"localized_name": "height", "localized_name": "height",
@ -1432,7 +1430,8 @@
"links": [ "links": [
128, 128,
132, 132,
163 163,
301
] ]
} }
], ],
@ -1451,6 +1450,168 @@
"2 * a" "2 * a"
] ]
}, },
{
"id": 140,
"type": "ComfyMathExpression",
"pos": [
1240,
5640
],
"size": [
420,
190
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 300
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": 301
},
{
"label": "c",
"localized_name": "values.c",
"name": "values.c",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
302,
303,
304
]
}
],
"title": "Math Expression (Right Width)",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.18.1",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"max(1, a - b)"
]
},
{
"id": 141,
"type": "ComfyMathExpression",
"pos": [
1230,
6340
],
"size": [
420,
190
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 305
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": 306
},
{
"label": "c",
"localized_name": "values.c",
"name": "values.c",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
307,
308,
309
]
}
],
"title": "Math Expression (Bottom Height)",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.18.1",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"max(1, a - b)"
]
},
{ {
"id": 79, "id": 79,
"type": "ImageCropV2", "type": "ImageCropV2",
@ -1556,7 +1717,7 @@
"widget": { "widget": {
"name": "width" "name": "width"
}, },
"link": 134 "link": 303
}, },
{ {
"localized_name": "height", "localized_name": "height",
@ -1565,7 +1726,7 @@
"widget": { "widget": {
"name": "height" "name": "height"
}, },
"link": 135 "link": 307
} }
], ],
"outputs": [ "outputs": [
@ -1709,7 +1870,7 @@
"widget": { "widget": {
"name": "height" "name": "height"
}, },
"link": 143 "link": 308
} }
], ],
"outputs": [ "outputs": [
@ -1853,7 +2014,7 @@
"widget": { "widget": {
"name": "height" "name": "height"
}, },
"link": 153 "link": 309
} }
], ],
"outputs": [ "outputs": [
@ -1988,7 +2149,7 @@
"widget": { "widget": {
"name": "width" "name": "width"
}, },
"link": 160 "link": 304
}, },
{ {
"localized_name": "height", "localized_name": "height",
@ -2352,8 +2513,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 122, "id": 302,
"origin_id": 50, "origin_id": 140,
"origin_slot": 1, "origin_slot": 1,
"target_id": 77, "target_id": 77,
"target_slot": 2, "target_slot": 2,
@ -2400,16 +2561,16 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 134, "id": 303,
"origin_id": 50, "origin_id": 140,
"origin_slot": 1, "origin_slot": 1,
"target_id": 81, "target_id": 81,
"target_slot": 2, "target_slot": 2,
"type": "INT" "type": "INT"
}, },
{ {
"id": 135, "id": 307,
"origin_id": 55, "origin_id": 141,
"origin_slot": 1, "origin_slot": 1,
"target_id": 81, "target_id": 81,
"target_slot": 3, "target_slot": 3,
@ -2448,8 +2609,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 143, "id": 308,
"origin_id": 55, "origin_id": 141,
"origin_slot": 1, "origin_slot": 1,
"target_id": 84, "target_id": 84,
"target_slot": 3, "target_slot": 3,
@ -2480,8 +2641,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 153, "id": 309,
"origin_id": 55, "origin_id": 141,
"origin_slot": 1, "origin_slot": 1,
"target_id": 86, "target_id": 86,
"target_slot": 3, "target_slot": 3,
@ -2504,8 +2665,8 @@
"type": "INT" "type": "INT"
}, },
{ {
"id": 160, "id": 304,
"origin_id": 50, "origin_id": 140,
"origin_slot": 1, "origin_slot": 1,
"target_id": 89, "target_id": 89,
"target_slot": 2, "target_slot": 2,
@ -2519,6 +2680,38 @@
"target_slot": 3, "target_slot": 3,
"type": "INT" "type": "INT"
}, },
{
"id": 300,
"origin_id": 51,
"origin_slot": 0,
"target_id": 140,
"target_slot": 0,
"type": "INT"
},
{
"id": 301,
"origin_id": 78,
"origin_slot": 1,
"target_id": 140,
"target_slot": 1,
"type": "INT"
},
{
"id": 305,
"origin_id": 51,
"origin_slot": 1,
"target_id": 141,
"target_slot": 0,
"type": "INT"
},
{
"id": 306,
"origin_id": 71,
"origin_slot": 1,
"target_id": 141,
"target_slot": 1,
"type": "INT"
},
{ {
"id": 74, "id": 74,
"origin_id": -10, "origin_id": -10,