Commit 0eaa558
Segment union (mcmonkeyprojects#894)
* Add syntax for merging multiple segment masks into a single segment.
`<segment:face || hair || yolo-skin_yolov8m-seg_60.pt> prompt for face and hair and skin`
Also supports a threshold for each part of the mask, by appending a semicolon and the threshold
`<segment:face;0.5 || hair, 0.4, 0.6>` will apply 0.5 threshold to the face mask and the overall segment threshold (0.6) to the hair mask.
* Update UI to support multiple segment masks
* Update Prompt Syntax with the new segment syntax
* Revert segment modal window changes to keep it simple for beginners.
* Update SwarmClipSeg node to emit mask with 3 dimensions.
* Update SwarmYolo node to emit masks with 3 dimensions (instead of sometimes 2)
* simplify the PR to just the focal point
* single-pipe
---------
Co-authored-by: Alex "mcmonkey" Goodwin <[email protected]>1 parent 7686ddb commit 0eaa558
File tree
5 files changed
+68
-35
lines changed- docs/Features
- src
- BuiltinExtensions/ComfyUIBackend
- ExtraNodes
- SwarmComfyCommon
- SwarmComfyExtra
- wwwroot/js/genpage/gentab
5 files changed
+68
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
Lines changed: 59 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1356 | 1379 | | |
1357 | 1380 | | |
1358 | 1381 | | |
1359 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1360 | 1388 | | |
1361 | | - | |
| 1389 | + | |
1362 | 1390 | | |
1363 | | - | |
1364 | | - | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1365 | 1396 | | |
1366 | | - | |
| 1397 | + | |
1367 | 1398 | | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1379 | 1402 | | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1384 | 1412 | | |
1385 | 1413 | | |
1386 | 1414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments