Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77a3fe1ff8 | ||
|
|
95ab5f6e0e | ||
|
|
aadfcb88ec | ||
|
|
e8da2a52a2 | ||
|
|
5fec58ace9 | ||
|
|
f91c8e48d5 | ||
|
|
c5ad611bee | ||
|
|
f71088b958 | ||
|
|
fec84b928c | ||
|
|
4b1ef024b8 | ||
|
|
71c1ec2071 | ||
|
|
0991ef27bb | ||
|
|
170885cb73 | ||
|
|
a4354a47dd | ||
|
|
cb612c777f | ||
|
|
c0e348bedd | ||
|
|
722878d0c1 | ||
|
|
0f4a156c6b | ||
|
|
78e696ad8b | ||
|
|
6effc61e2d | ||
|
|
2b03710023 | ||
|
|
df5ee8bb08 | ||
|
|
da10e98b43 | ||
|
|
6308a7257f | ||
|
|
14298c6d7e | ||
|
|
9a7b8ee5b1 | ||
|
|
acbbb032ef | ||
|
|
a8321bccad | ||
|
|
a0b3c2ea95 | ||
|
|
d6a7c630b2 | ||
|
|
03ddbc9ef7 | ||
|
|
060c40a195 | ||
|
|
9f3ac5a498 | ||
|
|
c7fe70dde9 | ||
|
|
d28ce0ebb6 | ||
|
|
72f8830ebd | ||
|
|
2477b758a0 | ||
|
|
84515ebd97 | ||
|
|
d19e6661b2 | ||
|
|
2e8a10ec10 | ||
|
|
f0f5134c7e | ||
|
|
174d4a81b1 | ||
|
|
c30b124178 | ||
|
|
37e13da2ae | ||
|
|
8520951187 | ||
|
|
7f13daead7 | ||
|
|
1fca384aff | ||
|
|
f39396c5d4 | ||
|
|
98dced9d2f | ||
|
|
369702d22a | ||
|
|
f453bacf5e | ||
|
|
48c0bc0000 | ||
|
|
e76d475eb3 | ||
|
|
b33ea15575 | ||
|
|
2f080686f9 | ||
|
|
c020e53435 | ||
|
|
0632c104ff | ||
|
|
62413eef53 | ||
|
|
9943a60e63 | ||
|
|
050723f245 | ||
|
|
c5bfdcfe93 | ||
|
|
5cdb560c0c | ||
|
|
6640478428 | ||
|
|
067e5e946a | ||
|
|
af923711a2 | ||
|
|
7766dad425 | ||
|
|
4f54298cac | ||
|
|
e2cef8e75c | ||
|
|
ce672777c5 | ||
|
|
b9abadc011 | ||
|
|
7315c9bd30 | ||
|
|
cf5e5a832b | ||
|
|
4c1d25d81f | ||
|
|
3f248d1b98 | ||
|
|
839e00bbac | ||
|
|
2a367a90cc | ||
|
|
9c2fa1e454 | ||
|
|
57672d9058 | ||
|
|
365050aa8c | ||
|
|
b9c5898285 | ||
|
|
b90ee3bf14 | ||
|
|
f3fd30e965 | ||
|
|
4186db0a26 | ||
|
|
1749792457 | ||
|
|
0ba8b5664b | ||
|
|
9136fe88d3 | ||
|
|
9cd87d4778 | ||
|
|
f0ef22c01c | ||
|
|
98e4ddf1ff | ||
|
|
c478c86e73 | ||
|
|
bbd1841e42 | ||
|
|
50897144bd | ||
|
|
84115ca26e | ||
|
|
699c435955 | ||
|
|
017788a2d9 | ||
|
|
6bfbfcbf29 | ||
|
|
7a34c917ae | ||
|
|
e3871d624c | ||
|
|
538698d2b2 | ||
|
|
be9db84962 | ||
|
|
ad7bf01cbc | ||
|
|
254be062ba | ||
|
|
1d4d619649 | ||
|
|
d9a143b98e | ||
|
|
f6d01458a8 | ||
|
|
60dca17f4a | ||
|
|
94b1ab1def | ||
|
|
f7fe1ceac8 | ||
|
|
e21c06591d | ||
|
|
39af045ecd | ||
|
|
043025107d | ||
|
|
32b42832fc | ||
|
|
7ab5b333a0 | ||
|
|
62e5d26e14 | ||
|
|
36d5ee3604 | ||
|
|
6ec510f5e0 | ||
|
|
95350d1d77 | ||
|
|
f6f9fb4525 | ||
|
|
3399f6c4f2 | ||
|
|
e9864c02cb | ||
|
|
ccce4073a6 | ||
|
|
5389db5ce5 | ||
|
|
e8be47102e | ||
|
|
ac9817945e | ||
|
|
1068b3fb75 | ||
|
|
1bf9f0bbb8 | ||
|
|
201cd54508 | ||
|
|
4ce99c7254 | ||
|
|
be078c7da3 | ||
|
|
533fede3b9 | ||
|
|
f8ce7c03b7 | ||
|
|
6e9651613a | ||
|
|
e382402bea | ||
|
|
676c810538 | ||
|
|
780177f118 | ||
|
|
1f11996210 | ||
|
|
b5481a6bbd | ||
|
|
07bb4d792b | ||
|
|
34995f9fdb | ||
|
|
8e00fd07fc | ||
|
|
c47b4bd36e | ||
|
|
41260de5b3 | ||
|
|
e82fdddfb9 | ||
|
|
3213c6a4c1 | ||
|
|
b6266d1f13 | ||
|
|
fbabc5de42 | ||
|
|
6f2a39502e | ||
|
|
c33fc9a968 | ||
|
|
eb1be4f36c | ||
|
|
0a16f4da32 | ||
|
|
89a8e2d05d | ||
|
|
0d1f6cf246 | ||
|
|
f9b142bb76 | ||
|
|
d0ce322d7c | ||
|
|
9a52cd8a04 | ||
|
|
20f5ea273d | ||
|
|
f4c123cffb | ||
|
|
148edbd741 | ||
|
|
d31377a939 | ||
|
|
3942e7d9dc | ||
|
|
28936dbe7e | ||
|
|
f75f7456b0 | ||
|
|
52e1e81838 | ||
|
|
6c41677b36 | ||
|
|
33555abf0f | ||
|
|
6a891d185c | ||
|
|
199a618a94 | ||
|
|
62a3fcbacc | ||
|
|
09bf3e9908 | ||
|
|
2e713a4f10 | ||
|
|
0b84c467c7 | ||
|
|
2ec0c6c425 | ||
|
|
80d056fc55 | ||
|
|
84c346c250 | ||
|
|
3fb2f028e3 | ||
|
|
d9c5a9e758 | ||
|
|
04e4d71a73 | ||
|
|
5f6ba96174 | ||
|
|
b1f9b9ab21 | ||
|
|
762b84886d | ||
|
|
1321486537 | ||
|
|
6e3ced5f2d | ||
|
|
841d82dff1 | ||
|
|
3d3a0d1a51 | ||
|
|
515bb90afb | ||
|
|
e8df529c76 | ||
|
|
b40e19cf35 | ||
|
|
e40f1075b9 | ||
|
|
c74c4877c3 | ||
|
|
0a23673a5a | ||
|
|
852af46786 | ||
|
|
63790c2e10 | ||
|
|
2289ef77aa | ||
|
|
7d09daeb39 | ||
|
|
7c61ae226d | ||
|
|
52cb5d8493 | ||
|
|
bfa7c35a64 | ||
|
|
916197fb28 | ||
|
|
286866fa0f | ||
|
|
a9fe941b03 | ||
|
|
f684af1273 | ||
|
|
734e88af1f | ||
|
|
a3a5cf2826 | ||
|
|
2fa296fe89 | ||
|
|
07461b5972 | ||
|
|
952f72bedf | ||
|
|
3792649ae5 | ||
|
|
5b00d85094 | ||
|
|
09b8c499e7 | ||
|
|
d2782a2a90 | ||
|
|
3ef50e0262 | ||
|
|
f9cd259a3e | ||
|
|
9f3a6f2010 | ||
|
|
2f31463af8 | ||
|
|
9ab4365245 | ||
|
|
5dfbcdd99c | ||
|
|
20f860d5ff | ||
|
|
44edcc633c | ||
|
|
c99425cef1 | ||
|
|
dcb9be2bdc | ||
|
|
9304be69a8 | ||
|
|
743126d86f | ||
|
|
fb430afca1 | ||
|
|
c636d73223 | ||
|
|
6db92cdd28 | ||
|
|
3c6cbd3a41 | ||
|
|
a606d34b97 | ||
|
|
6d1ca0055d | ||
|
|
aaf3ae6ae6 | ||
|
|
d62d263725 | ||
|
|
ffd4e66654 | ||
|
|
7f97d84a88 | ||
|
|
acfe587691 | ||
|
|
f87d710d14 | ||
|
|
85da4a4d0e | ||
|
|
4832789b48 | ||
|
|
9e9121accb | ||
|
|
905ee4033f | ||
|
|
3ef9e5f51d | ||
|
|
05628b7834 | ||
|
|
c1c1a5e054 | ||
|
|
a3eb72a30c | ||
|
|
cacadcf3b1 | ||
|
|
467505748d | ||
|
|
c100ef82c4 | ||
|
|
fa695038ce | ||
|
|
30cc27b985 | ||
|
|
081379ae97 | ||
|
|
21f97580e9 | ||
|
|
8c6599d2d4 | ||
|
|
78312c7bf5 | ||
|
|
16796566c4 | ||
|
|
3f36952095 | ||
|
|
0f4bd5b135 | ||
|
|
8a5fbfe1fb | ||
|
|
f6503cc7af | ||
|
|
51993c0a2c | ||
|
|
b043f6f1a7 | ||
|
|
29c986cfdc | ||
|
|
171ad422b9 | ||
|
|
f4061f4255 | ||
|
|
9d7bcfbfb6 | ||
|
|
8d139cdfc5 | ||
|
|
fae68ecb77 | ||
|
|
661c33a926 | ||
|
|
9b27bc9c4c | ||
|
|
2b5d5de853 | ||
|
|
de530e2eac | ||
|
|
7d81a43133 | ||
|
|
0067575b0c | ||
|
|
8cc90794d8 | ||
|
|
d82ed510b9 | ||
|
|
3f06362f9c | ||
|
|
d37e0cd026 | ||
|
|
38bdddded8 | ||
|
|
f0f6ca9f0c | ||
|
|
d47a6743e3 | ||
|
|
ab8389d598 | ||
|
|
5b10b3a23f | ||
|
|
f2d966afd1 | ||
|
|
182abca56f | ||
|
|
c1c9831378 | ||
|
|
6418940761 | ||
|
|
72af858975 | ||
|
|
80e5221403 | ||
|
|
f658ac58b0 | ||
|
|
adb1eaacc4 | ||
|
|
b0f8b5ec55 | ||
|
|
a3984bf656 | ||
|
|
72543c0b35 | ||
|
|
b2afb6c7a7 | ||
|
|
232e1dcdb7 | ||
|
|
ab67a1f77f | ||
|
|
2af3fd9c83 | ||
|
|
9986ded109 | ||
|
|
197ac04a8c | ||
|
|
be2a2a1444 | ||
|
|
76eb4fc7e7 | ||
|
|
057f2bd05a | ||
|
|
172252ab02 | ||
|
|
ebc81ea57e | ||
|
|
bc235e96e5 | ||
|
|
6572b49386 | ||
|
|
d593e01fc9 | ||
|
|
009aa95d98 | ||
|
|
b61b3efc94 | ||
|
|
6cfed25a8e | ||
|
|
27e175aa08 | ||
|
|
6224bae13c | ||
|
|
bd49afae19 | ||
|
|
13e4d73dbd | ||
|
|
37584519e8 | ||
|
|
1ed921b6fb | ||
|
|
15e5803a06 | ||
|
|
a0327f6ddd | ||
|
|
e65612bb28 | ||
|
|
11d79b252d | ||
|
|
7e5cadaa06 | ||
|
|
94d302e112 | ||
|
|
fb26f3ae06 | ||
|
|
11638b0557 | ||
|
|
ad81fbcca1 | ||
|
|
9cc91ffba8 | ||
|
|
0450466422 | ||
|
|
d5442cd659 | ||
|
|
9a1096149a | ||
|
|
0401d9dd34 | ||
|
|
8961827079 | ||
|
|
dea2eac8cd | ||
|
|
3c1eeaa486 | ||
|
|
cf0eec8d31 | ||
|
|
8618d8ca56 | ||
|
|
46dde36185 | ||
|
|
a29ca76fe8 | ||
|
|
2908eac20c | ||
|
|
1276d95708 | ||
|
|
39a7599fd9 | ||
|
|
c4e519565b | ||
|
|
f18b8f6ca3 | ||
|
|
64ab3e9761 | ||
|
|
065f2cb14c | ||
|
|
3d99ddd35a | ||
|
|
224b4af1da | ||
|
|
0a7177b151 | ||
|
|
b31561d1a0 | ||
|
|
ba4ab486c3 | ||
|
|
4603256ebf | ||
|
|
52b23691dc | ||
|
|
df773658da | ||
|
|
d4636bb5e3 | ||
|
|
83f59cac93 | ||
|
|
431941fc9d | ||
|
|
f5eab116c0 | ||
|
|
6008d31653 | ||
|
|
434817bc76 | ||
|
|
cdd98b13a3 | ||
|
|
f9683347be | ||
|
|
a2853a0ae1 | ||
|
|
b2eb11996b | ||
|
|
36fcf9db4f | ||
|
|
cb21a14424 | ||
|
|
f9ca96f648 | ||
|
|
2d7dd74fe2 | ||
|
|
8a379940bd | ||
|
|
a87ffb84b7 | ||
|
|
89bda6ba11 | ||
|
|
e191f0fc40 | ||
|
|
090dcdad62 | ||
|
|
47d1c4f739 | ||
|
|
a92017cff4 | ||
|
|
cfbc42799a | ||
|
|
799d731ab5 | ||
|
|
5fc8cffc9f | ||
|
|
4dffaf3991 | ||
|
|
bc474f1532 | ||
|
|
c206d9e9da | ||
|
|
b4657e2b58 | ||
|
|
eba880cdee | ||
|
|
b6a67a4c34 | ||
|
|
27525ffdd8 | ||
|
|
eb668c448c | ||
|
|
9b3cd7c769 | ||
|
|
13c303178b | ||
|
|
f945feabb6 | ||
|
|
24ce4ffb06 | ||
|
|
980ed5db8b | ||
|
|
bf59887643 | ||
|
|
60be0ee865 | ||
|
|
146e3cfa8b | ||
|
|
e22ddb90d5 | ||
|
|
db9a033f11 | ||
|
|
442656c712 | ||
|
|
b17f8c0355 | ||
|
|
92a4ae8c56 | ||
|
|
51a2aebf40 | ||
|
|
28fbd321c7 | ||
|
|
144884fae3 | ||
|
|
935741b43d | ||
|
|
c1b620d448 | ||
|
|
4b1dc7ccb7 | ||
|
|
c963657b6e | ||
|
|
5b4651df45 | ||
|
|
1b1fca961c | ||
|
|
1568a56874 | ||
|
|
989a0e32d6 | ||
|
|
2ce4d7c9f0 | ||
|
|
25b293513e | ||
|
|
a5190b3c6b | ||
|
|
9c58b5a9ed | ||
|
|
8d38e53b3a | ||
|
|
ef6b10a380 | ||
|
|
3f7759aa79 | ||
|
|
95b69ce4af | ||
|
|
28340ded7e | ||
|
|
da3072a7de | ||
|
|
475d6e19ea | ||
|
|
b3df628a60 | ||
|
|
2a2b31721b | ||
|
|
68a36d99e1 | ||
|
|
f4d42734fe | ||
|
|
7d9e972f77 | ||
|
|
a6e2b65e97 | ||
|
|
d513723bb0 | ||
|
|
9f8bf4d803 | ||
|
|
d6f7ddc5a3 | ||
|
|
8f4e6f20fd | ||
|
|
8bc2d183c9 | ||
|
|
421849cae0 | ||
|
|
d7415f7863 | ||
|
|
6e48ca10d8 | ||
|
|
0b9259f86b | ||
|
|
0386e9c416 | ||
|
|
95a259cc69 | ||
|
|
eb3b74242a | ||
|
|
28c4f6aeb5 | ||
|
|
3a4ce52760 | ||
|
|
e761b3dd0b | ||
|
|
3b0baf351a | ||
|
|
50389b0cdb | ||
|
|
28dd526447 | ||
|
|
abf6cecd52 | ||
|
|
12e7d8c33f | ||
|
|
de95db228c | ||
|
|
93f64d07d7 | ||
|
|
b3a3d7a8ca | ||
|
|
c1d6136663 | ||
|
|
515b9ea4bd | ||
|
|
c37386c1d4 | ||
|
|
7cb0abaacf | ||
|
|
939d320b8b | ||
|
|
9bb8a201fe | ||
|
|
52c3353c69 | ||
|
|
ded731859c | ||
|
|
e14682f54f | ||
|
|
1129232f83 | ||
|
|
9ba82c45b4 | ||
|
|
099b57f755 | ||
|
|
f27e1293b0 | ||
|
|
75621c341f | ||
|
|
ba8d2b8048 | ||
|
|
00164f1df5 | ||
|
|
2316afee62 | ||
|
|
6b1b1cfabc | ||
|
|
aaf63b9d9c | ||
|
|
17fb493a66 | ||
|
|
3e2ae322f8 | ||
|
|
a61d3d4ee0 | ||
|
|
dff08a3b6e | ||
|
|
91b53162cc | ||
|
|
1ea57b6538 | ||
|
|
6d6876dd38 | ||
|
|
f9e17c1fdd | ||
|
|
21ca6e9f47 | ||
|
|
5a41046e3f | ||
|
|
264c133618 | ||
|
|
310d2ba5c3 | ||
|
|
b5bce60c22 | ||
|
|
e532e56ed9 | ||
|
|
f7d6596937 | ||
|
|
5f32967ee5 | ||
|
|
b01e9a4c70 | ||
|
|
c669f1100d | ||
|
|
39da7a3931 | ||
|
|
8b75948359 | ||
|
|
33ce662398 | ||
|
|
7f7481c505 | ||
|
|
68f4f4b301 | ||
|
|
ff6706a918 | ||
|
|
4afb60c921 | ||
|
|
c4a64366a6 | ||
|
|
e4b9a08cec | ||
|
|
a5358c4f78 | ||
|
|
d4df8f7508 | ||
|
|
e93f3337a1 | ||
|
|
d0658ea8b2 | ||
|
|
0853872174 | ||
|
|
2545b82219 | ||
|
|
13145ed881 | ||
|
|
fe04d93afa | ||
|
|
4591dd4ef9 | ||
|
|
cd05a91e14 | ||
|
|
1faca35331 | ||
|
|
3e79954bbe | ||
|
|
8837c75553 | ||
|
|
69fbceb0a1 | ||
|
|
714b638ee8 | ||
|
|
5d00076254 | ||
|
|
8b7a717004 | ||
|
|
6af50147fc | ||
|
|
c54ee8984f | ||
|
|
3ba27901cb | ||
|
|
f131718cf8 | ||
|
|
e8419b2667 | ||
|
|
ef851094ba | ||
|
|
9aefc53134 | ||
|
|
1ec9027413 | ||
|
|
641b907796 | ||
|
|
1985103fa2 | ||
|
|
acad58b613 | ||
|
|
15718c07ee | ||
|
|
438ab30b79 | ||
|
|
a37dfb93b6 | ||
|
|
a6ea043462 | ||
|
|
da98850591 | ||
|
|
812a22c070 | ||
|
|
0afae99b30 | ||
|
|
840f0003dd | ||
|
|
7469c5869e | ||
|
|
a1b14cc4a4 | ||
|
|
1051bee665 | ||
|
|
0a098e1027 | ||
|
|
8f6ac16d27 | ||
|
|
e808f4ff51 | ||
|
|
35651e3445 | ||
|
|
571f4f1896 | ||
|
|
6c705b2e42 | ||
|
|
b063e6f2c1 | ||
|
|
9917dc3d15 | ||
|
|
de88c8d5e4 | ||
|
|
8062c35f70 | ||
|
|
1f07ad8ba1 | ||
|
|
b6012c48fb | ||
|
|
cc5617db04 | ||
|
|
3d94052489 | ||
|
|
5b8cad57d7 | ||
|
|
2b34005150 | ||
|
|
48a2ce3b33 | ||
|
|
c017554d05 | ||
|
|
249275b78d | ||
|
|
adf9cda5c0 |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"attribution": {
|
||||
"commit": "",
|
||||
"pr": ""
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,10 @@ SECURITY.md
|
||||
.claude/
|
||||
/docs/
|
||||
|
||||
# the skill an AI agent installs from the repository (npx skills add);
|
||||
# nothing in the pack loads it
|
||||
/skills/
|
||||
|
||||
# README media: GitHub shows it on the repository page, nothing in the
|
||||
# pack loads it
|
||||
/assets/
|
||||
|
||||
@@ -13,7 +13,11 @@ name: ComfyUI updates
|
||||
# and required input the example workflows use.
|
||||
# 4. scripts/dev/face_smoke.mjs puts every node on a graph in headless
|
||||
# Chrome, in the classic node view and in Nodes 2.0: its face comes up
|
||||
# and nothing throws.
|
||||
# and nothing throws. A third run acts like a privacy browser that
|
||||
# blanks canvas pixel reads: a node that loads a picture must still
|
||||
# draw it.
|
||||
# scripts/dev/h3_sockets_check.mjs then checks that H3 Prompt Writer
|
||||
# still draws only the sockets in use, in both views.
|
||||
#
|
||||
# A failure on the release opens an issue (or adds to the open one) and fails
|
||||
# the run. The development head breaks and mends itself often, so that job
|
||||
@@ -31,6 +35,7 @@ on:
|
||||
- "tests/test_comfy_core_contract.py"
|
||||
- "scripts/compat_boot.py"
|
||||
- "scripts/dev/face_smoke.mjs"
|
||||
- "scripts/dev/h3_sockets_check.mjs"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -117,7 +122,7 @@ jobs:
|
||||
echo "ComfyUI did not come up"; tail -60 "$GITHUB_WORKSPACE/comfyui.log"; exit 1
|
||||
- name: Every node is offered and every example still fits
|
||||
run: python ComfyUI-AusBoss/scripts/compat_boot.py --url http://127.0.0.1:8188 --log comfyui.log
|
||||
- name: Every node's face comes up, classic and Nodes 2.0
|
||||
- name: Every node's face comes up, classic, Nodes 2.0 and a privacy browser
|
||||
run: |
|
||||
google-chrome --headless=new --remote-debugging-port=9333 --no-sandbox --disable-gpu --disable-dev-shm-usage \
|
||||
--user-data-dir="$RUNNER_TEMP/chrome" about:blank > "$GITHUB_WORKSPACE/chrome.log" 2>&1 &
|
||||
@@ -125,6 +130,9 @@ jobs:
|
||||
status=0
|
||||
node ComfyUI-AusBoss/scripts/dev/face_smoke.mjs 9333 || status=1
|
||||
node ComfyUI-AusBoss/scripts/dev/face_smoke.mjs 9333 --vue || status=1
|
||||
node ComfyUI-AusBoss/scripts/dev/face_smoke.mjs 9333 --blocked-reads || status=1
|
||||
node ComfyUI-AusBoss/scripts/dev/h3_sockets_check.mjs 9333 || status=1
|
||||
node ComfyUI-AusBoss/scripts/dev/h3_sockets_check.mjs 9333 --vue || status=1
|
||||
exit "$status"
|
||||
- name: ComfyUI's log
|
||||
if: ${{ always() }}
|
||||
|
||||
@@ -11,6 +11,7 @@ on:
|
||||
# version in pyproject.toml, or on a manual run from main. Editing another
|
||||
# pyproject field (description, keywords) without a new version publishes
|
||||
# nothing, and the offline checks must pass before anything is uploaded.
|
||||
# A successful upload also creates the version's tag and GitHub Release.
|
||||
# Requires the repository secret REGISTRY_ACCESS_TOKEN, an API key created
|
||||
# for the "ausboss" publisher at registry.comfy.org.
|
||||
permissions:
|
||||
@@ -28,6 +29,7 @@ jobs:
|
||||
if: ${{ github.repository == 'ausboss/ComfyUI-AusBoss' && github.ref == 'refs/heads/main' }}
|
||||
outputs:
|
||||
publish: ${{ steps.version.outputs.publish }}
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
@@ -44,6 +46,7 @@ jobs:
|
||||
run: |
|
||||
read_version='import sys, tomllib; print(tomllib.loads(sys.stdin.read())["project"]["version"])'
|
||||
current=$(python -c "$read_version" < pyproject.toml)
|
||||
echo "version=$current" >> "$GITHUB_OUTPUT"
|
||||
previous=""
|
||||
if [ -n "$BEFORE" ] && git cat-file -e "$BEFORE^{commit}" 2>/dev/null; then
|
||||
previous=$(git show "$BEFORE:pyproject.toml" | python -c "$read_version")
|
||||
@@ -84,3 +87,33 @@ jobs:
|
||||
uses: Comfy-Org/publish-node-action@main
|
||||
with:
|
||||
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
|
||||
github-release:
|
||||
name: Create GitHub Release
|
||||
needs: [check, publish-node]
|
||||
if: ${{ needs.check.outputs.publish == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Publish release notes and tag
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
VERSION: ${{ needs.check.outputs.version }}
|
||||
run: |
|
||||
tag="v$VERSION"
|
||||
if gh release view "$tag" >/dev/null 2>&1; then
|
||||
echo "Release $tag already exists; leaving it unchanged."
|
||||
exit 0
|
||||
fi
|
||||
python scripts/changelog_notes.py --version "$VERSION" --full > "$RUNNER_TEMP/release-notes.md"
|
||||
gh release create "$tag" --target "$GITHUB_SHA" --title "$VERSION" \
|
||||
--notes-file "$RUNNER_TEMP/release-notes.md" --latest
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
name: Publish Model Downloader addon
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
addon_commit:
|
||||
description: Full commit SHA from ComfyUI-AusBoss-Model-Downloader main
|
||||
required: true
|
||||
type: string
|
||||
changelog:
|
||||
description: Release note for this version, shown in the Registry's Updates section
|
||||
required: true
|
||||
type: string
|
||||
|
||||
# The existing AusBoss publisher credential stays in this repository. This
|
||||
# manual job publishes only the separately maintained Model Downloader addon.
|
||||
# It does not release or change the main AusBoss node pack.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: registry-publish-model-downloader
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
if: github.repository == 'ausboss/ComfyUI-AusBoss' && github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Require an exact addon commit
|
||||
env:
|
||||
ADDON_COMMIT: ${{ inputs.addon_commit }}
|
||||
run: '[[ "$ADDON_COMMIT" =~ ^[0-9a-f]{40}$ ]]'
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||
with:
|
||||
repository: ausboss/ComfyUI-AusBoss-Model-Downloader
|
||||
ref: ${{ inputs.addon_commit }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- name: Require a commit merged into addon main
|
||||
run: git merge-base --is-ancestor HEAD origin/main
|
||||
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
|
||||
with:
|
||||
node-version: '24'
|
||||
package-manager-cache: false
|
||||
- name: Install validation and publishing tools
|
||||
run: python -m pip install -r requirements-dev.txt comfy-cli==1.25.0
|
||||
- name: Offline checks
|
||||
run: |
|
||||
python -m unittest discover -s tests -v
|
||||
ruff check --select F,E9 __init__.py downloader tests scripts
|
||||
node --test tests/*.test.mjs
|
||||
node --check js/model_downloader/index.js
|
||||
node --check js/shared/download_controls.mjs
|
||||
- name: Build and inspect Registry package
|
||||
run: |
|
||||
comfy --skip-prompt --no-enable-telemetry node pack
|
||||
python scripts/check_registry_package.py
|
||||
- name: Refuse an existing immutable version
|
||||
run: python scripts/registry_status.py --require-unpublished
|
||||
- name: Publish addon
|
||||
id: publish
|
||||
env:
|
||||
REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
COMFY_NODE_CHANGELOG: ${{ inputs.changelog }}
|
||||
run: |
|
||||
if [ -z "$REGISTRY_ACCESS_TOKEN" ]; then
|
||||
echo '::error::REGISTRY_ACCESS_TOKEN is not configured.'
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${COMFY_NODE_CHANGELOG// /}" ]; then
|
||||
echo '::error::The changelog input is empty; the Registry shows it as the release note.'
|
||||
exit 1
|
||||
fi
|
||||
comfy --skip-prompt --no-enable-telemetry node publish --token "$REGISTRY_ACCESS_TOKEN"
|
||||
- name: Report Registry review status
|
||||
if: always() && steps.publish.outcome != 'skipped'
|
||||
run: python scripts/registry_status.py --report
|
||||
@@ -1,334 +1,12 @@
|
||||
# ComfyUI-AusBoss contributor guide
|
||||
# ComfyUI-AusBoss: start here
|
||||
|
||||
Rules for contributors: how the repo is laid out, the conventions every node
|
||||
follows, and the checks to run.
|
||||
A pack of ComfyUI custom nodes by ausboss. Two kinds of agents read this.
|
||||
|
||||
A suite of polished ComfyUI custom nodes by ausboss. Public nodes must solve a
|
||||
repeated workflow need, keep a compact graph footprint, and pass backend plus
|
||||
browser acceptance before release.
|
||||
|
||||
## READ FIRST: write for the people who use the nodes
|
||||
|
||||
Everything a user reads starts with the plainest version. That covers node
|
||||
descriptions, tooltips, the `?` help pages (`js/docs/*.md`), the README,
|
||||
example workflow notes, report and error text, and the CHANGELOG. Get more
|
||||
technical later in the text, or in its own section.
|
||||
|
||||
- Open with what it does and when to use it, in everyday words and short
|
||||
sentences. Someone new to ComfyUI should get it on the first read.
|
||||
- A tooltip is one or two short sentences: what this is, and what to pick.
|
||||
- Measurements, test results, edge cases and how it works go further down,
|
||||
under a heading such as "Technical details".
|
||||
- Keep jargon out of the opening (resample, warp, frame, affine,
|
||||
estimator, canvas space). If a term is needed, say what it means the
|
||||
first time.
|
||||
- Put a number up top only when it helps someone decide what to do.
|
||||
|
||||
If a sentence needs a second read, rewrite it.
|
||||
|
||||
## Which nodes ship
|
||||
|
||||
A node ships only when its mapping key is listed in `PUBLIC_NODE_IDS` in
|
||||
`scripts/validate_nodes.py`; the validator fails on any registered key that
|
||||
is not listed there.
|
||||
|
||||
## Hard rules
|
||||
|
||||
- Never modify `LICENSE`.
|
||||
- Never bump `version` in `pyproject.toml` — a version bump that lands on
|
||||
main **publishes to the Comfy Registry automatically** (see Releasing).
|
||||
- Keep diffs minimal: touch only the lines the task needs.
|
||||
|
||||
## Third-party independence
|
||||
|
||||
- Never copy third-party code, assets, fonts, icons, CSS, or documentation.
|
||||
- Review ecosystem overlap before accepting a public node. Generic overlap is
|
||||
fine, but implementation, naming, interaction design, and documentation must
|
||||
be this repository's own work.
|
||||
|
||||
## Architecture
|
||||
|
||||
```text
|
||||
__init__.py # NODE_MODULES list → importlib merge of all mappings.
|
||||
# Fail-soft: a broken module logs and is skipped, the rest load.
|
||||
nodes/
|
||||
node_<name>.py # exactly one node (or one tight family) per file;
|
||||
# exports NODE_CLASS_MAPPINGS + NODE_DISPLAY_NAME_MAPPINGS
|
||||
_<topic>_helpers.py # shared backend logic, underscore prefix = not a node
|
||||
js/
|
||||
<name>/index.js # frontend entry per node or pack-wide feature, e.g.
|
||||
# appearance/ (.js files auto-load)
|
||||
shared/*.mjs # import-only shared modules (.mjs files do NOT auto-load)
|
||||
docs/ # developer docs
|
||||
scripts/ # offline checks in stdlib Python. validate_nodes.py is
|
||||
# the entry point; registry_contract.py holds the rules
|
||||
# that keep nodes visible to registry scanners;
|
||||
# registry_status.py reads the Registry API; dev/ is the
|
||||
# Node.js canvas harness (docs/live_testing.md).
|
||||
example_workflows/ # example workflows (regular workflow JSON, not API JSON)
|
||||
```
|
||||
|
||||
## Conventions
|
||||
|
||||
- Public mapping keys use `AUSBOSS_NODES_<Purpose>`. The mapping key is the
|
||||
workflow-compatibility contract and must never be renamed after release.
|
||||
- Inputs and outputs only grow after a release: append an input as
|
||||
optional, append an output, and never rename, reorder, remove or newly
|
||||
require one. Saved workflows keep widget values by position and links by
|
||||
slot, and an API prompt must carry every required input.
|
||||
`tests/test_node_api.py` holds the pack to `tests/fixtures/node_api.json`;
|
||||
refresh that snapshot with the test's `--update` after a compatible change
|
||||
or a new node.
|
||||
- Appending an input to a node with a card or panel takes one more step.
|
||||
Workflows saved by earlier releases end that node's values with an empty
|
||||
value for each card and panel, and values come back by position, so the
|
||||
new input opens holding that empty value. Give a widget input a
|
||||
`resetUnknown` fallback in its card (`js/widget_cards/index.js`), or a
|
||||
`RESET_UNKNOWN` beside `NODE_CLASS` in the node's own `js/<name>/index.js`
|
||||
if it has no card (as LoRA Loader does). The fallback equals the node's
|
||||
default, which is what an API prompt without the input runs with. Then
|
||||
list the input in `tests/saved_widget_values.test.mjs`. Cards and
|
||||
panels themselves are never saved: set `widget.serialize = false` right
|
||||
after `addDOMWidget` (`options.serialize` only keeps a widget out of the
|
||||
prompt).
|
||||
- Write those keys as **string literals** inside `NODE_CLASS_MAPPINGS` and
|
||||
`NODE_DISPLAY_NAME_MAPPINGS` — never a `NODE_ID` variable. Registry scanners
|
||||
(ComfyUI-Manager) AST-parse the source without importing it, so a variable
|
||||
key makes every node invisible and "install missing custom nodes" stops
|
||||
offering the pack. `scripts/validate_nodes.py` enforces this.
|
||||
- Assign each mapping **once**, at module level, to a non-empty dict literal,
|
||||
and never mention the name again — no `update()`, no `del`, no
|
||||
`alias = NODE_CLASS_MAPPINGS`. A scanner reads that one literal and stops,
|
||||
so anything done to the mapping afterwards is invisible to it. Both
|
||||
mappings must carry exactly the same keys.
|
||||
- Display name: `<Name> 🆎` — the emoji is the pack signature. Typing
|
||||
"ausboss" still surfaces every node through the `🆎 AusBoss/<Group>`
|
||||
category, the `AUSBOSS_NODES_` id prefix, and the "ausboss" entry every
|
||||
node keeps in `SEARCH_ALIASES`.
|
||||
- Category: `🆎 AusBoss/<Group>`. The emoji is safe here — categories reach
|
||||
the frontend as JSON and are never printed to the console at import time.
|
||||
- Every node gets `DESCRIPTION`, input `tooltip`s, and `OUTPUT_TOOLTIPS`.
|
||||
- IMAGE tensors are BHWC float batches; MASK is BHW. Return tuples always,
|
||||
even for one output: `(value,)`.
|
||||
- Console output at import time must stay ASCII — ComfyUI on Windows often
|
||||
runs a cp1252 console, and a UnicodeEncodeError there kills the whole pack.
|
||||
- Widget values and route parameters are attacker-controlled: ComfyUI's
|
||||
`/prompt` and the pack's routes need no login. Media reads and writes stay
|
||||
inside ComfyUI's input, output and temp folders - no opt-in switches, no
|
||||
"any folder" settings, no folder pickers. A file is picked from a list and
|
||||
named below one of those folders the way ComfyUI names it
|
||||
(`clip.mp4 [output]`); no input opens a whole path as given.
|
||||
A route answers with data it made (JSON, a small picture), never a file by
|
||||
its path (`web.FileResponse`), and its error text goes through
|
||||
`safe_route_error` (`nodes/_route_errors.py`). Besides those the pack only reads
|
||||
its registered model folders (the one write there is the `.civitai.info`
|
||||
file LoRA Loader's Civitai button saves beside a LoRA) and keeps its own
|
||||
settings files in ComfyUI's user folder (`user/ausboss/`). Nothing is handed to a
|
||||
subprocess. The Registry bans versions for exactly this.
|
||||
- The pack's server code makes no network requests: no HTTP or socket client
|
||||
in shipped Python (`release_preflight.py` fails on one). The one outbound
|
||||
call is LoRA Loader's click-only Civitai lookup, made by the browser to a
|
||||
fixed civitai.com address with a plain SHA256 (`js/lora_loader/index.js`,
|
||||
`js/shared/civitai_lookup.mjs`). `release_preflight.py` allows a raw
|
||||
`fetch(` only there and in `js/cache_guard`, which only talks to the pack's
|
||||
own server. Graph links are made with
|
||||
`linkSlots` from `js/shared/graph_links.mjs`, never the index-based
|
||||
`node.connect(...)`, which registry scans read as a network socket.
|
||||
SECURITY.md states the model for users.
|
||||
- No new pip dependencies without an explicit decision; if truly optional,
|
||||
use `[project.optional-dependencies]` and fail soft at runtime.
|
||||
- Frontend files import each other only with plain string literals
|
||||
(`from "../shared/x.mjs"`, `import("../shared/x.mjs")`). The server adds a
|
||||
version tag to those paths (`nodes/_frontend_cache.py`) so an update never
|
||||
meets old copies from the browser's cache. A path built in code
|
||||
(`new URL(...)`, `"../shared/" + name`) escapes the tag and loads a second,
|
||||
stale copy; `tests/test_frontend_cache.py` fails on one.
|
||||
- Frontend JS never assigns prototype callbacks directly — use
|
||||
`chainCallback` from `js/shared/index.mjs`, or `chainHandler` where the
|
||||
return value matters (a truthy `onMouseDown` result is what stops a node
|
||||
drag). Messages to the user go through `showToast`, never `alert()`.
|
||||
- The mouse wheel over a node zooms the graph, on every part of its face.
|
||||
`js/canvas_passthrough/` hands the wheel on from the pack's panels, and
|
||||
keeps it only for a box that can still scroll or a field being typed in,
|
||||
so a panel adds no wheel listener of its own
|
||||
(`tests/canvas_passthrough.test.mjs` lists the few that exist). After a
|
||||
change to a node face, `scripts/dev/wheel_sweep.mjs` turns the wheel at
|
||||
every point of every node and must find no dead spot, in both renderers.
|
||||
- Every INT and FLOAT a public node exposes reaches the user as a scrub
|
||||
control, Adobe-style: drag the value to scrub, click to type, chevron
|
||||
arrows step, Shift is always the fine step. Use `makeScrubInput` from
|
||||
`js/shared/scrub_input.mjs` — never a bare `<input type=number>`, and
|
||||
never a classic canvas number widget on a finished node face. Units
|
||||
(`px`, `MP`, `×`) ride inside the box in a fixed-width slot that every
|
||||
single-field row reserves, so the numbers down a card share one centre
|
||||
line. Known, deliberate exceptions: the Seed card's seed (typed) and Load
|
||||
Video's trim timecodes (typed).
|
||||
- **Node faces are widget cards.** A node whose face would be classic
|
||||
LiteGraph widgets (full-width rows with an arrow at each end) gets an
|
||||
entry in `js/widget_cards/index.js` instead: `mountWidgetCard` from
|
||||
`js/shared/widget_card.mjs` hides the standard widgets and mirrors them
|
||||
in one compact DOM card — numbers → scrub, ≤ 4 short choices → segmented
|
||||
pill (else a select), booleans → an off | on pill as wide as the other
|
||||
controls (never a small switch inside a card), strings → text field,
|
||||
multiline → `kind: "textarea"` (`grow: true` takes the node's spare
|
||||
height), hex colors → swatch. Rows can depend on other values (`when`)
|
||||
and fold behind a disclosure (`group`). The widgets underneath stay the
|
||||
single source of truth (save/load, undo, API, links).
|
||||
- **One linkable widget per row.** The frontend (≥ 1.10.4, "Widget Input
|
||||
Socket" RFC #9) gives every widget an input socket drawn at the widget's
|
||||
own row, only while a link is dragged, hovered or connected; "convert to
|
||||
input" no longer exists. The card lends each hidden widget its row's
|
||||
position, so two widgets on one row would stack two sockets on one pixel
|
||||
and nobody could aim. A `pair` row is therefore only allowed with
|
||||
`top: true`, which lifts its sockets into the node's slot column under
|
||||
the real inputs (Image Resize width/height); everything else is one
|
||||
widget per row. A value that is meant to be wired rather than typed is a
|
||||
backend `forceInput: True` socket (Math Expression `a`/`b`/`c`), and a
|
||||
multi-type string such as `"FLOAT,INT"` accepts either kind of link.
|
||||
- Preview-carrying nodes (Select Frame, Mask Refine, Mask by Name, LaMa
|
||||
Inpaint, Save Image) share
|
||||
`js/input_preview/`: a thin bar (node tools left, a small `preview`
|
||||
switch right) above the picture, the picture gone and the node shorter
|
||||
when the switch is off, backed by an optional `preview` BOOLEAN input
|
||||
that also skips the temp file. A new node with a result picture reuses
|
||||
it rather than growing its own.
|
||||
- A DOM panel that shows a stage/preview claims the node's free height via
|
||||
`fillNodeHeight` from `js/shared/panel_layout.mjs` — never a hand-rolled
|
||||
`computeSize`, which pins the panel and leaves dead space when the node is
|
||||
dragged taller. `tests/panel_guards.test.mjs` enforces this pack-wide: a
|
||||
new panel entry must be added to its `mustGrow` set (or `fixedByDesign`
|
||||
for genuinely constant-height rows), so the choice is always explicit.
|
||||
A `fixedByDesign` card also calls `pinVuePanelHeight`: its own
|
||||
`computeSize` only pins it in the classic renderer, and Nodes 2.0 would
|
||||
stretch it with the node and squeeze a picture under it. Run Timer does
|
||||
not: its readout fills the node on purpose.
|
||||
- **A picture or clip in a stage sits out of flow.** Nodes 2.0 sizes a node
|
||||
by its content, so an in-flow portrait clip drawn at full width held Load
|
||||
Video at 965 px where classic goes to 584 px. Position the media
|
||||
`absolute` in its stage, and the stage takes its size from the node
|
||||
alone. A picture is centred at its own size (`js/input_preview/`); a
|
||||
player fills the stage so its controls stay along the bottom edge
|
||||
(`js/shared/video_ui.mjs`). Text that is fitted to its box follows the
|
||||
same rule: the Callout's text is `absolute` in its card
|
||||
(`js/callout/index.js`), or the text sizes the card it is fitted to.
|
||||
`tests/panel_guards.test.mjs` holds all three.
|
||||
- **A panel's declared minimum width is its node's real floor.** Pass
|
||||
`exactMinWidth: true` to `fillNodeHeight`; a constant-height card that
|
||||
keeps its own `computeSize` calls `holdNodeMinWidth` instead. Left alone,
|
||||
the frontend adds 104 px to a growing panel's number and ignores a pinned
|
||||
card's number altogether (the node falls to its 210 px default), so a
|
||||
declared 320 meant 424 for one and 210 for the other. Prove each face on
|
||||
a real canvas at that width in both renderers; a panel that clips there
|
||||
gets a larger minimum, not a broken face. Nodes 2.0 never goes under
|
||||
225 px whatever a panel declares.
|
||||
- **A growing panel's declared minimum height holds in Nodes 2.0 too.**
|
||||
Nodes 2.0 lays a node out by its content, not by the floor a widget
|
||||
declares, so a panel whose content has no height of its own was dragged
|
||||
flat there. `fillNodeHeight` also writes the floor to the panel's
|
||||
element as a CSS `min-height`, less `WIDGET_FRAME`, while the panel sits
|
||||
inside a Nodes 2.0 node. So declare `minHeight` as what the element needs
|
||||
plus `WIDGET_FRAME`, and never assign a growing panel's
|
||||
`computeLayoutSize` by hand. Prove the floor with a real corner drag up
|
||||
in both renderers.
|
||||
- Frontend settings use `AusBoss.<Area>.<Name>` ids with
|
||||
`category: ["🆎 AusBoss", "<Area>", "<Leaf>"]` and a distinct leaf per
|
||||
setting. Node color schemes live in `js/shared/appearance.mjs`.
|
||||
|
||||
## Adding a node
|
||||
|
||||
Follow `docs/adding_a_node.md`. Short version: create `nodes/node_<name>.py`
|
||||
modelled on a small existing node such as `nodes/node_image_size.py`, add
|
||||
`"node_<name>"` to `NODE_MODULES` in `__init__.py` and the key to
|
||||
`PUBLIC_NODE_IDS` in `scripts/validate_nodes.py`, give it a help page at
|
||||
`js/docs/<KEY>.md`, optionally add `js/<name>/index.js`, then validate.
|
||||
|
||||
## Validation
|
||||
|
||||
Run the offline checks before a pull request:
|
||||
|
||||
```bash
|
||||
python scripts/validate_nodes.py
|
||||
python scripts/release_preflight.py
|
||||
python scripts/run_python_tests.py # with ComfyUI's Python
|
||||
node --test tests/*.test.mjs
|
||||
```
|
||||
|
||||
Then restart ComfyUI fully (a changed `INPUT_TYPES` is only served after a
|
||||
restart), watch the AusBoss banner for failed modules, confirm the node
|
||||
appears in `GET http://127.0.0.1:8188/object_info`, queue a tiny API graph,
|
||||
and load its example workflow. After JS changes, hard-refresh the browser
|
||||
tab (Ctrl+Shift+R) — the frontend caches `.mjs` modules aggressively.
|
||||
|
||||
Frontend work is proven on a real canvas, not by reading code: the
|
||||
headless-Chrome harness in `scripts/dev/` (recipe, gotchas and the
|
||||
screenshot convention in `docs/live_testing.md`) creates nodes, drives real
|
||||
mouse drags, and screenshots the result. A link-drop test that only checks
|
||||
which input got the link is not enough — look at the picture and ask whether
|
||||
a person could have aimed there.
|
||||
|
||||
A ComfyUI update can break a node without a line of the pack changing. So
|
||||
the pack is run against the newest ComfyUI every night
|
||||
(`.github/workflows/comfyui_compat.yml`): its newest release and its
|
||||
development head, on the CPU, with no model files. Three checks, which also
|
||||
run by hand against any ComfyUI:
|
||||
|
||||
```bash
|
||||
AUSBOSS_COMFY_ROOT=<ComfyUI> python tests/test_comfy_core_contract.py
|
||||
python scripts/compat_boot.py --url http://127.0.0.1:8188
|
||||
node scripts/dev/face_smoke.mjs <chrome port> # and again with --vue
|
||||
```
|
||||
|
||||
- `test_comfy_core_contract.py` reads the pack's own source for everything
|
||||
it takes from ComfyUI and looks each thing up in the real one. It finds
|
||||
imports by itself. A call to one of ComfyUI's own nodes by name
|
||||
(`SAM3_Detect`), or an internal read with a fallback, goes in the tables at
|
||||
the top of that file; the test fails on a node call that is not listed.
|
||||
- `compat_boot.py` asks a running ComfyUI which nodes it offers: every public
|
||||
node of the pack, and every node and required input the examples use.
|
||||
- `face_smoke.mjs` puts every node on a graph and fails when a face does not
|
||||
come up or something throws.
|
||||
|
||||
A failure on the release opens an issue labelled `comfyui-update`. What these
|
||||
cannot see is anything that needs a model: run the real thing on a GPU
|
||||
before a release that follows a ComfyUI update.
|
||||
|
||||
## Releasing
|
||||
|
||||
A new `version` in `pyproject.toml` that lands on main publishes to the Comfy
|
||||
Registry through the publish workflow (`.github/workflows/publish_action.yml`).
|
||||
Contributors never change `version`.
|
||||
|
||||
The Registry shows notes with each version. They are that version's section
|
||||
of `CHANGELOG.md`, one line per entry: its bold opening, and for a new node
|
||||
the sentence that says what it does (`scripts/changelog_notes.py`). So open
|
||||
every entry with a bold line that makes sense on its own.
|
||||
|
||||
## Example workflows
|
||||
|
||||
Examples are what most people run first, so each one must work for a
|
||||
stranger with only the files its Workflow Note lists.
|
||||
|
||||
- Every model loader selects the official file name, the basename of its
|
||||
download URL, carries that file in `properties.models`
|
||||
(`name`, `url`, `directory`), and the Note's model row names the same
|
||||
file. People who keep models in subfolders pick their copy.
|
||||
- Media loaders (Load Image, Load Image + Pad, Load Video, Image Crop +
|
||||
Rotate + Pad and the video nodes) are saved blank. A file name is one the
|
||||
stranger doesn't have, and ComfyUI flags that node red when the workflow
|
||||
loads. The Workflow Note tells people to load their own picture; the
|
||||
sample files stay in `example_workflows/inputs/` for anyone who wants to
|
||||
try one.
|
||||
- Save nodes use a filename prefix without a folder. Seeds are fixed.
|
||||
- Numbered groups hold every node, nothing overlaps (title bars included),
|
||||
the saved zoom is at least 0.6 so widget text draws, the workflow `id` is
|
||||
a real uuid4, and the `.jpg` beside the `.json` shows a real output.
|
||||
- The frontend saves widget values twice, by position and by name
|
||||
(`widgets_values_named`), and can restore by name; both copies must agree.
|
||||
- `scripts/workflow_contract.py` checks links, groups, overlaps, the note,
|
||||
the id, the zoom, the named copies, the download info and the save
|
||||
prefixes. Whether the note tells the truth about the graph is review.
|
||||
- Text-to-image examples have no source to describe. Edit and inpaint
|
||||
examples keep an explicit change instruction: a description of the old
|
||||
scene is not an edit. MiniMax H3 and Klein caption their sources with
|
||||
Qwen3-VL 8B because their own text encoders returned only punctuation
|
||||
when asked to describe an image.
|
||||
- **Using the nodes in a workflow?** Read
|
||||
[js/docs/agents/README.md](js/docs/agents/README.md): which node does which
|
||||
job, where each node's help page is, and the example workflows. That folder
|
||||
ships with the pack, so it is also in a ComfyUI install.
|
||||
- **Changing the pack itself?** Read [CONTRIBUTING.md](CONTRIBUTING.md) in full
|
||||
before the first edit. It holds the layout, the rules every node follows and
|
||||
the checks to run. A new node follows
|
||||
[docs/adding_a_node.md](docs/adding_a_node.md).
|
||||
|
||||
@@ -16,7 +16,7 @@ issue.
|
||||
|
||||
## Pull requests
|
||||
|
||||
- The contributor guide is [AGENTS.md](AGENTS.md), and a new public node
|
||||
- Read the contributor guide below first, and a new public node
|
||||
follows [docs/adding_a_node.md](docs/adding_a_node.md). A new node is a
|
||||
conversation before it is a pull request.
|
||||
- Mapping keys, input names and order, and output order are a permanent API:
|
||||
@@ -41,3 +41,368 @@ issue.
|
||||
harness and what to screenshot.
|
||||
- A fix PR says what was wrong, adds a test that fails before the fix and
|
||||
passes after it, and shows before/after results.
|
||||
|
||||
## Contributor guide
|
||||
|
||||
How the repo is laid out, the conventions every node follows, and the checks
|
||||
to run. A suite of polished ComfyUI custom nodes by ausboss. Public nodes must
|
||||
solve a repeated workflow need, keep a compact graph footprint, and pass
|
||||
backend plus browser acceptance before release.
|
||||
|
||||
### READ FIRST: write for the people who use the nodes
|
||||
|
||||
Everything a user reads starts with the plainest version. That covers node
|
||||
descriptions, tooltips, the `?` help pages (`js/docs/*.md`), the README,
|
||||
example workflow notes, report and error text, and the CHANGELOG. Get more
|
||||
technical later in the text, or in its own section.
|
||||
|
||||
- Open with what it does and when to use it, in everyday words and short
|
||||
sentences. Someone new to ComfyUI should get it on the first read.
|
||||
- A tooltip is one or two short sentences: what this is, and what to pick.
|
||||
- Measurements, test results, edge cases and how it works go further down,
|
||||
under a heading such as "Technical details".
|
||||
- Keep jargon out of the opening (resample, warp, frame, affine,
|
||||
estimator, canvas space). If a term is needed, say what it means the
|
||||
first time.
|
||||
- Put a number up top only when it helps someone decide what to do.
|
||||
|
||||
If a sentence needs a second read, rewrite it.
|
||||
|
||||
### Which nodes ship
|
||||
|
||||
A node ships only when its mapping key is listed in `PUBLIC_NODE_IDS` in
|
||||
`scripts/validate_nodes.py`; the validator fails on any registered key that
|
||||
is not listed there.
|
||||
|
||||
### Hard rules
|
||||
|
||||
- Never modify `LICENSE`.
|
||||
- Never bump `version` in `pyproject.toml` — a version bump that lands on
|
||||
main **publishes to the Comfy Registry automatically** (see Releasing).
|
||||
- Keep diffs minimal: touch only the lines the task needs.
|
||||
|
||||
### Third-party independence
|
||||
|
||||
- Never copy third-party code, assets, fonts, icons, CSS, or documentation.
|
||||
- Review ecosystem overlap before accepting a public node. Generic overlap is
|
||||
fine, but implementation, naming, interaction design, and documentation must
|
||||
be this repository's own work.
|
||||
|
||||
### Architecture
|
||||
|
||||
```text
|
||||
__init__.py # NODE_MODULES list → importlib merge of all mappings.
|
||||
# Fail-soft: a broken module logs and is skipped, the rest load.
|
||||
nodes/
|
||||
node_<name>.py # exactly one node (or one tight family) per file;
|
||||
# exports NODE_CLASS_MAPPINGS + NODE_DISPLAY_NAME_MAPPINGS
|
||||
_<topic>_helpers.py # shared backend logic, underscore prefix = not a node
|
||||
js/
|
||||
<name>/index.js # frontend entry per node or pack-wide feature, e.g.
|
||||
# appearance/ (.js files auto-load)
|
||||
shared/*.mjs # import-only shared modules (.mjs files do NOT auto-load)
|
||||
docs/ # developer docs
|
||||
scripts/ # offline checks in stdlib Python. validate_nodes.py is
|
||||
# the entry point; registry_contract.py holds the rules
|
||||
# that keep nodes visible to registry scanners;
|
||||
# registry_status.py reads the Registry API; dev/ is the
|
||||
# Node.js canvas harness (docs/live_testing.md).
|
||||
example_workflows/ # example workflows (regular workflow JSON, not API JSON)
|
||||
```
|
||||
|
||||
### Conventions
|
||||
|
||||
- Public mapping keys use `AUSBOSS_NODES_<Purpose>`. The mapping key is the
|
||||
workflow-compatibility contract and must never be renamed after release.
|
||||
- Inputs and outputs only grow after a release: append an input as
|
||||
optional, append an output, and never rename, reorder, remove or newly
|
||||
require one. Saved workflows keep widget values by position and links by
|
||||
slot, and an API prompt must carry every required input.
|
||||
`tests/test_node_api.py` holds the pack to `tests/fixtures/node_api.json`;
|
||||
refresh that snapshot with the test's `--update` after a compatible change
|
||||
or a new node.
|
||||
- Appending an input to a node with a card or panel takes one more step.
|
||||
Workflows saved by earlier releases end that node's values with an empty
|
||||
value for each card and panel, and values come back by position, so the
|
||||
new input opens holding that empty value. Give a widget input a
|
||||
`resetUnknown` fallback in its card (`js/widget_cards/index.js`), or a
|
||||
`RESET_UNKNOWN` beside `NODE_CLASS` in the node's own `js/<name>/index.js`
|
||||
if it has no card (as LoRA Loader does). The fallback equals the node's
|
||||
default, which is what an API prompt without the input runs with. Then
|
||||
list the input in `tests/saved_widget_values.test.mjs`. Cards and
|
||||
panels themselves are never saved: set `widget.serialize = false` right
|
||||
after `addDOMWidget` (`options.serialize` only keeps a widget out of the
|
||||
prompt).
|
||||
- Write those keys as **string literals** inside `NODE_CLASS_MAPPINGS` and
|
||||
`NODE_DISPLAY_NAME_MAPPINGS` — never a `NODE_ID` variable. Registry scanners
|
||||
(ComfyUI-Manager) AST-parse the source without importing it, so a variable
|
||||
key makes every node invisible and "install missing custom nodes" stops
|
||||
offering the pack. `scripts/validate_nodes.py` enforces this.
|
||||
- Assign each mapping **once**, at module level, to a non-empty dict literal,
|
||||
and never mention the name again — no `update()`, no `del`, no
|
||||
`alias = NODE_CLASS_MAPPINGS`. A scanner reads that one literal and stops,
|
||||
so anything done to the mapping afterwards is invisible to it. Both
|
||||
mappings must carry exactly the same keys.
|
||||
- Display name: `<Name> 🆎` — the emoji is the pack signature. Typing
|
||||
"ausboss" still surfaces every node through the `🆎 AusBoss/<Group>`
|
||||
category, the `AUSBOSS_NODES_` id prefix, and the "ausboss" entry every
|
||||
node keeps in `SEARCH_ALIASES`.
|
||||
- Category: `🆎 AusBoss/<Group>`. The emoji is safe here — categories reach
|
||||
the frontend as JSON and are never printed to the console at import time.
|
||||
- Every node gets `DESCRIPTION`, input `tooltip`s, and `OUTPUT_TOOLTIPS`.
|
||||
- Words a node face draws itself (card labels, buttons, choices, tooltips)
|
||||
are translated for a Chinese ComfyUI by `js/i18n/index.js`: add the English
|
||||
text and its Chinese to `js/shared/i18n_zh.mjs`, or to `STAYS_ENGLISH` there
|
||||
when it should not change. Text with no entry stays English, and a widget's
|
||||
name and value are never translated. Never read a label back from the DOM
|
||||
to decide something; keep that in state (the translator changes the text).
|
||||
`tests/i18n.test.mjs` fails on a card word with no entry.
|
||||
- IMAGE tensors are BHWC float batches; MASK is BHW. Return tuples always,
|
||||
even for one output: `(value,)`.
|
||||
- Console output at import time must stay ASCII — ComfyUI on Windows often
|
||||
runs a cp1252 console, and a UnicodeEncodeError there kills the whole pack.
|
||||
- Widget values and route parameters are attacker-controlled: ComfyUI's
|
||||
`/prompt` and the pack's routes need no login. Media reads and writes stay
|
||||
inside ComfyUI's input, output and temp folders - no opt-in switches, no
|
||||
"any folder" settings, no folder pickers. A file is picked from a list and
|
||||
named below one of those folders the way ComfyUI names it
|
||||
(`clip.mp4 [output]`); no input opens a whole path as given.
|
||||
A route answers with data it made (JSON, a small picture), never a file by
|
||||
its path (`web.FileResponse`), and its error text goes through
|
||||
`safe_route_error` (`nodes/_route_errors.py`). Besides those the pack only reads
|
||||
its registered model folders (the one write there is LoRA Loader's Civitai
|
||||
button: a `.civitai.info` file and a `.preview.jpg` picture, saved beside a
|
||||
LoRA, never replacing a picture) and keeps its own
|
||||
settings files in ComfyUI's user folder (`user/ausboss/`). Nothing is handed to a
|
||||
subprocess. The Registry bans versions for exactly this.
|
||||
- The pack's server code makes no network requests: no HTTP or socket client
|
||||
in shipped Python (`release_preflight.py` fails on one). The one outbound
|
||||
call is LoRA Loader's click-only Civitai lookup, made by the browser to a
|
||||
fixed civitai.com address with a plain SHA256, plus the LoRA's picture
|
||||
from `image.civitai.com` on the same click (`js/lora_loader/index.js`,
|
||||
`js/shared/civitai_lookup.mjs`). `release_preflight.py` allows a raw
|
||||
`fetch(` only there and in `js/cache_guard`, which only talks to the pack's
|
||||
own server. Graph links are made with
|
||||
`linkSlots` from `js/shared/graph_links.mjs`, never the index-based
|
||||
`node.connect(...)`, which registry scans read as a network socket.
|
||||
SECURITY.md states the model for users.
|
||||
- No new pip dependencies without an explicit decision; if truly optional,
|
||||
use `[project.optional-dependencies]` and fail soft at runtime.
|
||||
- Frontend files import each other only with plain string literals
|
||||
(`from "../shared/x.mjs"`, `import("../shared/x.mjs")`). The server adds a
|
||||
version tag to those paths (`nodes/_frontend_cache.py`) so an update never
|
||||
meets old copies from the browser's cache. A path built in code
|
||||
(`new URL(...)`, `"../shared/" + name`) escapes the tag and loads a second,
|
||||
stale copy; `tests/test_frontend_cache.py` fails on one.
|
||||
- Frontend JS never assigns prototype callbacks directly — use
|
||||
`chainCallback` from `js/shared/index.mjs`, or `chainHandler` where the
|
||||
return value matters (a truthy `onMouseDown` result is what stops a node
|
||||
drag). Messages to the user go through `showToast`, never `alert()`.
|
||||
- The mouse wheel over a node zooms the graph, on every part of its face.
|
||||
`js/canvas_passthrough/` hands the wheel on from the pack's panels, and
|
||||
keeps it only for a box that can still scroll, typed in or not,
|
||||
so a panel adds no wheel listener of its own
|
||||
(`tests/canvas_passthrough.test.mjs` lists the few that exist). After a
|
||||
change to a node face, `scripts/dev/wheel_sweep.mjs` turns the wheel at
|
||||
every point of every node and must find no dead spot, in both renderers.
|
||||
- For compact panel actions and preview switches, use `compactAction` and
|
||||
`panelSwitch` from `js/shared/panel_controls.mjs`. That module owns their
|
||||
appearance, section caption styles, and common file and save labels. A
|
||||
node styles its layout locally; leave the shared control's face to the
|
||||
component. Its selectors only match explicitly named AusBoss controls.
|
||||
- Every INT and FLOAT a public node exposes reaches the user as a scrub
|
||||
control, Adobe-style: drag the value to scrub, click to type, chevron
|
||||
arrows step, Shift is always the fine step. Use `makeScrubInput` from
|
||||
`js/shared/scrub_input.mjs` — never a bare `<input type=number>`, and
|
||||
never a classic canvas number widget on a finished node face. Units
|
||||
(`px`, `MP`, `×`) ride inside the box in a fixed-width slot that every
|
||||
single-field row reserves, so the numbers down a card share one centre
|
||||
line. Known, deliberate exception: the Seed card's seed (typed).
|
||||
- **Node faces are widget cards.** A node whose face would be classic
|
||||
LiteGraph widgets (full-width rows with an arrow at each end) gets an
|
||||
entry in `js/widget_cards/index.js` instead: `mountWidgetCard` from
|
||||
`js/shared/widget_card.mjs` hides the standard widgets and mirrors them
|
||||
in one compact DOM card — numbers → scrub, ≤ 4 short choices → segmented
|
||||
pill (else a select), booleans → an off | on pill as wide as the other
|
||||
controls (never a small switch inside a card), strings → text field,
|
||||
multiline → `kind: "textarea"` (`grow: true` takes the node's spare
|
||||
height), hex colors → swatch. Rows can depend on other values (`when`)
|
||||
and fold behind a disclosure (`group`). The widgets underneath stay the
|
||||
single source of truth (save/load, undo, API, links).
|
||||
- **One linkable widget per row.** The frontend (≥ 1.10.4, "Widget Input
|
||||
Socket" RFC #9) gives every widget an input socket drawn at the widget's
|
||||
own row, only while a link is dragged, hovered or connected; "convert to
|
||||
input" no longer exists. The card lends each hidden widget its row's
|
||||
position, so two widgets on one row would stack two sockets on one pixel
|
||||
and nobody could aim. A `pair` row is therefore only allowed with
|
||||
`top: true`, which lifts its sockets into the node's slot column under
|
||||
the real inputs (Image Resize width/height); everything else is one
|
||||
widget per row. A value that is meant to be wired rather than typed is a
|
||||
backend `forceInput: True` socket (Math Expression `a`/`b`/`c`), and a
|
||||
multi-type string such as `"FLOAT,INT"` accepts either kind of link.
|
||||
- **App mode** is ComfyUI's form view of a workflow (fields and a Run
|
||||
button). A file list from the input folder declares its upload flag
|
||||
(`image_upload`, `video_upload`, `audio_upload`): the form builds the
|
||||
field's Upload button from it, and without it the field is a bare list.
|
||||
`tests/test_video_upload_flag.py` holds the video lists to it. A card's
|
||||
hidden widgets reach the form through `js/app_mode/`, so a card needs
|
||||
nothing of its own for App mode.
|
||||
- Preview-carrying nodes (Select Frame, Mask Refine, Mask by Name, LaMa
|
||||
Inpaint, Save Image) share
|
||||
`js/input_preview/`: a thin bar (node tools left, a small `preview`
|
||||
switch right) above the picture, the picture gone and the node shorter
|
||||
when the switch is off, backed by an optional `preview` BOOLEAN input
|
||||
that also skips the temp file. A new node with a result picture reuses
|
||||
it rather than growing its own.
|
||||
- A DOM panel that shows a stage/preview claims the node's free height via
|
||||
`fillNodeHeight` from `js/shared/panel_layout.mjs` — never a hand-rolled
|
||||
`computeSize`, which pins the panel and leaves dead space when the node is
|
||||
dragged taller. `tests/panel_guards.test.mjs` enforces this pack-wide: a
|
||||
new panel entry must be added to its `mustGrow` set (or `fixedByDesign`
|
||||
for genuinely constant-height rows), so the choice is always explicit.
|
||||
A `fixedByDesign` card also calls `pinVuePanelHeight`: its own
|
||||
`computeSize` only pins it in the classic renderer, and Nodes 2.0 would
|
||||
stretch it with the node and squeeze a picture under it. Run Timer does
|
||||
not: its readout fills the node on purpose.
|
||||
- **A picture or clip in a stage sits out of flow.** Nodes 2.0 sizes a node
|
||||
by its content, so an in-flow portrait clip drawn at full width held Load
|
||||
Video at 965 px where classic goes to 584 px. Position the media
|
||||
`absolute` in its stage, and the stage takes its size from the node
|
||||
alone. A picture is centred at its own size (`js/input_preview/`); a
|
||||
player fills the stage so its controls stay along the bottom edge
|
||||
(`js/shared/video_ui.mjs`). Text that is fitted to its box follows the
|
||||
same rule: the Callout's text is `absolute` in its card
|
||||
(`js/callout/index.js`), or the text sizes the card it is fitted to.
|
||||
`tests/panel_guards.test.mjs` holds all three.
|
||||
- **A panel's declared minimum width is its node's real floor.** Pass
|
||||
`exactMinWidth: true` to `fillNodeHeight`; a constant-height card that
|
||||
keeps its own `computeSize` calls `holdNodeMinWidth` instead. Left alone,
|
||||
the frontend adds 104 px to a growing panel's number and ignores a pinned
|
||||
card's number altogether (the node falls to its 210 px default), so a
|
||||
declared 320 meant 424 for one and 210 for the other. Prove each face on
|
||||
a real canvas at that width in both renderers; a panel that clips there
|
||||
gets a larger minimum, not a broken face. Nodes 2.0 never goes under
|
||||
225 px whatever a panel declares.
|
||||
- **A growing panel's declared minimum height holds in Nodes 2.0 too.**
|
||||
Nodes 2.0 lays a node out by its content, not by the floor a widget
|
||||
declares, so a panel whose content has no height of its own was dragged
|
||||
flat there. `fillNodeHeight` also writes the floor to the panel's
|
||||
element as a CSS `min-height`, less `WIDGET_FRAME`, while the panel sits
|
||||
inside a Nodes 2.0 node. So declare `minHeight` as what the element needs
|
||||
plus `WIDGET_FRAME`, and never assign a growing panel's
|
||||
`computeLayoutSize` by hand. Prove the floor with a real corner drag up
|
||||
in both renderers.
|
||||
- Frontend settings use `AusBoss.<Area>.<Name>` ids with
|
||||
`category: ["🆎 AusBoss", "<Area>", "<Leaf>"]` and a distinct leaf per
|
||||
setting. Node color schemes live in `js/shared/appearance.mjs`.
|
||||
|
||||
### Adding a node
|
||||
|
||||
Follow `docs/adding_a_node.md`. Short version: create `nodes/node_<name>.py`
|
||||
modelled on a small existing node such as `nodes/node_image_size.py`, add
|
||||
`"node_<name>"` to `NODE_MODULES` in `__init__.py` and the key to
|
||||
`PUBLIC_NODE_IDS` in `scripts/validate_nodes.py`, give it a help page at
|
||||
`js/docs/<KEY>.md`, optionally add `js/<name>/index.js`, then validate.
|
||||
|
||||
### Validation
|
||||
|
||||
Run the offline checks before a pull request:
|
||||
|
||||
```bash
|
||||
python scripts/validate_nodes.py
|
||||
python scripts/release_preflight.py
|
||||
python scripts/run_python_tests.py # with ComfyUI's Python
|
||||
node --test tests/*.test.mjs
|
||||
```
|
||||
|
||||
Then restart ComfyUI fully (a changed `INPUT_TYPES` is only served after a
|
||||
restart), watch the AusBoss banner for failed modules, confirm the node
|
||||
appears in `GET http://127.0.0.1:8188/object_info`, queue a tiny API graph,
|
||||
and load its example workflow. After JS changes, hard-refresh the browser
|
||||
tab (Ctrl+Shift+R) — the frontend caches `.mjs` modules aggressively.
|
||||
|
||||
Frontend work is proven on a real canvas, not by reading code: the
|
||||
headless-Chrome harness in `scripts/dev/` (recipe, gotchas and the
|
||||
screenshot convention in `docs/live_testing.md`) creates nodes, drives real
|
||||
mouse drags, and screenshots the result. A link-drop test that only checks
|
||||
which input got the link is not enough — look at the picture and ask whether
|
||||
a person could have aimed there.
|
||||
|
||||
A ComfyUI update can break a node without a line of the pack changing. So
|
||||
the pack is run against the newest ComfyUI every night
|
||||
(`.github/workflows/comfyui_compat.yml`): its newest release and its
|
||||
development head, on the CPU, with no model files. Three checks, which also
|
||||
run by hand against any ComfyUI:
|
||||
|
||||
```bash
|
||||
AUSBOSS_COMFY_ROOT=<ComfyUI> python tests/test_comfy_core_contract.py
|
||||
python scripts/compat_boot.py --url http://127.0.0.1:8188
|
||||
node scripts/dev/face_smoke.mjs <chrome port> # and again with --vue, and --blocked-reads
|
||||
```
|
||||
|
||||
- `test_comfy_core_contract.py` reads the pack's own source for everything
|
||||
it takes from ComfyUI and looks each thing up in the real one. It finds
|
||||
imports by itself. A call to one of ComfyUI's own nodes by name
|
||||
(`SAM3_Detect`), or an internal read with a fallback, goes in the tables at
|
||||
the top of that file; the test fails on a node call that is not listed.
|
||||
- `compat_boot.py` asks a running ComfyUI which nodes it offers: every public
|
||||
node of the pack, and every node and required input the examples use.
|
||||
- `face_smoke.mjs` puts every node on a graph and fails when a face does not
|
||||
come up or something throws. With `--blocked-reads` it acts like a privacy
|
||||
browser that blanks pixel reads, and fails when a node that loads a
|
||||
picture then draws none.
|
||||
|
||||
A failure on the release opens an issue labelled `comfyui-update`. What these
|
||||
cannot see is anything that needs a model: run the real thing on a GPU
|
||||
before a release that follows a ComfyUI update.
|
||||
|
||||
### Releasing
|
||||
|
||||
A new `version` in `pyproject.toml` that lands on main publishes to the Comfy
|
||||
Registry through the publish workflow (`.github/workflows/publish_action.yml`).
|
||||
After a successful upload, the same workflow tags that commit and creates a
|
||||
GitHub Release with the full changelog section. The README badge links to the
|
||||
latest GitHub Release. If only that step fails, rerun the failed jobs to retry
|
||||
it without uploading the Registry version again. Existing releases are left
|
||||
unchanged on a rerun. Contributors never change `version`.
|
||||
|
||||
For an authorized release, update both `pyproject.toml` and
|
||||
`AUSBOSS_JS_VERSION`, date the changelog section, then run
|
||||
`python scripts/release_badge.py`. Preflight rejects a badge that does not
|
||||
match the pack version. Its SVG lives in the repository so the release
|
||||
number stays visible when an external badge service is unavailable.
|
||||
|
||||
The Registry shows notes with each version. They are that version's section
|
||||
of `CHANGELOG.md`, one line per entry: its bold opening, and for a new node
|
||||
the sentence that says what it does (`scripts/changelog_notes.py`). So open
|
||||
every entry with a bold line that makes sense on its own.
|
||||
|
||||
### Example workflows
|
||||
|
||||
Examples are what most people run first, so each one must work for a
|
||||
stranger with only the files its Workflow Note lists.
|
||||
|
||||
- Every model loader selects the official file name, the basename of its
|
||||
download URL, carries that file in `properties.models`
|
||||
(`name`, `url`, `directory`), and the Note's model row names the same
|
||||
file. People who keep models in subfolders pick their copy.
|
||||
- Media loaders (Load Image, Load Image + Pad, Load Video, Image Crop +
|
||||
Rotate + Pad and the video nodes) are saved blank. A file name is one the
|
||||
stranger doesn't have, and ComfyUI flags that node red when the workflow
|
||||
loads. The Workflow Note tells people to load their own picture; the
|
||||
sample files stay in `example_workflows/inputs/` for anyone who wants to
|
||||
try one.
|
||||
- Save nodes use a filename prefix without a folder. Seeds are fixed.
|
||||
- Numbered groups hold every node, nothing overlaps (title bars included),
|
||||
the saved zoom is at least 0.6 so widget text draws, the workflow `id` is
|
||||
a real uuid4, and the `.jpg` beside the `.json` shows a real output.
|
||||
- The frontend saves widget values twice, by position and by name
|
||||
(`widgets_values_named`), and can restore by name; both copies must agree.
|
||||
- `scripts/workflow_contract.py` checks links, groups, overlaps, the note,
|
||||
the id, the zoom, the named copies, the download info and the save
|
||||
prefixes. Whether the note tells the truth about the graph is review.
|
||||
- Text-to-image examples have no source to describe. Edit and inpaint
|
||||
examples keep an explicit change instruction: a description of the old
|
||||
scene is not an edit. MiniMax H3 and Klein caption their sources with
|
||||
Qwen3-VL 8B because their own text encoders returned only punctuation
|
||||
when asked to describe an image.
|
||||
|
||||
@@ -3,19 +3,34 @@
|
||||
<p>ComfyUI nodes for image and video work.</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License">
|
||||
<!-- Dynamic: shields.io reads the version out of pyproject.toml on main
|
||||
at view time, so this badge can never go stale. release_preflight.py
|
||||
checks it stays the dynamic kind. -->
|
||||
<img src="https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fausboss%2FComfyUI-AusBoss%2Fmain%2Fpyproject.toml&query=%24.project.version&label=release&color=00b4aa&style=flat-square" alt="Release">
|
||||
<!-- Generated by scripts/release_badge.py. Release preflight checks
|
||||
the badge against pyproject.toml so it cannot silently go stale. -->
|
||||
<a href="https://github.com/ausboss/ComfyUI-AusBoss/releases/latest"><img src="assets/readme/release.svg" alt="Latest release"></a>
|
||||
<a href="https://www.youtube.com/@ausbossdev"><img src="https://img.shields.io/badge/YouTube-%40ausbossdev-00b4aa?style=flat-square&logo=youtube&logoColor=white" alt="YouTube @ausbossdev"></a>
|
||||
<a href="https://discord.gg/RwVxY9Fuaj"><img src="https://img.shields.io/badge/Discord-AusBoss-00b4aa?style=flat-square&logo=discord&logoColor=white" alt="Discord: AusBoss"></a>
|
||||
<a href="https://huggingface.co/ausboss"><img src="https://img.shields.io/badge/Hugging%20Face-ausboss-00b4aa?style=flat-square&logo=huggingface&logoColor=white" alt="Hugging Face: ausboss"></a>
|
||||
<a href="https://x.com/Zanzibased"><img src="https://img.shields.io/badge/X-%40Zanzibased-00b4aa?style=flat-square&logo=x&logoColor=white" alt="X @Zanzibased"></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
I made these nodes for my own ComfyUI workflows, mostly because I wanted features I couldn't find in other packs. I use them myself, and I keep adding new ones.
|
||||
|
||||
Most of them are for image and video work. You can rotate, crop and pad a picture by dragging handles on the node, trim a clip on a timeline, and outpaint or inpaint with your original pixels put back. ComfyUI's core nodes already cover the basics, like seeds, sizes and prompts, so use these where they add something.
|
||||
Most of them are for image and video work. ComfyUI's core nodes already cover the basics, like seeds, sizes and prompts, so use these where they add something. A few of the things they do:
|
||||
|
||||
The **?** in a node's title bar opens a short card with its inputs and outputs, and every node has a longer help page in ComfyUI's node help panel. I post the workflows I make with them on [Civitai](https://civitai.com/user/AusBoss) and [X @Zanzibased](https://x.com/Zanzibased), and videos of them on [YouTube @ausbossdev](https://www.youtube.com/@ausbossdev).
|
||||
- **[Mask by Touch](#mask-by-touch):** click a thing on the picture and get its mask. Hover shows what a click would take, and **Fine edges** follows hair and fur.
|
||||
- **[Mask by Name](#mask-by-name):** type "the red jacket" and get its mask and a cut-out.
|
||||
- **[Image Crop + Rotate + Pad](#image-crop--rotate--pad):** turn, crop and pad a picture by dragging handles on the node, for outpainting.
|
||||
- **[Edit Lock](#edit-lock):** an edit changes what you asked for, and the rest of the picture stays exactly where it was. No mask needed.
|
||||
- **[Stitch Inpaint](#stitch-inpaint):** after an inpaint or outpaint, everything you didn't ask to change is your original pixels again.
|
||||
- **[Video Crop + Rotate + Pad → Clip](#video-crop--rotate--pad--clip):** trim a clip on a timeline, and pad or crop it to a new shape.
|
||||
- **[Tiled Upscale](#tiled-upscale):** upscale a picture in tiles to the megapixels you set.
|
||||
- **[Image Folder](#image-folder):** tick pictures in a folder and run the workflow on each one.
|
||||
- **[Layout Boxes](#layout-boxes):** draw boxes where things and words go in the picture, for MOSS-Image.
|
||||
- **[Image Compare A/B](#image-compare-ab):** a before-and-after slider, and a brush to mix the two.
|
||||
- **[LoRA Loader](#lora-loader):** a whole LoRA stack in one node, each row with its own switch and strength.
|
||||
- **[Workflow Switches](#workflow-switches):** turn parts of a workflow off and on from one small card.
|
||||
|
||||
The **?** in a classic node's title bar opens a short card with its inputs and outputs. In Nodes 2.0, right-click the node and choose **About this node**. Every node also has a longer help page in ComfyUI's node help panel. I post the workflows I make with them on [Civitai](https://civitai.com/user/AusBoss) and [X @Zanzibased](https://x.com/Zanzibased), and videos of them on [YouTube @ausbossdev](https://www.youtube.com/@ausbossdev). Can't open Civitai? All my workflows are on [my Discord](https://discord.gg/RwVxY9Fuaj) too. If a node saves you time, a star on the repo helps other people find it.
|
||||
|
||||
## Install
|
||||
|
||||
@@ -23,15 +38,27 @@ In **ComfyUI-Manager**, open the Custom Nodes Manager, search for **AusBoss** an
|
||||
|
||||
```bash
|
||||
cd ComfyUI/custom_nodes
|
||||
git clone https://github.com/ausboss/ComfyUI-AusBoss.git
|
||||
git clone https://github.com/ausboss/ComfyUI-AusBoss.git ausboss-nodes
|
||||
```
|
||||
|
||||
Restart ComfyUI and search the node library for **AusBoss**.
|
||||
|
||||
Clone into `ausboss-nodes`, the folder ComfyUI-Manager uses, so Manager sees the same copy and updates it instead of adding a second one. If you also have a `custom_nodes/ComfyUI-AusBoss` folder from an older clone, delete it: with two copies, an old one can keep loading after every update, and its newer nodes show as missing. ComfyUI shows a message naming the folder when this happens.
|
||||
|
||||
After an update, through Manager or `git pull`, restart ComfyUI and hard-refresh the browser with **Ctrl+Shift+R**. Otherwise the browser keeps the old JavaScript, and the pack warns you about it. Manager can install a version or two behind while the Comfy Registry reviews a new release. To get the newest one, pick it in Manager's version list, or update by hand: delete the pack's folder in `ComfyUI/custom_nodes` and clone the repository as shown above.
|
||||
|
||||
The pack uses the Pillow, NumPy, Torch and PyAV that come with ComfyUI. Each example lists the models it needs on its Workflow Note. LaMa Inpaint also needs [`big-lama.pt`](https://github.com/Sanster/models/releases/download/add_big_lama/big-lama.pt) in `ComfyUI/models/lama/`. The pack never downloads weights by itself.
|
||||
|
||||
### Using an AI agent
|
||||
|
||||
Your agent (Claude Code, Codex, Cursor or another one) can learn the video workflows: how to write the words for them, set them up, and run them on your computer.
|
||||
|
||||
```bash
|
||||
npx skills add ausboss/ComfyUI-AusBoss
|
||||
```
|
||||
|
||||
Or tell it: "Read https://ausboss-examples.vercel.app/skill.md and help me use these workflows." The skill is [skills/ausboss-workflows/SKILL.md](skills/ausboss-workflows/SKILL.md). For picking and wiring single nodes, point it at the [agent guide](js/docs/agents/README.md).
|
||||
|
||||
### Upgrading from 1.x
|
||||
|
||||
2.0 removed **LM Studio Chat** (use **Text** for a fixed prompt) and Align Image's `offset_x` and `offset_y` outputs. Math Expression's `a`, `b` and `c` are sockets now instead of typed boxes, so put constants in the expression itself. 1.2 removed **Drop Shadow**, **Pad Image** (use **Load Image + Pad**) and **Frame Chooser**. Save Image writes only inside ComfyUI's output folder. The [changelog](CHANGELOG.md) has the details.
|
||||
@@ -42,10 +69,10 @@ The pack uses the Pillow, NumPy, Torch and PyAV that come with ComfyUI. Each exa
|
||||
| [Video nodes](#video-nodes) | Load and trim, pick a frame, transform a clip, change the frame rate, save |
|
||||
| [Mask and inpaint nodes](#mask-and-inpaint-nodes) | Mask a thing by clicking it or typing its name, refine masks, remove objects with LaMa, crop around a mask and stitch the result back |
|
||||
| [Models and conditioning](#models-and-conditioning) | LoRA stack, Krea 2 prompts and references |
|
||||
| [Workflow utilities](#workflow-utilities) | Canvas size, seed, batches, math, text, memory, notes, callouts, switches, timer |
|
||||
| [Workflow utilities](#workflow-utilities) | Canvas size, seed, batches, math, text, memory, notes, callouts, switches, timer, step preview |
|
||||
| [Example workflows](#example-workflows) | Ready-made workflows, each with a setup card |
|
||||
| [For workflow creators](#for-workflow-creators) | Setup cards, before and after, repeatable seeds, measured run times |
|
||||
| [Pack-wide tools](#pack-wide-tools) | Help cards, node colors, recreate and replace, run status, completion sound |
|
||||
| [Pack-wide tools](#pack-wide-tools) | Help cards, node colors, snap into line, recreate and replace, run status, completion sound |
|
||||
|
||||
## Image nodes
|
||||
|
||||
@@ -53,7 +80,7 @@ The pack uses the Pillow, NumPy, Torch and PyAV that come with ComfyUI. Each exa
|
||||
|
||||
Rotate, crop and pad a picture by dragging handles on the node. Cyan squares crop, orange diamonds pad, and the green handle rotates. It rotates first, then crops, then pads. The full-screen editor adds exact sizes, zoom and pan.
|
||||
|
||||
Tap a ratio under the preview to pad the picture to it, or to crop it with **Fit** set to crop. A lit ratio is the shape the canvas has right now: drag a handle to another shape and it goes dark, and the row says Custom. The padlock at the end of the row keeps the shape while you drag, and the button at the start turns the shape between portrait and landscape. **Reset crop** brings back the whole picture, and **Divisible by** makes the width and height divide evenly by a number such as 8, 16 or 32, for models that need it. Feather and output resizing are on the node and in the editor.
|
||||
Open **Crop, pad & resize** under the preview and tap a ratio to pad the picture to it, or to crop it with **Fit** set to crop. A lit ratio is the shape the canvas has right now: drag a handle to another shape and it goes dark, and the row says Custom. The padlock at the end of the row keeps the shape while you drag, and the button at the start turns the shape between portrait and landscape. **Reset crop** brings back the whole picture, and **Divisible by** makes the width and height divide evenly by a number such as 8, 16 or 32, for models that need it. Feather and output resizing are on the node and in the editor.
|
||||
|
||||
It returns the `image`, a `mask` of everything the model paints (padding, see-through parts of the source and the corners a rotation opens up), a `stitcher`, the untouched `original`, the output `width` and `height`, and a `prompt_image`. Wire the stitcher into **Stitch Inpaint** after the sampler to put your original back. See-through parts of a PNG, such as a cutout's missing background, are filled like the padding and painted; `prompt_image` and `original` show them as white. Give `prompt_image` to whatever writes your prompt, so it describes a real backdrop instead of the gray fill. **Load Image + Pad** has more fill choices and a separate reference output.
|
||||
|
||||
@@ -63,6 +90,12 @@ It returns the `image`, a `mask` of everything the model paints (padding, see-th
|
||||
|
||||
Krea 2 Rotate + Outpaint turns a photo, pads it and paints the new area in one pass. [Try the Krea 2 Rotate + Outpaint example →](example_workflows/Krea%202%20Rotate%20%2B%20Outpaint%20%28AusBoss%29.json)
|
||||
|
||||
### Load Image
|
||||
|
||||
Loads a picture and sets its size in one node. Pick a file, upload one, or step through the input folder with the arrows. **Size** can stay off, or bring the picture to a megapixel count, a longest side, a scale, a box it must fit inside, or a box it fills by cropping. It can also cut a piece or a shape such as 16:9 out of the picture without resizing, and **Keep** picks which part stays: the center, a side or a corner. **Round to** keeps the result on a multiple of 8, 16 or whatever the model wants. The node shows the picture going in and coming out, with both sizes, before you run, such as `912 × 1632 → 1144 × 2048`.
|
||||
|
||||
It returns the `image`, a `mask` of its see-through parts, the new `width` and `height`, the `filename` for a save prefix, and the file's `original_width` and `original_height`.
|
||||
|
||||
### Load Image + Pad
|
||||
|
||||
Makes a canvas for outpainting: drag the edges out to add room around a picture. The Source list shows the picture under the pointer. The new area can be a solid color, the average color of the nearest edge, the edge pixels smeared outward, a blurred copy of the picture, or a mirror of it. The card also has a seam feather, a canvas multiple and a megapixel budget, and **Exact padding** opens one control per side. A budget of 0 keeps the picture's size, and anything higher resizes the picture before padding. A picture wired into `source_image` is padded instead of the chosen file.
|
||||
@@ -73,7 +106,7 @@ The Klein 9B Outpaint example pads its picture with Load Image + Pad. [Open the
|
||||
|
||||
### Image Folder
|
||||
|
||||
Pick a folder, tick the pictures you want in a thumbnail gallery, and run the workflow on each one. **All in one run** does every picked picture with one press of Run. **One per run** loads one picture each run and steps to the next by itself, so a picture that fails only skips itself. It gives each picture's mask, its file name for saving the result under the same name, its number and how many there are.
|
||||
Pick a folder, tick the pictures you want in a thumbnail gallery, and run the workflow on each one. **All in one run** does every picked picture with one press of Run. **One per run** loads one picture each run and steps to the next by itself, so a picture that fails only skips itself. After the last picture it stops with a message, or starts over at the first and keeps going. It gives each picture's mask, its file name for saving the result under the same name, its number and how many there are.
|
||||
|
||||
**Browse** lists the folders inside ComfyUI's input or output folder. A folder from anywhere else on your computer is brought in: drop it on the node, or choose it in your file explorer, and its pictures are copied into the input folder. A really big folder asks first. The node reads nothing outside those two folders.
|
||||
|
||||
@@ -103,10 +136,26 @@ Rounds a picture's size to a multiple you choose, by resizing, cropping or paddi
|
||||
|
||||
Reads a picture's `width`, `height`, `longest_edge`, `shortest_edge` and batch `count` as whole numbers. Wire them into a resize, a latent, a frame count or Math Expression, so the rest of the graph follows the source's size. After a run the node shows each number beside its output.
|
||||
|
||||
### Image Toolbox
|
||||
|
||||
Small picture jobs in one node, picked from a list. **split sheet at gaps** cuts a row of pictures, such as a character sheet's views, into separate pictures, cutting at the gaps between them so no piece gets part of its neighbour. **cut a piece** cuts out one piece of the width and height you set, at the place you pick, and gives back the rest of the picture too.
|
||||
|
||||
### Color Match
|
||||
|
||||
Matches a picture's colors to a reference, with LAB, RGB, MKL or histogram transfer. Strength sets how much, and an optional mask (with invert) limits where. With `reference_mode` set to first frame, every frame of a batch matches the batch's first frame. That can cut down color drift in a clip, but it does not steady motion.
|
||||
|
||||
### Film Grain
|
||||
|
||||
Adds film grain to a picture or a video. The grain is strongest in the midtones and gentler in deep shadows and bright highlights, as on film. **Size** is the grain's size in pixels, **Roughness** mixes in finer grain that bunches up unevenly, and **Color** goes from black-and-white grain to colour film's. On a video the grain moves from frame to frame, or stays put with **Video grain** on *still*. An optional mask adds grain only where it is white, and the same seed always gives the same grain. **Auto** picks the grain for the picture's size, or copies the grain of a picture wired into `grain_from`. The preview shows the result.
|
||||
|
||||
### Cut Out
|
||||
|
||||
Turns a picture and a mask into a cut-out with a see-through background, ready to save as a PNG (Save Image keeps the transparency) or lay on a new background. Keep the white or the black part of the mask, grow or shrink it and soften its edge. **Clean edges** takes the old background's colour out of hair and soft edges, so the cut-out has no halo; fully kept pixels stay exactly as they were. It also returns the final mask, and works on video. The preview shows the cut-out on a checkerboard.
|
||||
|
||||
### Keep Detail
|
||||
|
||||
Puts the original picture's fine detail (skin, fabric, grain) back on an edited version that came out too smooth. Wire the edit and the original, which must line up (Realign to Source fixes an edit that drifted). The edit keeps its shapes, light and colour, and only detail smaller than **Detail size** comes from the original. **Light only** never shifts the edit's colours; **color + light** brings the detail's colour too. An optional mask limits where.
|
||||
|
||||
### Realign to Source (EXPERIMENTAL 🧪)
|
||||
|
||||
Lines an edited picture back up with the original. Qwen Image 2.1 often draws an edit, especially a style change, a little bigger or shifted: up to about 12% taller, by a different amount every seed. Wire in the edit and the picture it was made from. The node measures how far the edit moved and moves it back, at the original's size. It fixes the zoom and shift of the whole picture, not shapes the edit redrew in a new place, so the result lines up closely rather than pixel for pixel.
|
||||
@@ -123,9 +172,21 @@ The same watercolor edit without and with Realign to Source: 61 px off before, 0
|
||||
|
||||
Qwen drew this watercolor 5.6% taller, and Realign to Source lined it back up with the original.
|
||||
|
||||
### Edit Lock
|
||||
|
||||
Keeps every part of your picture that an edit did not change exactly where it was, with the colors it had. An edit model redraws the whole picture, so the parts you did not ask about often come back a little zoomed in, shifted or tinted, and the picture jumps when you flip between before and after. Put Edit Lock between the model and the sampler and give it the picture you are editing. It needs no mask: it sees what the edit changes while the picture is being made, and holds on to everything else.
|
||||
|
||||
When the edit changes the whole picture (a new style, new light), there is nothing to keep, so the node steps aside and the edit runs as usual. A soft effect over the whole picture, such as rain or falling snow, is let through as well: the node then only holds the picture in place. **Lock** (`lock`) set to `off` does nothing at all, `always` locks even a whole-picture edit, and an optional `mask` says where the edit may happen. **Tolerance** (`tolerance`) sets how big a change must be to count as part of the edit.
|
||||
|
||||
On MiniMax-H3-Image, 4 megapixel edits moved the picture by up to 14 px without the lock (measured at 1 megapixel) and by 0.2 px or less with it (0.08 px or less on 35 of the 36 locked runs), on 19 local edits at two seeds each. After five edits in a row on one picture the plain chain had drifted 1.65 px and turned visibly pink; the locked chain sat at 0.04 px with no tint.
|
||||
|
||||
### Edit Lock Restore
|
||||
|
||||
Puts your picture's own pixels back in every part the edit did not change. Edit Lock keeps those parts in place, but they still pass through the VAE, which softens fine detail a little. Add this right after the VAE Decode and wire in Edit Lock's `edit_lock` output. **Feather** (`feather`) sets how softly the original fades into the edit. It also returns `edit_mask`, white where the edit changed the picture, and a one-line `report` of how much was kept.
|
||||
|
||||
### Image Compare A/B
|
||||
|
||||
Compares two pictures with a slider, or flips between them whole. Nothing covers the picture, and its size shows underneath. The panel grows with the node, and image A passes through, so you can put it anywhere on an image wire. **Erase** mixes the two by hand: rub parts of one picture away with a brush so the other shows through, then save the mix as a PNG under a name you type, with a layered PSD for Photoshop or GIMP if you want it.
|
||||
Compares two pictures with a slider, or flips between them whole. Nothing covers the picture, and its size shows underneath. The panel grows with the node, and images A and B pass through, so you can put it anywhere on an image wire. **Erase** mixes the two by hand: rub parts of one picture away with a brush so the other shows through, then save the mix as a PNG under a name you type, with a layered PSD for Photoshop or GIMP if you want it.
|
||||
|
||||
### Save Image
|
||||
|
||||
@@ -133,6 +194,8 @@ Saves PNG, lossless WebP or lossless JPEG XL, with the workflow embedded if you
|
||||
|
||||
Link `filename` to keep a name from upstream, or `caption_text` to write a matching `.txt` next to each picture. The counter picks a name that isn't taken yet. Turn it off to reuse the same path on purpose. JPEG XL needs the optional `pillow-jxl-plugin` extra. The [help page](js/docs/AUSBOSS_NODES_SaveImage.md) has the full naming and compatibility notes.
|
||||
|
||||
Turn on **steps** to watch the picture form in the node while it is being made, with a **STOP** button for a run that is going wrong. It is off by default.
|
||||
|
||||
## Video nodes
|
||||
|
||||

|
||||
@@ -143,19 +206,25 @@ The example keeps the clip's audio when there is any. The outpaint LoRA needs a
|
||||
|
||||
### Load Video
|
||||
|
||||
Upload a video, or pick one from the Source list, which plays the clip under the pointer. Trim it with IN and OUT handles or typed timecodes. The player plays the part you kept and can loop it. Width and height resize while decoding, and setting only one keeps the shape. `every_nth` skips frames and lowers the reported fps so the timing stays right, and `max_frames` caps how many frames load.
|
||||
Upload a video, or pick one from the Source list, which plays the clip under the pointer. Set the part you want with Start, Duration and Ends at, in seconds or frames, or drag the handles under the player. The player plays the part you kept and can loop it. Width and height resize while decoding, and setting only one keeps the shape. `every_nth` skips frames and lowers the reported fps so the timing stays right, and the Duration caps how many frames load.
|
||||
|
||||
It returns the frames, audio, frame count, fps, width, height, duration and a core `VIDEO`. Only the part you kept is decoded, and it checks memory before a large load. When you save the frames, wire its fps into the save node.
|
||||
|
||||
### Load Audio
|
||||
|
||||
Upload a sound file, or pick one from the Source list, and the node shows it as a wave. Drag the two handles to keep only the part you want, or type a Start, a Duration or an Ends at. Press play to hear just that part. Set the Duration to the length the next step needs, such as a video's length.
|
||||
|
||||
It returns the `audio` you kept and its length in `seconds`. Only that part is decoded. [Help page](js/docs/AUSBOSS_NODES_LoadAudio.md).
|
||||
|
||||
### Video Crop + Rotate + Pad → Frame
|
||||
|
||||
Picks one frame from a video, then gives you the same rotate, crop and pad controls as the image node, plus an optional megapixel resize. Scrub to the frame with the playhead on the node; the editor adds frame-by-frame stepping and playback. It returns the transformed `image`, a `mask` of the added area, a `stitcher`, the chosen `original` frame, and the output `width` and `height`. For a whole clip, use the Clip version below.
|
||||
|
||||
### Video Crop + Rotate + Pad → Clip
|
||||
|
||||
Applies one rotate, crop and pad to every frame of a trimmed clip. It has the source picker, a timeline with a playhead and frame-accurate IN and OUT handles, frame skipping, a frame limit, the transform handles and output resizing. While you drag a trim handle, the node shows the exact first or last frame the run keeps. The bright part of the selection is what gets output.
|
||||
Applies one rotate, crop and pad to every frame of a trimmed clip. It has the source picker, a timeline with a playhead and frame-accurate start and end handles, Start, Duration and Ends at boxes, frame skipping, the transform handles and output resizing. While you drag a trim handle, the node shows the exact first or last frame the run keeps. The bright part of the selection is what gets output.
|
||||
|
||||
Fill, feather and the resize budget sit on the node face, and a new clip keeps them. That matters for video outpainting, because the black, hard-edged canvas the model needs survives a source swap. A fresh Clip node starts with that canvas, and the editor's **Reset transform** goes back to it. **Frames for** trims the end to the frame count the next video model takes: LTX (8n+1) or Wan (4n+1). Tap a ratio to pad the clip to it; a new clip is padded to the lit ratio too. The padlock keeps the shape while you drag a handle.
|
||||
Fill, feather and the resize budget are in **Crop, pad & resize** below the timeline, and a new clip keeps them. That matters for video outpainting, because the black, hard-edged canvas the model needs survives a source swap. A fresh Clip node starts with that canvas, and the editor's **Reset transform** goes back to it. **Frames for** trims the end to the frame count the next video model takes: LTX (8n+1) or Wan (4n+1). Tap a ratio to pad the clip to it; a new clip is padded to the lit ratio too. The padlock keeps the shape while you drag a handle.
|
||||
|
||||
It returns the frames, mask, audio, frame count, fps, size, duration, a `stitcher`, and the chosen `original` frames before the transform. **Inpaint & Stitch** in the editor sets the protected source area and previews the blend. After a video outpaint, wire the stitcher straight into **Stitch Inpaint**, with no Crop For Inpaint in between. It works in chunks to keep memory down.
|
||||
|
||||
@@ -171,15 +240,21 @@ Picks one frame from a batch, unchanged: `1` is the first, `-1` the last and `-2
|
||||
|
||||
### Frame Interpolate
|
||||
|
||||
Changes a clip's frame rate by making in-between frames. You set the source and target fps, so 24 to 30 works as well as doubling. The blend method crossfades frames, and optical flow uses RAFT weights you put in place yourself. At a hard cut it holds the frame instead of blending two unrelated shots. It works in chunks to keep memory down.
|
||||
Changes a clip's frame rate by making in-between frames. You set the source and target fps, so 24 to 30 works as well as doubling. The blend method crossfades frames, and optical flow uses RAFT weights you put in place yourself. At a hard cut it holds the frame instead of blending two shots together, even when both shots show the same place. It works in chunks to keep memory down.
|
||||
|
||||
It returns the new frames and their fps. It doesn't touch audio, so carry the source audio to Save Video separately. The [help page](js/docs/AUSBOSS_NODES_FrameInterpolate.md) covers the weights and timing.
|
||||
|
||||
### FlashVSR Upscale
|
||||
|
||||
Makes a video larger and sharper with the FlashVSR model. Set **Scale** from 1 to 4 and it returns every frame at the new size, with fine detail drawn back in. It reads the clip a few frames at a time, so a long clip needs no more graphics memory than a short one, and a result too large for the free memory is made in tiles.
|
||||
|
||||
It needs one model file in `ComfyUI/models/diffusion_models` and no other pack. The [help page](js/docs/AUSBOSS_NODES_FlashVSRUpscale.md) has the download link, the memory it needs and the speed. [Try the FlashVSR Video Upscale example →](example_workflows/FlashVSR%20Video%20Upscale%20%28AusBoss%29.json)
|
||||
|
||||
### Save Video
|
||||
|
||||
Saves a frame batch or a core `VIDEO` as MP4 (H.264 or H.265), WebM (VP9 or AV1), ProRes MOV, lossless FFV1 MKV, GIF or WebP. Which encoders you get depends on your FFmpeg and PyAV build, and H.264 and H.265 come in CPU and NVENC versions. The videos carry color tags, and optionally audio and the workflow.
|
||||
|
||||
**Ping-pong** plays forward and then back without repeating the turnaround frames. A wired `VIDEO` brings its own frame rate; otherwise wire fps from Load Video or Frame Interpolate. The player on the node shows the saved file. Drop a saved video back on the canvas to load the workflow inside it, for the formats that can hold one. The [help page](js/docs/AUSBOSS_NODES_SaveVideo.md) has the format and audio details.
|
||||
**Ping-pong** plays forward and then back without repeating the turnaround frames. A wired `VIDEO` brings its own frame rate; otherwise wire fps from Load Video or Frame Interpolate. The player on the node shows the saved file, and **Preview steps** shows the clip's first frame while it is being made, with a **STOP** button. Drop a saved video back on the canvas to load the workflow inside it, for the formats that can hold one. The [help page](js/docs/AUSBOSS_NODES_SaveVideo.md) has the format and audio details.
|
||||
|
||||
## Mask and inpaint nodes
|
||||
|
||||
@@ -199,6 +274,8 @@ The Mask by Name example finds a thing by its name and saves its cut-out and its
|
||||
|
||||
Click a thing on the picture and get its mask. No name to type and no MaskEditor: the picture is on the node. Move the pointer over it and the thing a click would take lights up, with its name beside the pointer: the jacket, not the whole person. Click to pick it, and click more things to add them. What is lit in teal is what the mask will be.
|
||||
|
||||

|
||||
|
||||
When a click could mean more than one thing, the node shows the pick with two arrows, like **‹ jacket · 1 of 3 ›**: an arrow swaps it for the next thing at that spot. A stroke across two things, like both shoes, takes both. Ctrl-click a thing to take it away again.
|
||||
|
||||
To fix the mask by hand, switch **Pick | Paint | Erase** (or press W, B or E, as in Photoshop). The brush has a size and a soft edge, set with **[** and **]** or by holding Alt and the right mouse button and dragging, and it shows under the pointer as it will paint. Hold **Ctrl** for the opposite: erase while you paint, paint while you erase.
|
||||
@@ -249,16 +326,22 @@ The toolbar has the stack toggle, saved templates, reconnect and settings. The t
|
||||
|
||||

|
||||
|
||||
Each LoRA gets an info card from the file's metadata, a `.civitai.info` file next to it, and words you save yourself. The card's **Fetch Civitai info** button looks the file up on Civitai (your browser asks civitai.com, only when you click) and saves the answer as that `.civitai.info` file. Files Civitai doesn't know, such as unpublished or hidden models, come back as not found. The trigger words you pick come out of the `triggers` output.
|
||||
Each LoRA gets an info card from the file's metadata, a `.civitai.info` file next to it, and words you save yourself. The card's **Fetch Civitai info** button looks the file up on Civitai (your browser asks civitai.com, only when you click) and saves the answer as that `.civitai.info` file. Files Civitai doesn't know, such as unpublished or hidden models, come back as not found. The trigger words you pick come out of the `triggers` output. The same click saves the LoRA's picture from Civitai next to the file, so hovering the LoRA shows it (PG-13 or milder unless you allow more in the gear menu; a picture you already have is never replaced).
|
||||
|
||||
In the **+ LoRA** list, tick several files to add them at once. Rows can be gathered into groups, like layer groups in an image editor: each group folds away, and has its own switch that turns all its LoRAs off while each one keeps its own setting. A Workflow Switch can turn a whole group on and off.
|
||||
|
||||
When a file has moved, the node finds it by name if only one file matches. A missing LoRA that is switched on stops the run by default. Turn off **Stop on missing LoRA** to warn and skip it instead. A LoRA that changes nothing in the model gets a warning with its file name.
|
||||
|
||||
Wire a [Strength Curve](#strength-curve) into the `curve` input and click the curve mark on a row, and that row's strength changes over the run: fade a style LoRA out so the last steps come out clean. It works with every model file, fp8 and int8 included.
|
||||
|
||||
### Krea 2 Encode
|
||||
|
||||
Krea 2's positive and negative prompts in one card. Connect a VAE and reference pictures, and it adds them as references too, resized for the model first. **VLM reference** sets whether the text encoder also looks at them. Leave the references empty for plain text to image. For an outpaint, connect the pad node's mask too: the model then sees the new area in your picture's own colour instead of gray, so it paints it rather than keeping a gray frame.
|
||||
|
||||
The prompt box takes several lines and a linked text. The [help page](js/docs/AUSBOSS_NODES_Krea2Encode.md) covers preparing references. With an outpaint LoRA, copy the wiring from the matching example.
|
||||
|
||||
Wire a [Strength Curve](#strength-curve) into `reference_curve` and the picture follows the references as strongly as the curve says at each step, from 1 (as today) to 0 (ignored): hold the layout early and let go late.
|
||||
|
||||
### Krea 2 Outpaint Model Patch
|
||||
|
||||
Tells Krea 2 where a reference picture sits on the canvas. It's made for Krea 2 outpaint LoRAs, and the two that exist want different placements. Put it after the LoRAs and before the sampler, and connect a stitcher and the reference conditioning from Krea 2 Encode.
|
||||
@@ -274,6 +357,29 @@ Here Krea 2 Outpaint takes a 16:9 photo to 4:5 in one pass. [Open the Krea 2 Out
|
||||
|
||||
The patch relies on ComfyUI's internal attention code. Its [help page](js/docs/AUSBOSS_NODES_Krea2OutpaintModelPatch.md) explains both setups and what happens without reference conditioning.
|
||||
|
||||
### Strength Curve
|
||||
|
||||
Draw how strong something should be from the first step of a run to the last: drag the points, or start from flat, fade out, fade in, ease out or ease in. **Top** and **Bottom** set the strength at the top and bottom of the curve box. Wire the curve into LoRA Loader's `curve` (rows you mark follow it) or Krea 2 Encode's `reference_curve`. The output is ComfyUI's list of numbers (`FLOATS`), so it also feeds ComfyUI's own hook keyframe nodes.
|
||||
|
||||
## 3D viewer
|
||||
|
||||
### Pause for Shot
|
||||
|
||||
Stops a run right after a **Preview 3D (Advanced)** viewer, so you can frame your shot on the model that run just made. Turn the camera, zoom, move the model, then press **Continue**: the run goes on with the shot exactly as the viewer shows it, and nothing before the pause runs again. **Stop** ends the run there. Wire a 360 picture into `panorama` and it shows behind the model while you frame, and `backdrop` hands on the part of it the camera sees, with an optional floor shadow. Set **Pause** to *run through* for runs nobody is watching.
|
||||
|
||||
### Photo Camera
|
||||
|
||||
Works out the camera your photo was taken with, so a 3D model of the person lines up with the photo. Made for **Pixal3D**, the TRELLIS 2 model that builds the model lined up with the photo. Wire in the photo, the person's mask and the photo's lens width (**Get FoV from MoGe** measures it). It hands Pixal3D the crop's lens, the 3D viewer your photo's own view (so the viewer opens where the photo was taken), and where the photo goes on a 360 canvas so the 360 lines up behind the model.
|
||||
|
||||
### Extras in ComfyUI's 3D viewers
|
||||
|
||||
The pack also adds to ComfyUI's own 3D viewers, with no new node:
|
||||
|
||||
- **Shape chips** above the width and height of Preview 3D (Advanced) and Save 3D (Advanced): pick a shape and the frame follows.
|
||||
- **Blender keys** with the mouse over a viewer: G move, R rotate, S scale, X / Y / Z to lock an axis, a typed number for an exact amount, the number keys for front, side and top views, and Home to frame the model.
|
||||
- **Viewport tools** in the top-right corner: drag the axis gizmo to orbit, the magnifier to zoom, the hand to pan, and a grid switch.
|
||||
- **A 360 strip** (press N, or the small 360 tab): spin and tip the model, cut its front or back away, turn, tilt and roll the 360 background, its brightness and blur, the light and the model's colours. The settings save with the workflow.
|
||||
|
||||
## Workflow utilities
|
||||
|
||||
Core ComfyUI has its own nodes for most of these jobs, and they work fine. These versions add the extras described under each one.
|
||||
@@ -288,7 +394,15 @@ It returns `width`, `height` and an empty image latent. The gear picks the laten
|
||||
|
||||
### Layout Boxes
|
||||
|
||||
Draw boxes on a canvas and say what goes in each one: a thing, or words to write in the picture. Wire `elements` to MOSS-Image Layout Prompt and the picture puts each thing where its box is. It does what ComfyUI's own Create Bounding Boxes does, with the same inputs and the same outputs from the same boxes, and its canvas also works in the classic node look. Drag to draw a box, drag it to move it and its handles to size it; under the canvas each box gets **object** or **text**, its words and up to five colors. A picture on `background` shows under the boxes and sets the canvas size, `width` and `height` can come from Latent Size, and boxes on the `bboxes` wire fill the canvas when the workflow runs. **Grid** snaps the boxes as you drag them, starts off over a picture and takes its size from the gear, **Layouts** starts from a ready arrangement, the arrow keys move the chosen box one pixel at a time (ten with Shift), and Delete and Ctrl + D remove and copy it. The `mask` output is white inside every box: load a picture, draw a box over the words on a sign, and an inpaint chain can write new words there while the rest of the picture stays as it was. For words at a slant, drag the round handle over a box to turn it: the mask turns with it, and a turned text box tells the model its slant.
|
||||
Draw boxes on a canvas and say what goes in each one: a thing, or words to write in the picture. Wire `elements` to MOSS-Image Layout Prompt and the picture puts each thing where its box is. It does what ComfyUI's own Create Bounding Boxes does, with the same inputs and the same outputs from the same boxes, and its canvas also works in the classic node look.
|
||||
|
||||
Drag to draw a box, drag it to move it and its handles to size it; under the canvas each box gets **object** or **text**, its words and up to five colors. A picture on `background` shows under the boxes and sets the canvas size, `width` and `height` can come from Latent Size, and boxes on the `bboxes` wire fill the canvas when the workflow runs. **Grid** snaps the boxes as you drag them, starts off over a picture and takes its size from the gear, **Layouts** starts from a ready arrangement, the arrow keys move the chosen box one pixel at a time (ten with Shift), and Delete and Ctrl + D remove and copy it.
|
||||
|
||||
The `mask` output is white inside every box: load a picture, draw a box over the words on a sign, and an inpaint chain can write new words there while the rest of the picture stays as it was. For words at a slant, drag the round handle over a box to turn it: the mask turns with it, and a turned text box tells the model its slant.
|
||||
|
||||
For a model that reads only a prompt and has no box input, the `placement` output says the boxes as plain sentences, what goes in each box and where, to add to your prompt.
|
||||
|
||||

|
||||
|
||||
### Seed
|
||||
|
||||
@@ -310,6 +424,20 @@ Puts batch `b` after `a`. When the sizes match, nothing is resized. When they di
|
||||
|
||||
A text box that grows with the node and sends its text, unchanged, down a `STRING` wire. Use it for a prompt, caption, path or other text that several nodes share. Spaces and line breaks are kept. Ctrl + Up and Ctrl + Down change the weight of the selected words, as in ComfyUI's own prompt boxes.
|
||||
|
||||
### Text Lines
|
||||
|
||||
Runs what comes after once for each line of your text. Type five prompts, one on each line, and one run makes five pictures. It also takes a list another node wrote, skips empty lines, and can take a leading `1.` or `-` off each line. `number` counts the lines from 1, to give each its own seed.
|
||||
|
||||
### Prompt Variations
|
||||
|
||||
A prompt box that changes on every run. Write choices in curly brackets, split by `|`, such as `a {red|blue|green} {sweater|jacket}`, and the node picks one from each set. Wire in the seed your sampler uses: a new seed gives a new mix, and the same seed gives the same prompt again. Set the seed to randomize and queue 50 runs to get 50 different prompts. Text without brackets comes out exactly as typed, so a JSON prompt is safe.
|
||||
|
||||
### H3 Prompt Writer
|
||||
|
||||
Type what happens, one line for each moment, and leave a blank line to cut to a new place. Connect up to four pictures and give each one a job: a person, a place, an outfit, a thing or a style. Copy the moves from a video, keep a clip going, or add a voice or a song. A timeline on the node shows when each moment plays before you run it. It needs no extra model and you never see H3's prompt format. Connect a small text model and it fills in a one-line idea.
|
||||
|
||||
**Change something** edits the named part of a video while keeping its person and sound. For a person swap, an optional `@1 looks like ...` line describes the connected replacement. Jobs that keep the source clip's length show **From the clip**; the `keeps_clip_sound` output helps a workflow choose the source audio.
|
||||
|
||||
### Integer
|
||||
|
||||
One whole number (`INT`) on a scrub control, for sharing a size, count or other whole number across nodes. Like every number box in the pack, it takes a typed sum: `1024*1.5`.
|
||||
@@ -338,17 +466,25 @@ A setup card for a shared workflow: a title, instructions in Markdown, each mode
|
||||
|
||||
A note for the canvas whose text grows to fill it, so it reads without zooming in. Double-click to type; a blank line starts a new point and `**two stars**` stress a word. Type an arrow emoji such as ⬆️ and it turns into a teal arrow in the middle of the line. Click a node while you edit, then press an arrow, and the arrow is linked to that node: click it later and the canvas brings the node into view. It never runs and has no wires.
|
||||
|
||||
### Compact note and link tiles
|
||||
|
||||
**Callout Tile** shows a compact title or colored YouTube/Discord link button. **Workflow Note Tile** opens a full help note from a compact button. They reuse the note editors and save as distinct node types, so an older install reports a missing node instead of drawing an incompatible plain note. Install or update ComfyUI-AusBoss, restart ComfyUI and reload when either tile is missing. Existing ordinary notes and callouts keep their original types.
|
||||
|
||||
### Run Timer
|
||||
|
||||
A stopwatch for the whole run, with no wires. It starts when the queue starts running, holds the total when the run ends, and saves the last time with the workflow. Recent times are in its right-click menu. You can resize it. It only shows time and doesn't change how the graph runs.
|
||||
|
||||
### Step Preview
|
||||
|
||||
Shows the picture while it is being made, one step at a time, so you can stop a run that is going wrong after the first few steps. It has no wires: put it anywhere and it shows whichever sampler is working. **STOP** stops this run; **STOP ALL** also empties the queue. When the picture is saved, the finished picture replaces the last step. It turns on ComfyUI's step pictures for its own runs, unless you chose a preview method yourself. The [help page](js/docs/AUSBOSS_NODES_StepPreview.md) covers sharper step pictures.
|
||||
|
||||
### Workflow Switches
|
||||
|
||||
Turns parts of a workflow off and on from one small card. Select the nodes of one part, such as a box and its Save Image, press **+ Switch**, and they get one **off | on** switch with a name you choose. Every group can have a switch of its own too. Off bypasses the nodes, so a step in the middle of a chain can be skipped and the picture still reaches the steps after it; a setting mutes them instead. A switch can change settings instead: save what chosen nodes hold for on and for off, and one click sets Steps to 8 and turns a LoRA row on. **Done** shrinks the card to the labels and their switches. A row whose nodes are only partly on reads **mixed**. The node never runs and has no wires.
|
||||
Turns parts of a workflow off and on from one small card. Select the nodes of one part, such as a box and its Save Image, press **+ Switch**, and they get one **off | on** switch with a name you choose. To pick between settings instead, set a node and press **+ Choice** for each way: the card becomes one pill. Every group can have a switch of its own too. Off bypasses the nodes, so a step in the middle of a chain can be skipped and the picture still reaches the steps after it; a setting mutes them instead. A switch can change settings instead: save what chosen nodes hold for on and for off, and one click sets Steps to 8 and turns a LoRA row on. **Done** shrinks the card to the labels and their switches. A row whose nodes are only partly on reads **mixed**. The node never runs and has no wires. An AI agent can set one up for you: point it at the [agent guide](js/docs/agents/workflow_switches.md).
|
||||
|
||||
## Example workflows
|
||||
|
||||
These are the workflows where the nodes do something core ComfyUI doesn't do by itself: outpainting and inpainting that put your original picture back, lining an edit back up with its source, upscaling a picture in tiles, masking a thing by its name, and removing a watermark from a clip. Open a JSON file from [`example_workflows/`](example_workflows), or find them under this pack in ComfyUI's template browser. Each one has a thumbnail, numbered groups and a Workflow Note with the setup steps and model downloads.
|
||||
These are the workflows where the nodes do something core ComfyUI doesn't do by itself: outpainting and inpainting that put your original picture back, lining an edit back up with its source, upscaling a picture in tiles, masking a thing by its name or with a click, removing a watermark from a clip, and making a clip larger and sharper. Open a JSON file from [`example_workflows/`](example_workflows), or find them under this pack in ComfyUI's template browser. Each one has a thumbnail, numbered groups and a Workflow Note with the setup steps and model downloads.
|
||||
|
||||

|
||||
|
||||
@@ -369,6 +505,7 @@ The workflows open with their image and video loaders empty, so you load your ow
|
||||
| [Mask by Name](example_workflows/Mask%20by%20Name%20%28AusBoss%29.json) | Type what to find in a picture, and get its mask and a cut-out with a see-through background | ComfyUI's own SAM 3.1 (ComfyUI 0.20 or newer) |
|
||||
| [Mask by Touch](example_workflows/Mask%20by%20Touch%20%28AusBoss%29.json) | Click a thing in a picture, or its whole subject, and get its mask and a cut-out with hair-fine edges | ComfyUI's own SAM 3.1 and its background-removal model (ComfyUI 0.21 or newer) |
|
||||
| [Simple Video Watermark Remover](example_workflows/Simple%20Video%20Watermark%20Remover%20%28AusBoss%29.json) | Find an overlay in a clip and remove it, with a one-frame comparison branch | ComfyUI's own SAM 3.1 (ComfyUI 0.20 or newer), plus `big-lama.pt` |
|
||||
| [FlashVSR Video Upscale](example_workflows/FlashVSR%20Video%20Upscale%20%28AusBoss%29.json) | Make a clip larger and sharper with one node | `flashvsr_v1.1_fp16.safetensors` |
|
||||
|
||||
Every example uses only core nodes and this pack. Speed and memory use depend on the models, the sizes, the frame count and whatever else is using the GPU.
|
||||
|
||||
@@ -378,6 +515,7 @@ If you share workflows, a few of these nodes help the people who download them:
|
||||
|
||||
- **Workflow Note** puts a setup card on the canvas with each model's download link, folder and size, the node packs it needs and your links, and checks them against the reader's install.
|
||||
- **Callout** is a note with big readable text and teal arrows you type with an emoji.
|
||||
- **Check layout 🆎** lists overlaps, hidden and backwards wires and nodes outside the groups before you share.
|
||||
- **Image Compare A/B** shows the result against its source with a slider.
|
||||
- **Seed** keeps runs repeatable, and **Use last run** brings back the seed the last run used.
|
||||
- **Run Timer** shows how long the whole run took, so a speed note is measured.
|
||||
@@ -389,9 +527,12 @@ People who download your workflow get the nodes through ComfyUI-Manager's missin
|
||||
|
||||
## Pack-wide tools
|
||||
|
||||
- **Help cards:** the **?** in a node's title bar opens its description, inputs and outputs. Run Timer has no title bar, so it has **About this node** in its right-click menu.
|
||||
- **Help cards:** the **?** in a classic node's title bar opens its description, inputs and outputs. Nodes 2.0 and titleless nodes such as Run Timer have **About this node** in their right-click menu.
|
||||
- **Recreate node 🆎** (right-click an AusBoss node) rebuilds a node saved by an older version from the current definition. It keeps the values, links, position and colors.
|
||||
- **Replace with AusBoss nodes 🆎** (canvas right-click or the command palette) finds third-party nodes this pack can stand in for, such as VideoHelperSuite's Load Video and Video Combine or KJNodes' Color Match. It previews each swap and replaces the ones you leave ticked.
|
||||
- **Check layout 🆎** (canvas right-click or the command palette) lists what makes a workflow hard to read: overlapping nodes and groups (title bars included), wires that run backwards or hide behind a node, a node just under one that grows when it shows a picture, nodes outside every group, a saved zoom too small for the text to draw, and a missing Workflow Note. It checks inside every subgraph too. Click an entry to jump to it and select it. It moves nothing.
|
||||
- **Snap into line:** a node, group or selection you drag lines up with the nodes and groups around it, edge to edge or middle to middle, and a teal line shows what it lines up with. Pulling a corner to resize lines up the same way. Hold Shift while you drag to skip it, or turn it off in Settings → 🆎 AusBoss → Canvas.
|
||||
- **Line up:** select two or more nodes or groups and the selection toolbar gets a Line up button: line up edges or middles, match widths or heights, or space them evenly. With two or more nodes selected, pulling the edge or corner of one resizes them all: a column gets one width, a row one height, a grid both (turn it off in Settings → 🆎 AusBoss → Canvas → Resize together).
|
||||
- **Node colors:** Settings → 🆎 AusBoss → Appearance sets the scheme for every AusBoss node (AusBoss, Graphite, Slate, Teal, Moss, Plum, Rust, Navy, Custom or Theme default). A node's right-click **AusBoss color** menu recolors just that node, and nodes you colored by hand keep their colors.
|
||||
- **Run status:** under Settings → 🆎 AusBoss → Chrome, the queue status can show in the browser tab's title and icon, running nodes get live progress badges, and each node's run time can be shown.
|
||||
- **Completion sound:** Settings → 🆎 AusBoss → Notifications plays a short chime when the queue finishes.
|
||||
@@ -402,7 +543,7 @@ People who download your workflow get the nodes through ComfyUI-Manager's missin
|
||||
- Hold Shift while you turn the green rotation handle to snap to 15° steps.
|
||||
- In the full-screen editor, the mouse wheel zooms, and the middle mouse button or Alt-drag pans. On the node itself, the wheel and middle mouse button still move the graph.
|
||||
- **Alt+E** opens the selected node's transform editor. Change the key in Settings → Keybindings.
|
||||
- The video editors have frame stepping, playback and exact timeline seeking, on the node face as well as in the editor. The Clip node's IN and OUT handles sit on the source's own frames, so the frame shown for IN is the first one decoded and the frame shown for OUT is the last.
|
||||
- The video editors have frame stepping, playback and exact timeline seeking, on the node face as well as in the editor. The Clip node's start and end handles sit on the source's own frames, so the frame shown at the start is the first one decoded and the frame shown at the end is the last.
|
||||
- Your own aspect presets go in `ausboss_presets.json` beside the pack. Copy [`ausboss_presets_example.json`](ausboss_presets_example.json) to start. Your file survives updates.
|
||||
|
||||
LoRA Loader and Latent Size have their own gear menus for per-node preferences.
|
||||
|
||||
@@ -13,8 +13,10 @@ follows a few fixed rules.
|
||||
never take a file to read from the browser: they work on the two previews
|
||||
that node made in its last run, and Align writes its lined-up copy of B
|
||||
beside them in ComfyUI's temp folder. The name typed for the new files is a plain name
|
||||
with no folder in it, and they go straight into the output folder. Load Video picks from the input
|
||||
folder; the video transform nodes read a video picked from a list of the
|
||||
with no folder in it, and they go straight into the output folder. Load Video, Load Image + Pad
|
||||
and Image Crop + Rotate + Pad pick from the input folder, and take a file ComfyUI made by
|
||||
the name it gives it (`photo.png [output]`), as core Load Image does; the video transform
|
||||
nodes read a video picked from a list of the
|
||||
input or the output folder, by the name ComfyUI gives it there
|
||||
(`clip.mp4 [output]`), and their uploader streams into the input folder.
|
||||
No input opens a whole path as given. Absolute paths, `..`, `~`, Windows drive and
|
||||
@@ -32,12 +34,21 @@ follows a few fixed rules.
|
||||
`<model>.civitai.info` (inside ComfyUI's LoRA folders). The pack checks
|
||||
that the answer describes the same file before saving it. Nothing is sent
|
||||
until you click, and the button can be turned off in the node's settings.
|
||||
The same click also has your browser download the LoRA's first picture
|
||||
from Civitai's picture server (a small copy, without cookies, rated PG-13
|
||||
or milder unless you allow more). The pack checks it is a picture and
|
||||
saves it beside the LoRA as `<model>.preview.jpg`, never replacing a
|
||||
picture that is there. The gear menu's **Civitai picture** option turns
|
||||
this off.
|
||||
- **No code execution.** Math Expression parses its text into an
|
||||
allowlisted syntax tree of arithmetic and a few math functions; it never
|
||||
runs Python source. The pack starts no subprocesses and installs nothing
|
||||
at runtime.
|
||||
- **No automatic downloads.** You place model weights (LaMa, RAFT optical
|
||||
flow) yourself; the pack never fetches them.
|
||||
- **LaMa opens only known files.** A LaMa model file can run code when it
|
||||
opens, so LaMa Inpaint checks a file's SHA-256 first and opens only known
|
||||
copies of `big-lama.pt`.
|
||||
- **No raw HTML from workflows.** Workflow Note renders its Markdown into
|
||||
text nodes, and its links open only `http(s)` addresses.
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ of taking the whole pack down, so one broken node never hides the rest.
|
||||
|
||||
import importlib
|
||||
import os
|
||||
import re
|
||||
import traceback
|
||||
|
||||
# One entry per file in nodes/, kept alphabetical. The order has no
|
||||
@@ -22,24 +21,36 @@ NODE_MODULES = [
|
||||
"node_callout",
|
||||
"node_color_match",
|
||||
"node_compare",
|
||||
"node_cut_out",
|
||||
"node_edit_lock",
|
||||
"node_film_grain",
|
||||
"node_flashvsr_upscale",
|
||||
"node_frame_interpolate",
|
||||
"node_free_memory",
|
||||
"node_h3_prompt_writer",
|
||||
"node_image_crop_rotate_pad",
|
||||
"node_image_folder",
|
||||
"node_image_resize",
|
||||
"node_image_size",
|
||||
"node_image_toolbox",
|
||||
"node_inpaint_crop_stitch",
|
||||
"node_keep_detail",
|
||||
"node_krea2_encode",
|
||||
"node_krea2_model_patch",
|
||||
"node_lama_inpaint",
|
||||
"node_layout_boxes",
|
||||
"node_literals",
|
||||
"node_load_image",
|
||||
"node_load_image_pad",
|
||||
"node_load_audio",
|
||||
"node_load_video",
|
||||
"node_lora_loader",
|
||||
"node_mask_by_name",
|
||||
"node_mask_by_touch",
|
||||
"node_math",
|
||||
"node_pause_shot",
|
||||
"node_photo_camera",
|
||||
"node_prompt_variations",
|
||||
"node_realign_to_source",
|
||||
"node_refine_mask",
|
||||
"node_resolution",
|
||||
@@ -49,6 +60,9 @@ NODE_MODULES = [
|
||||
"node_seed",
|
||||
"node_select_frame",
|
||||
"node_show_text",
|
||||
"node_step_preview",
|
||||
"node_strength_curve",
|
||||
"node_text_lines",
|
||||
"node_tiled_upscale",
|
||||
"node_video_crop_rotate_pad",
|
||||
"node_video_crop_rotate_pad_clip",
|
||||
@@ -60,7 +74,19 @@ NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
_failed_modules = []
|
||||
|
||||
# Two copies of the pack (a Manager install beside a git clone) add every
|
||||
# route twice and ComfyUI stops while starting. Only one copy loads.
|
||||
_other_copy = None
|
||||
try:
|
||||
from .nodes._single_copy import other_copy_that_loads
|
||||
|
||||
_other_copy = other_copy_that_loads(os.path.dirname(__file__))
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
for _module_name in NODE_MODULES:
|
||||
if _other_copy:
|
||||
break
|
||||
try:
|
||||
_module = importlib.import_module(f".nodes.{_module_name}", __name__)
|
||||
NODE_CLASS_MAPPINGS.update(getattr(_module, "NODE_CLASS_MAPPINGS", {}))
|
||||
@@ -72,8 +98,10 @@ for _module_name in NODE_MODULES:
|
||||
traceback.print_exc()
|
||||
|
||||
# Folder ComfyUI serves to the browser; every .js file in it is loaded as a
|
||||
# frontend extension. Shared modules use .mjs so they are import-only.
|
||||
WEB_DIRECTORY = "./js"
|
||||
# frontend extension. Shared modules use .mjs so they are import-only. A copy
|
||||
# that steps aside serves only the script that warns about it in the browser,
|
||||
# since the console line alone is easy to miss.
|
||||
WEB_DIRECTORY = "./web_second_copy" if _other_copy else "./js"
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
|
||||
@@ -81,10 +109,11 @@ __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
def _read_version():
|
||||
"""Version straight from pyproject.toml so it is never duplicated."""
|
||||
try:
|
||||
from .nodes._pyproject import read_project
|
||||
|
||||
pyproject = os.path.join(os.path.dirname(__file__), "pyproject.toml")
|
||||
with open(pyproject, "r", encoding="utf-8") as f:
|
||||
match = re.search(r'^version\s*=\s*"([^"]+)"', f.read(), re.MULTILINE)
|
||||
return match.group(1) if match else "unknown"
|
||||
version = read_project(pyproject).get("version")
|
||||
return version if isinstance(version, str) and version.strip() else "unknown"
|
||||
except Exception:
|
||||
return "unknown"
|
||||
|
||||
@@ -109,11 +138,34 @@ def _print_banner():
|
||||
print(bar)
|
||||
|
||||
|
||||
try:
|
||||
from .nodes._frontend_cache import register_frontend_cache_guard
|
||||
def _print_second_copy():
|
||||
# ASCII only, as in the banner.
|
||||
red = "\033[0;31m"
|
||||
reset = "\033[0m"
|
||||
own = os.path.basename(os.path.dirname(os.path.realpath(__file__)))
|
||||
other = os.path.basename(_other_copy["folder"])
|
||||
print(f"{red}AusBoss: this pack is installed twice.{reset}")
|
||||
print(f" Using: custom_nodes/{other} (v{_other_copy['version']})")
|
||||
print(f" Skipping: custom_nodes/{own} (v{_read_version()})")
|
||||
print(" Delete one of the two folders, then restart ComfyUI.")
|
||||
|
||||
register_frontend_cache_guard()
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
_print_banner()
|
||||
if _other_copy:
|
||||
_print_second_copy()
|
||||
try:
|
||||
from .nodes._single_copy import register_second_copy_notice, second_copy_notice
|
||||
|
||||
register_second_copy_notice(
|
||||
second_copy_notice(os.path.dirname(__file__), _read_version(), _other_copy)
|
||||
)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
else:
|
||||
try:
|
||||
from .nodes._frontend_cache import register_frontend_cache_guard
|
||||
|
||||
register_frontend_cache_guard()
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
_print_banner()
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="105" height="20" role="img" aria-label="release: v2.30.0">
|
||||
<title>release: v2.30.0</title>
|
||||
<path fill="#555" d="M0 0h48v20H0z"/>
|
||||
<path fill="#00b4aa" d="M48 0h57v20H48z"/>
|
||||
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
|
||||
<text x="24" y="14">release</text>
|
||||
<text x="76.5" y="14">v2.30.0</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 425 B |
@@ -21,7 +21,7 @@ Every visible field and output must earn its place. Published IDs, input order,
|
||||
1. Put independently testable processing in an underscore-prefixed helper under `nodes/`.
|
||||
2. Add one V1 wrapper in `nodes/node_<purpose>.py` with `INPUT_TYPES`, `RETURN_TYPES`, `FUNCTION`, `CATEGORY`, and both mapping dictionaries — keys as string literals, never a `NODE_ID` variable, or registry scanners cannot see the node.
|
||||
3. Add the module to `NODE_MODULES` in `__init__.py` and the key to `PUBLIC_NODE_IDS` in `scripts/validate_nodes.py`; the validator fails on a registered key it does not know. A key kept only so old workflows load goes in `LEGACY_NODE_IDS` instead.
|
||||
4. Give the node its face. Any INT, FLOAT, BOOLEAN, COMBO or STRING widget on a public node is shown through a widget card entry in `js/widget_cards/index.js` (see AGENTS.md §Conventions: numbers scrub, booleans are off | on pills, one linkable widget per row, `top: true` or `forceInput` for values people wire). Write more frontend JavaScript only when the card grammar cannot provide the interaction (a stage, a player, an editor).
|
||||
4. Give the node its face. Any INT, FLOAT, BOOLEAN, COMBO or STRING widget on a public node is shown through a widget card entry in `js/widget_cards/index.js` (see CONTRIBUTING.md, Conventions: numbers scrub, booleans are off | on pills, one linkable widget per row, `top: true` or `forceInput` for values people wire). Write more frontend JavaScript only when the card grammar cannot provide the interaction (a stage, a player, an editor).
|
||||
5. Namespace every route, extension, event, DOM marker, CSS class, cache, and browser state with `ausboss`.
|
||||
6. Chain lifecycle hooks through `chainCallback`; never replace core or third-party prototypes directly.
|
||||
7. Keep normal workflow and API execution independent from the custom frontend.
|
||||
@@ -31,7 +31,7 @@ Every visible field and output must earn its place. Published IDs, input order,
|
||||
## Document and prove
|
||||
|
||||
- Add rich help at `js/docs/<exact-mapping-key>.md` (the validator checks it exists) and a section in `README.md`. Name card controls the way the node face shows them, with the widget name alongside: **Tone match** (`color_match`).
|
||||
- Show the node in an example under `example_workflows/`, a new one or an existing one it fits: a Workflow Note, numbered groups holding every node, no overlaps, and a matching `.jpg` of a real output. AGENTS.md § Example workflows lists the rest.
|
||||
- Show the node in an example under `example_workflows/`, a new one or an existing one it fits: a Workflow Note, numbered groups holding every node, no overlaps, and a matching `.jpg` of a real output. CONTRIBUTING.md, Example workflows, lists the rest.
|
||||
- A DOM panel goes into `tests/panel_guards.test.mjs` as `mustGrow` or `fixedByDesign`.
|
||||
- At the next release, name the node in the pyproject `description`: Registry and Manager search read it.
|
||||
- Extend `scripts/validate_nodes.py` when the new contract needs a permanent assertion.
|
||||
|
||||
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 19 KiB |
@@ -42,7 +42,8 @@ recipe.
|
||||
| `cdp_drag.mjs <port> <setup.js> <mid.png\|-> <after.png\|-> [check.js]` | `setup.js` returns `{from, to, __clip}` in client pixels; presses at `from`, moves to `to`, screenshots mid-drag, releases, evaluates `check.js`, screenshots again |
|
||||
| `audit_workflows.mjs <port> <output-dir> [workflow.json ...]` | loads every example (or selected files), exports API and loaded graphs, captures screenshots, and fails on overlaps, missing nodes, browser exceptions, or exposed AusBoss number widgets |
|
||||
| `wheel_sweep.mjs <port> [--vue] [--only=Type,Type] [--workflow=file.json] [--shots=dir]` | turns the mouse wheel at every point of every node of the pack (or of the nodes in one workflow) and fails on any spot where the graph does not zoom, naming the element that took the wheel; `--real` sends real wheel turns, slower and on a coarser grid |
|
||||
| `face_smoke.mjs <port> [--vue] [--only=Type,Type]` | puts one of each node of the pack on an empty graph and fails when a face does not come up: no node, a panel that is not on the page or has no size, an error thrown, a file of the pack that did not load. Needs no model, so it also runs in the nightly ComfyUI check |
|
||||
| `face_smoke.mjs <port> [--vue] [--blocked-reads] [--only=Type,Type]` | puts one of each node of the pack on an empty graph and fails when a face does not come up: no node, a panel that is not on the page or has no size, an error thrown, a file of the pack that did not load. `--blocked-reads` acts like a privacy browser that blanks canvas pixel reads, gives every node that loads a picture a sample picture, and fails when its face then draws no picture. Needs no model, so it also runs in the nightly ComfyUI check |
|
||||
| `h3_sockets_check.mjs <port> [--vue]` | puts H3 Prompt Writer on a graph and reads the screen: which socket rows are drawn fresh, wired, unwired, after undo, a paste, a collapse and a switch of renderer, what a run would send, and what a save would write. Fails when a row shows or hides against the rule in `js/shared/h3_sockets.mjs`. `H3_LIVE_WORKFLOWS` adds saved workflows to open. Needs no model, so it also runs in the nightly ComfyUI check |
|
||||
| `cdp_nav_debug.mjs <port>` | navigates the tab in place and logs every CDP event, for when a tab stops answering |
|
||||
| `cdp_hang.mjs <port>` | pre-arms the debugger on a fresh tab, loads ComfyUI, and pauses to print the stack if the page stops answering |
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 206 KiB |
@@ -0,0 +1,993 @@
|
||||
{
|
||||
"id": "aba7bd0c-8de6-4044-a89e-cada288c8911",
|
||||
"revision": 0,
|
||||
"last_node_id": 15,
|
||||
"last_link_id": 11,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "AUSBOSS_NODES_WorkflowNote",
|
||||
"pos": [
|
||||
0,
|
||||
30
|
||||
],
|
||||
"size": [
|
||||
440,
|
||||
640
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_WorkflowNote"
|
||||
},
|
||||
"widgets_values": [
|
||||
"{\"v\":1,\"title\":\"Film Grain, Cut Out and Keep Detail\",\"subtitle\":\"Finish a picture: add film grain, cut it out, or put back detail an edit smoothed away.\",\"author\":\"AusBoss\",\"layout\":\"card\",\"accent\":\"\",\"body\":\"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your picture.\\n2. Press **Run**. Each node shows its result, and Save Image keeps it.\\n\\n### Good to know\\n\\n- **Film Grain** works on video too: new grain on every frame, or the same grain with **Video grain** on *still*.\\n- **Cut Out** gets its mask from two core nodes, Convert Image to Mask and Threshold Mask, so it needs no model. Wire Mask by Name or Mask by Touch for a real subject. The PNG keeps the transparency.\\n- **Keep Detail** needs the two pictures to line up. Image Blur here stands in for an edit; wire your own edit and the original.\\n\\nRuns on the CPU, with nothing to download. Needs AusBoss nodes newer than 2.28.1.\",\"models\":[],\"packs\":[{\"name\":\"ComfyUI-AusBoss\",\"url\":\"https://github.com/ausboss/ComfyUI-AusBoss\",\"node\":\"AUSBOSS_NODES_KeepDetail\"}],\"links\":[{\"label\":\"YouTube · ausbossdev\",\"url\":\"https://www.youtube.com/@ausbossdev\"},{\"label\":\"GitHub · ausboss\",\"url\":\"https://github.com/ausboss\"},{\"label\":\"Civitai · AusBoss\",\"url\":\"https://civitai.com/user/AusBoss\"},{\"label\":\"X · Zanzibased\",\"url\":\"https://x.com/Zanzibased\"}]}"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"note": "{\"v\":1,\"title\":\"Film Grain, Cut Out and Keep Detail\",\"subtitle\":\"Finish a picture: add film grain, cut it out, or put back detail an edit smoothed away.\",\"author\":\"AusBoss\",\"layout\":\"card\",\"accent\":\"\",\"body\":\"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your picture.\\n2. Press **Run**. Each node shows its result, and Save Image keeps it.\\n\\n### Good to know\\n\\n- **Film Grain** works on video too: new grain on every frame, or the same grain with **Video grain** on *still*.\\n- **Cut Out** gets its mask from two core nodes, Convert Image to Mask and Threshold Mask, so it needs no model. Wire Mask by Name or Mask by Touch for a real subject. The PNG keeps the transparency.\\n- **Keep Detail** needs the two pictures to line up. Image Blur here stands in for an edit; wire your own edit and the original.\\n\\nRuns on the CPU, with nothing to download. Needs AusBoss nodes newer than 2.28.1.\",\"models\":[],\"packs\":[{\"name\":\"ComfyUI-AusBoss\",\"url\":\"https://github.com/ausboss/ComfyUI-AusBoss\",\"node\":\"AUSBOSS_NODES_KeepDetail\"}],\"links\":[{\"label\":\"YouTube · ausbossdev\",\"url\":\"https://www.youtube.com/@ausbossdev\"},{\"label\":\"GitHub · ausboss\",\"url\":\"https://github.com/ausboss\"},{\"label\":\"Civitai · AusBoss\",\"url\":\"https://civitai.com/user/AusBoss\"},{\"label\":\"X · Zanzibased\",\"url\":\"https://x.com/Zanzibased\"}]}"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
500,
|
||||
272
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
760
|
||||
],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
1,
|
||||
3,
|
||||
5,
|
||||
8,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"title": "Your picture",
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"",
|
||||
"image"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"image": "",
|
||||
"upload": "image"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "AUSBOSS_NODES_Callout",
|
||||
"pos": [
|
||||
500,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
122
|
||||
],
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Callout",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_Callout"
|
||||
},
|
||||
"widgets_values": [
|
||||
"⬇️#2 Load your **picture** here."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "⬇️#2 Load your **picture** here."
|
||||
},
|
||||
"color": "#07090a",
|
||||
"bgcolor": "#07090a"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "AUSBOSS_NODES_FilmGrain",
|
||||
"pos": [
|
||||
984,
|
||||
272
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
449
|
||||
],
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 1
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"shape": 7,
|
||||
"type": "MASK",
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_FilmGrain"
|
||||
},
|
||||
"widgets_values": [
|
||||
0.3,
|
||||
1.2,
|
||||
0.5,
|
||||
0.2,
|
||||
true,
|
||||
0,
|
||||
true
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"amount": 0.3,
|
||||
"size": 1.2,
|
||||
"roughness": 0.5,
|
||||
"color": 0.2,
|
||||
"moving": true,
|
||||
"seed": 0,
|
||||
"preview": true
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "AUSBOSS_NODES_Callout",
|
||||
"pos": [
|
||||
984,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
122
|
||||
],
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Callout",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_Callout"
|
||||
},
|
||||
"widgets_values": [
|
||||
"⬇️#4 Set the **grain**.\n###### Amount is how strong, Size how big each grain is in pixels. Color 0 is black-and-white grain."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "⬇️#4 Set the **grain**.\n###### Amount is how strong, Size how big each grain is in pixels. Color 0 is black-and-white grain."
|
||||
},
|
||||
"color": "#07090a",
|
||||
"bgcolor": "#07090a"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "AUSBOSS_NODES_SaveImage",
|
||||
"pos": [
|
||||
984,
|
||||
791
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
422
|
||||
],
|
||||
"flags": {},
|
||||
"order": 9,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 2
|
||||
},
|
||||
{
|
||||
"name": "filename",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "caption_text",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "file_path",
|
||||
"type": "STRING",
|
||||
"links": null
|
||||
},
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"title": "Save Image - With grain",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_SaveImage"
|
||||
},
|
||||
"widgets_values": {
|
||||
"filename_prefix": "film_grain",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"widgets_values_named": {
|
||||
"filename_prefix": "film_grain",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "AUSBOSS_NODES_Callout",
|
||||
"pos": [
|
||||
1468,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
122
|
||||
],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Callout",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_Callout"
|
||||
},
|
||||
"widgets_values": [
|
||||
"The mask is the picture's blue channel, with no model.\n###### Wire your own mask here, such as one from Mask by Name."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "The mask is the picture's blue channel, with no model.\n###### Wire your own mask here, such as one from Mask by Name."
|
||||
},
|
||||
"color": "#07090a",
|
||||
"bgcolor": "#07090a"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "ImageToMask",
|
||||
"pos": [
|
||||
1468,
|
||||
272
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
58
|
||||
],
|
||||
"flags": {},
|
||||
"order": 7,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 3
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
4
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Convert Image to Mask - Blue channel",
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageToMask"
|
||||
},
|
||||
"widgets_values": [
|
||||
"blue"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"channel": "blue"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "ThresholdMask",
|
||||
"pos": [
|
||||
1468,
|
||||
400
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
58
|
||||
],
|
||||
"flags": {},
|
||||
"order": 10,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"link": 4
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
6
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Threshold Mask - Sky and mist",
|
||||
"properties": {
|
||||
"Node name for S&R": "ThresholdMask"
|
||||
},
|
||||
"widgets_values": [
|
||||
0.55
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"value": 0.55
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": "AUSBOSS_NODES_CutOut",
|
||||
"pos": [
|
||||
1468,
|
||||
528
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
418
|
||||
],
|
||||
"flags": {},
|
||||
"order": 12,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 5
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"link": 6
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
7
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "alpha",
|
||||
"type": "MASK",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_CutOut"
|
||||
},
|
||||
"widgets_values": [
|
||||
"black",
|
||||
0,
|
||||
1,
|
||||
true,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
true
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"keep": "black",
|
||||
"grow": 0,
|
||||
"feather": 1,
|
||||
"clean_edges": true,
|
||||
"clear_haze": 0,
|
||||
"solid_above": 1,
|
||||
"smooth_frames": 0,
|
||||
"preview": true
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": "AUSBOSS_NODES_SaveImage",
|
||||
"pos": [
|
||||
1468,
|
||||
1016
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
422
|
||||
],
|
||||
"flags": {},
|
||||
"order": 14,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 7
|
||||
},
|
||||
{
|
||||
"name": "filename",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "caption_text",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "file_path",
|
||||
"type": "STRING",
|
||||
"links": null
|
||||
},
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"title": "Save Image - The cut-out",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_SaveImage"
|
||||
},
|
||||
"widgets_values": {
|
||||
"filename_prefix": "cut_out",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"widgets_values_named": {
|
||||
"filename_prefix": "cut_out",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": "AUSBOSS_NODES_Callout",
|
||||
"pos": [
|
||||
1952,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
122
|
||||
],
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Callout",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_Callout"
|
||||
},
|
||||
"widgets_values": [
|
||||
"Image Blur stands in for an edit that came out too smooth.\n###### Edge safe is off under More, because a blur softens strong edges too. Wire your own edit to image and the original to detail_from."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "Image Blur stands in for an edit that came out too smooth.\n###### Edge safe is off under More, because a blur softens strong edges too. Wire your own edit to image and the original to detail_from."
|
||||
},
|
||||
"color": "#07090a",
|
||||
"bgcolor": "#07090a"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": "ImageBlur",
|
||||
"pos": [
|
||||
1952,
|
||||
272
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
82
|
||||
],
|
||||
"flags": {},
|
||||
"order": 8,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 8
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
9
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Image Blur - Stands in for a smooth edit",
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageBlur"
|
||||
},
|
||||
"widgets_values": [
|
||||
4,
|
||||
2
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"blur_radius": 4,
|
||||
"sigma": 2
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": "AUSBOSS_NODES_KeepDetail",
|
||||
"pos": [
|
||||
1952,
|
||||
424
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
407
|
||||
],
|
||||
"flags": {},
|
||||
"order": 11,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 9
|
||||
},
|
||||
{
|
||||
"name": "detail_from",
|
||||
"type": "IMAGE",
|
||||
"link": 10
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"shape": 7,
|
||||
"type": "MASK",
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
11
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_KeepDetail"
|
||||
},
|
||||
"widgets_values": [
|
||||
4,
|
||||
1,
|
||||
false,
|
||||
false,
|
||||
true
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"detail_size": 4,
|
||||
"strength": 1,
|
||||
"color_detail": false,
|
||||
"edge_safe": false,
|
||||
"preview": true
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "AUSBOSS_NODES_SaveImage",
|
||||
"pos": [
|
||||
1952,
|
||||
901
|
||||
],
|
||||
"size": [
|
||||
424,
|
||||
422
|
||||
],
|
||||
"flags": {},
|
||||
"order": 13,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 11
|
||||
},
|
||||
{
|
||||
"name": "filename",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "caption_text",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "file_path",
|
||||
"type": "STRING",
|
||||
"links": null
|
||||
},
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"title": "Save Image - With the detail back",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_SaveImage"
|
||||
},
|
||||
"widgets_values": {
|
||||
"filename_prefix": "keep_detail",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"widgets_values_named": {
|
||||
"filename_prefix": "keep_detail",
|
||||
"format": "png",
|
||||
"save_metadata": true,
|
||||
"exact_name": "",
|
||||
"on_existing": "overwrite",
|
||||
"output_dir": "",
|
||||
"caption": "",
|
||||
"name_counter": true,
|
||||
"name_date": false,
|
||||
"name_time": false,
|
||||
"name_size": false,
|
||||
"name_batch": false,
|
||||
"preview": false,
|
||||
"step_preview": false,
|
||||
"autosave": true,
|
||||
"civitai_info": false
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
2,
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
3,
|
||||
2,
|
||||
0,
|
||||
8,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
4,
|
||||
8,
|
||||
0,
|
||||
9,
|
||||
0,
|
||||
"MASK"
|
||||
],
|
||||
[
|
||||
5,
|
||||
2,
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
6,
|
||||
9,
|
||||
0,
|
||||
10,
|
||||
1,
|
||||
"MASK"
|
||||
],
|
||||
[
|
||||
7,
|
||||
10,
|
||||
0,
|
||||
11,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
8,
|
||||
2,
|
||||
0,
|
||||
13,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
9,
|
||||
13,
|
||||
0,
|
||||
14,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
10,
|
||||
2,
|
||||
0,
|
||||
14,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
11,
|
||||
14,
|
||||
0,
|
||||
15,
|
||||
0,
|
||||
"IMAGE"
|
||||
]
|
||||
],
|
||||
"groups": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "1 · Your picture",
|
||||
"bounding": [
|
||||
480,
|
||||
0,
|
||||
464,
|
||||
1458
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "2 · Film Grain",
|
||||
"bounding": [
|
||||
964,
|
||||
0,
|
||||
464,
|
||||
1458
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "3 · Cut Out",
|
||||
"bounding": [
|
||||
1448,
|
||||
0,
|
||||
464,
|
||||
1458
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "4 · Keep Detail",
|
||||
"bounding": [
|
||||
1932,
|
||||
0,
|
||||
464,
|
||||
1458
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
}
|
||||
],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 0.6,
|
||||
"offset": [
|
||||
20,
|
||||
60
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.58.5",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
954,
|
||||
222
|
||||
],
|
||||
"linkIds": [
|
||||
3,
|
||||
5,
|
||||
8,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1438,
|
||||
222
|
||||
],
|
||||
"linkIds": [
|
||||
3,
|
||||
5,
|
||||
8,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 2,
|
||||
"pos": [
|
||||
1922,
|
||||
222
|
||||
],
|
||||
"linkIds": [
|
||||
8,
|
||||
10
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"parentId": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
|
After Width: | Height: | Size: 127 KiB |
@@ -0,0 +1,561 @@
|
||||
{
|
||||
"id": "0b455c1f-6b0c-4f69-8a7e-86f8de61df5c",
|
||||
"revision": 0,
|
||||
"last_node_id": 5,
|
||||
"last_link_id": 4,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "AUSBOSS_NODES_WorkflowNote",
|
||||
"pos": [
|
||||
0,
|
||||
30
|
||||
],
|
||||
"size": [
|
||||
440,
|
||||
640
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "note",
|
||||
"type": "STRING",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "note"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"title": "🆎 AusBoss",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ver": "2.24.0",
|
||||
"Node name for S&R": "AUSBOSS_NODES_WorkflowNote"
|
||||
},
|
||||
"widgets_values": [
|
||||
"{\"v\": 1, \"title\": \"FlashVSR Video Upscale\", \"subtitle\": \"Make a video larger and sharper with one node and one model file.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your video.\\n2. Set **Scale**: how many times larger each side gets. At 1 the video keeps its size and is only sharpened.\\n3. Press **Run**, then play the result in **Save Video**.\\n\\nTo try a short piece first, drag the right end of the bar under the player in Load Video.\\n\\nA long video needs no more graphics memory than a short one. A large result is made in tiles, so it fits the memory you have and takes longer.\\n\\nNeeds AusBoss nodes 2.24.0 or newer. No other pack is needed.\", \"models\": [{\"name\": \"flashvsr_v1.1_fp16.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"3.5 GB\", \"url\": \"https://huggingface.co/ausboss/FlashVSR-v1.1-ComfyUI/resolve/main/flashvsr_v1.1_fp16.safetensors\", \"note\": \"FlashVSR v1.1 by Junhao Zhuang and the OpenImagingLab team, in one file\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_FlashVSRUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}",
|
||||
""
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"note": "{\"v\": 1, \"title\": \"FlashVSR Video Upscale\", \"subtitle\": \"Make a video larger and sharper with one node and one model file.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your video.\\n2. Set **Scale**: how many times larger each side gets. At 1 the video keeps its size and is only sharpened.\\n3. Press **Run**, then play the result in **Save Video**.\\n\\nTo try a short piece first, drag the right end of the bar under the player in Load Video.\\n\\nA long video needs no more graphics memory than a short one. A large result is made in tiles, so it fits the memory you have and takes longer.\\n\\nNeeds AusBoss nodes 2.24.0 or newer. No other pack is needed.\", \"models\": [{\"name\": \"flashvsr_v1.1_fp16.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"3.5 GB\", \"url\": \"https://huggingface.co/ausboss/FlashVSR-v1.1-ComfyUI/resolve/main/flashvsr_v1.1_fp16.safetensors\", \"note\": \"FlashVSR v1.1 by Junhao Zhuang and the OpenImagingLab team, in one file\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_FlashVSRUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}",
|
||||
"ausboss_workflow_note_panel": ""
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "AUSBOSS_NODES_LoadVideo",
|
||||
"pos": [
|
||||
500,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
420,
|
||||
760
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "video",
|
||||
"type": "COMBO",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "video"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "start_seconds",
|
||||
"type": "FLOAT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "start_seconds"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "end_seconds",
|
||||
"type": "FLOAT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "end_seconds"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "custom_width",
|
||||
"type": "INT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "custom_width"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "custom_height",
|
||||
"type": "INT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "custom_height"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "every_nth",
|
||||
"type": "INT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "every_nth"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "max_frames",
|
||||
"type": "INT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "max_frames"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "single_frame",
|
||||
"type": "BOOLEAN",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "single_frame"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "upload",
|
||||
"type": "IMAGEUPLOAD",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "upload"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "frames",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "audio",
|
||||
"type": "AUDIO",
|
||||
"links": [
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "frame_count",
|
||||
"type": "INT",
|
||||
"links": []
|
||||
},
|
||||
{
|
||||
"name": "fps",
|
||||
"type": "FLOAT",
|
||||
"links": [
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "width",
|
||||
"type": "INT",
|
||||
"links": []
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"type": "INT",
|
||||
"links": []
|
||||
},
|
||||
{
|
||||
"name": "duration",
|
||||
"type": "FLOAT",
|
||||
"links": []
|
||||
},
|
||||
{
|
||||
"name": "video",
|
||||
"type": "VIDEO",
|
||||
"links": []
|
||||
}
|
||||
],
|
||||
"title": "Load Video - Your video",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ver": "2.24.0",
|
||||
"Node name for S&R": "AUSBOSS_NODES_LoadVideo",
|
||||
"ausboss_load_video_loop": true
|
||||
},
|
||||
"widgets_values": {
|
||||
"video": "",
|
||||
"start_seconds": 0,
|
||||
"end_seconds": 0,
|
||||
"custom_width": 0,
|
||||
"custom_height": 0,
|
||||
"every_nth": 1,
|
||||
"max_frames": 0,
|
||||
"single_frame": false
|
||||
},
|
||||
"widgets_values_named": {
|
||||
"video": "",
|
||||
"start_seconds": 0,
|
||||
"end_seconds": 0,
|
||||
"custom_width": 0,
|
||||
"custom_height": 0,
|
||||
"every_nth": 1,
|
||||
"max_frames": 0,
|
||||
"single_frame": false,
|
||||
"upload": "image",
|
||||
"ausboss_widget_card": "",
|
||||
"ausboss_load_video_viewer": ""
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "AUSBOSS_NODES_FlashVSRUpscale",
|
||||
"pos": [
|
||||
980,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
360,
|
||||
190
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "frames",
|
||||
"type": "IMAGE",
|
||||
"link": 1
|
||||
},
|
||||
{
|
||||
"name": "vae",
|
||||
"type": "VAE",
|
||||
"shape": 7,
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "model",
|
||||
"type": "COMBO",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "model"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "scale",
|
||||
"type": "FLOAT",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "scale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "color_match",
|
||||
"type": "BOOLEAN",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "color_match"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "frames",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "FlashVSR Upscale",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ver": "2.24.0",
|
||||
"Node name for S&R": "AUSBOSS_NODES_FlashVSRUpscale",
|
||||
"models": [
|
||||
{
|
||||
"name": "flashvsr_v1.1_fp16.safetensors",
|
||||
"url": "https://huggingface.co/ausboss/FlashVSR-v1.1-ComfyUI/resolve/main/flashvsr_v1.1_fp16.safetensors",
|
||||
"directory": "diffusion_models"
|
||||
}
|
||||
]
|
||||
},
|
||||
"widgets_values": [
|
||||
"flashvsr_v1.1_fp16.safetensors",
|
||||
2,
|
||||
true,
|
||||
""
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"model": "flashvsr_v1.1_fp16.safetensors",
|
||||
"scale": 2,
|
||||
"color_match": true,
|
||||
"ausboss_widget_card": ""
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "AUSBOSS_NODES_SaveVideo",
|
||||
"pos": [
|
||||
1400,
|
||||
80
|
||||
],
|
||||
"size": [
|
||||
440,
|
||||
640
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "frames",
|
||||
"type": "IMAGE",
|
||||
"link": 2
|
||||
},
|
||||
{
|
||||
"name": "audio",
|
||||
"type": "AUDIO",
|
||||
"link": 3
|
||||
},
|
||||
{
|
||||
"name": "video",
|
||||
"type": "VIDEO",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "fps",
|
||||
"type": "FLOAT",
|
||||
"link": 4
|
||||
},
|
||||
{
|
||||
"name": "filename_prefix",
|
||||
"type": "STRING",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "filename_prefix"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crf",
|
||||
"type": "INT",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "format",
|
||||
"type": "COMBO",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "format"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "pingpong",
|
||||
"type": "BOOLEAN",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "pingpong"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "save_metadata",
|
||||
"type": "BOOLEAN",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "save_metadata"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "file_path",
|
||||
"type": "STRING",
|
||||
"links": []
|
||||
}
|
||||
],
|
||||
"title": "Save Video",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ver": "2.24.0",
|
||||
"Node name for S&R": "AUSBOSS_NODES_SaveVideo",
|
||||
"ausboss_save_video_loop": true
|
||||
},
|
||||
"widgets_values": {
|
||||
"fps": 24,
|
||||
"filename_prefix": "flashvsr_upscaled",
|
||||
"crf": 19,
|
||||
"format": "mp4 h264",
|
||||
"pingpong": false,
|
||||
"save_metadata": true
|
||||
},
|
||||
"widgets_values_named": {
|
||||
"fps": 24,
|
||||
"filename_prefix": "flashvsr_upscaled",
|
||||
"crf": 19,
|
||||
"format": "mp4 h264",
|
||||
"pingpong": false,
|
||||
"save_metadata": true,
|
||||
"ausboss_widget_card": "",
|
||||
"ausboss_save_video_viewer": ""
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "AUSBOSS_NODES_RunTimer",
|
||||
"pos": [
|
||||
1515,
|
||||
770
|
||||
],
|
||||
"size": [
|
||||
210,
|
||||
67
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Run Timer",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ver": "2.24.0",
|
||||
"Node name for S&R": "AUSBOSS_NODES_RunTimer"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
2,
|
||||
3,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
3,
|
||||
2,
|
||||
1,
|
||||
4,
|
||||
1,
|
||||
"AUDIO"
|
||||
],
|
||||
[
|
||||
4,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
3,
|
||||
"FLOAT"
|
||||
]
|
||||
],
|
||||
"groups": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "1 · Your video",
|
||||
"bounding": [
|
||||
480,
|
||||
0,
|
||||
460,
|
||||
880
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "2 · Make it larger",
|
||||
"bounding": [
|
||||
960,
|
||||
0,
|
||||
400,
|
||||
880
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "3 · Result",
|
||||
"bounding": [
|
||||
1380,
|
||||
0,
|
||||
480,
|
||||
880
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
}
|
||||
],
|
||||
"definitions": {
|
||||
"subgraphs": []
|
||||
},
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 0.73,
|
||||
"offset": [
|
||||
137,
|
||||
20
|
||||
]
|
||||
},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
950,
|
||||
310
|
||||
],
|
||||
"linkIds": [
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1370,
|
||||
310
|
||||
],
|
||||
"linkIds": [
|
||||
3,
|
||||
4
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -1706,7 +1706,7 @@
|
||||
"type": "SetLatentNoiseMask",
|
||||
"pos": [
|
||||
20,
|
||||
354
|
||||
398
|
||||
],
|
||||
"size": [
|
||||
460,
|
||||
@@ -1947,7 +1947,7 @@
|
||||
"type": "KSampler",
|
||||
"pos": [
|
||||
1100,
|
||||
304
|
||||
338
|
||||
],
|
||||
"size": [
|
||||
460,
|
||||
@@ -2325,7 +2325,7 @@
|
||||
0,
|
||||
0,
|
||||
500,
|
||||
428
|
||||
470
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2349,7 +2349,7 @@
|
||||
1080,
|
||||
0,
|
||||
500,
|
||||
586
|
||||
620
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2361,7 +2361,7 @@
|
||||
1620,
|
||||
0,
|
||||
500,
|
||||
529
|
||||
620
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2446,7 +2446,8 @@
|
||||
"origin_slot": 0,
|
||||
"target_id": 11,
|
||||
"target_slot": 0,
|
||||
"type": "CONDITIONING"
|
||||
"type": "CONDITIONING",
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 34,
|
||||
@@ -2553,7 +2554,19 @@
|
||||
"type": "IMAGE"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1060,
|
||||
540
|
||||
],
|
||||
"linkIds": [
|
||||
33
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2566,7 +2579,92 @@
|
||||
20
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1040,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
14
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1580,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
14
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1580,
|
||||
325
|
||||
],
|
||||
"linkIds": [
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"pos": [
|
||||
1562,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"pos": [
|
||||
1580,
|
||||
425
|
||||
],
|
||||
"linkIds": [
|
||||
11
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"pos": [
|
||||
1604,
|
||||
400
|
||||
],
|
||||
"linkIds": [
|
||||
12
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 14,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"parentId": 5
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"parentId": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
|
||||
@@ -1913,7 +1913,7 @@
|
||||
"The painted area, grown a little, is filled with flat gray, so Krea 2 knows where to paint. The plain crop goes along too."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "The painted area, grown a little, is filled with flat gray. Krea 2 never sees what you are replacing."
|
||||
"text": "The painted area, grown a little, is filled with flat gray, so Krea 2 knows where to paint. The plain crop goes along too."
|
||||
},
|
||||
"color": "#1f2c38",
|
||||
"bgcolor": "#2a3b4a"
|
||||
@@ -2769,7 +2769,7 @@
|
||||
"type": "KSampler",
|
||||
"pos": [
|
||||
1100,
|
||||
546
|
||||
646
|
||||
],
|
||||
"size": [
|
||||
460,
|
||||
@@ -3052,7 +3052,7 @@
|
||||
"The gray-filled crop is the reference. Painting starts from the plain crop, inside the noise mask: the painted area, widened by 24 px."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "The gray-filled crop is the reference. The noise mask is the grown painted area, widened by 24 px. Krea 2 paints only inside it."
|
||||
"text": "The gray-filled crop is the reference. Painting starts from the plain crop, inside the noise mask: the painted area, widened by 24 px."
|
||||
},
|
||||
"color": "#1f2c38",
|
||||
"bgcolor": "#2a3b4a"
|
||||
@@ -3088,8 +3088,8 @@
|
||||
"id": 37,
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
1100,
|
||||
450
|
||||
1082,
|
||||
510
|
||||
],
|
||||
"size": [
|
||||
75,
|
||||
@@ -3150,7 +3150,7 @@
|
||||
"id": 47,
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
1200,
|
||||
1118,
|
||||
450
|
||||
],
|
||||
"size": [
|
||||
@@ -3214,7 +3214,7 @@
|
||||
1080,
|
||||
0,
|
||||
500,
|
||||
828
|
||||
928
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -3226,7 +3226,7 @@
|
||||
1620,
|
||||
0,
|
||||
500,
|
||||
529
|
||||
600
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -3466,7 +3466,8 @@
|
||||
"type": "FLOAT"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -3479,7 +3480,117 @@
|
||||
96
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
964,
|
||||
350
|
||||
],
|
||||
"linkIds": [
|
||||
70
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pos": [
|
||||
976,
|
||||
410
|
||||
],
|
||||
"linkIds": [
|
||||
79
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
952,
|
||||
860
|
||||
],
|
||||
"linkIds": [
|
||||
71
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 3,
|
||||
"pos": [
|
||||
964,
|
||||
430
|
||||
],
|
||||
"linkIds": [
|
||||
71
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"pos": [
|
||||
1556,
|
||||
420
|
||||
],
|
||||
"linkIds": [
|
||||
73
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"pos": [
|
||||
1576,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
74
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"pos": [
|
||||
955,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
42
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"parentId": 7,
|
||||
"pos": [
|
||||
1564,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
42
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 70,
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 79,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 71,
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 73,
|
||||
"parentId": 5
|
||||
},
|
||||
{
|
||||
"id": 74,
|
||||
"parentId": 6
|
||||
},
|
||||
{
|
||||
"id": 42,
|
||||
"parentId": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2183,7 +2183,7 @@
|
||||
1080,
|
||||
0,
|
||||
500,
|
||||
529
|
||||
600
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2375,7 +2375,8 @@
|
||||
"type": "MASK"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2388,7 +2389,78 @@
|
||||
20
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
950,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1462,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1468,
|
||||
325
|
||||
],
|
||||
"linkIds": [
|
||||
43
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"pos": [
|
||||
1444,
|
||||
475
|
||||
],
|
||||
"linkIds": [
|
||||
50
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"pos": [
|
||||
1468,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
51
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 31,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 43,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 50,
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 51,
|
||||
"parentId": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -612,7 +612,7 @@
|
||||
"type": "2f8cb72f-ebab-4ed9-bb0c-328a4e6493d9",
|
||||
"pos": [
|
||||
1020,
|
||||
238
|
||||
380
|
||||
],
|
||||
"size": [
|
||||
240,
|
||||
@@ -2139,10 +2139,10 @@
|
||||
"title": "Note",
|
||||
"properties": {},
|
||||
"widgets_values": [
|
||||
"Blend in fades the model's picture into yours just inside its edge, with no tone shift. The new area stays as painted."
|
||||
"Blend in fades the model's picture into yours just inside its edge. Tone match is fully on, so the new area is adjusted to your picture's tone."
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"text": "Blend in fades the model's picture into yours just inside its edge, with no tone shift. The new area stays as painted."
|
||||
"text": "Blend in fades the model's picture into yours just inside its edge. Tone match is fully on, so the new area is adjusted to your picture's tone."
|
||||
},
|
||||
"color": "#1f2c38",
|
||||
"bgcolor": "#2a3b4a"
|
||||
@@ -2180,7 +2180,7 @@
|
||||
1080,
|
||||
0,
|
||||
500,
|
||||
529
|
||||
600
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2372,7 +2372,8 @@
|
||||
"type": "MASK"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2385,7 +2386,131 @@
|
||||
20
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
950,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1580,
|
||||
188
|
||||
],
|
||||
"linkIds": [
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
968,
|
||||
900
|
||||
],
|
||||
"linkIds": [
|
||||
48
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 3,
|
||||
"pos": [
|
||||
984,
|
||||
350
|
||||
],
|
||||
"linkIds": [
|
||||
48
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"pos": [
|
||||
1564,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
50
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"pos": [
|
||||
1596,
|
||||
400
|
||||
],
|
||||
"linkIds": [
|
||||
51
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"pos": [
|
||||
955,
|
||||
182
|
||||
],
|
||||
"linkIds": [
|
||||
44
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"pos": [
|
||||
955,
|
||||
194
|
||||
],
|
||||
"linkIds": [
|
||||
45
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"pos": [
|
||||
955,
|
||||
206
|
||||
],
|
||||
"linkIds": [
|
||||
46
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 31,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 48,
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 50,
|
||||
"parentId": 5
|
||||
},
|
||||
{
|
||||
"id": 51,
|
||||
"parentId": 6
|
||||
},
|
||||
{
|
||||
"id": 44,
|
||||
"parentId": 7
|
||||
},
|
||||
{
|
||||
"id": 45,
|
||||
"parentId": 8
|
||||
},
|
||||
{
|
||||
"id": 46,
|
||||
"parentId": 9
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -2785,7 +2785,7 @@
|
||||
1080,
|
||||
0,
|
||||
500,
|
||||
719
|
||||
780
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {}
|
||||
@@ -2990,7 +2990,8 @@
|
||||
"origin_slot": 0,
|
||||
"target_id": 19,
|
||||
"target_slot": 0,
|
||||
"type": "CONDITIONING"
|
||||
"type": "CONDITIONING",
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 147,
|
||||
@@ -2998,7 +2999,8 @@
|
||||
"origin_slot": 1,
|
||||
"target_id": 19,
|
||||
"target_slot": 1,
|
||||
"type": "CONDITIONING"
|
||||
"type": "CONDITIONING",
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 148,
|
||||
@@ -3065,7 +3067,29 @@
|
||||
"type": "FLOAT"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1080,
|
||||
900
|
||||
],
|
||||
"linkIds": [
|
||||
146
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pos": [
|
||||
1090,
|
||||
900
|
||||
],
|
||||
"linkIds": [
|
||||
147
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -3078,7 +3102,53 @@
|
||||
25
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1508,
|
||||
325
|
||||
],
|
||||
"linkIds": [
|
||||
63
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pos": [
|
||||
1476,
|
||||
475
|
||||
],
|
||||
"linkIds": [
|
||||
59
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1508,
|
||||
400
|
||||
],
|
||||
"linkIds": [
|
||||
60
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 63,
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 59,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 60,
|
||||
"parentId": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -1280,7 +1280,36 @@
|
||||
60
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1464,
|
||||
205
|
||||
],
|
||||
"linkIds": [
|
||||
5
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1924,
|
||||
205
|
||||
],
|
||||
"linkIds": [
|
||||
5
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 5,
|
||||
"parentId": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
|
||||
@@ -439,7 +439,7 @@
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
true,
|
||||
false,
|
||||
"stop the run",
|
||||
false,
|
||||
false,
|
||||
@@ -451,7 +451,7 @@
|
||||
"grow": 0,
|
||||
"soften": 0,
|
||||
"smooth": 0,
|
||||
"fill_holes": true,
|
||||
"fill_holes": false,
|
||||
"if_nothing": "stop the run",
|
||||
"free_vram": false,
|
||||
"invert": false,
|
||||
@@ -1135,7 +1135,64 @@
|
||||
60
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1504,
|
||||
205
|
||||
],
|
||||
"linkIds": [
|
||||
5
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1964,
|
||||
205
|
||||
],
|
||||
"linkIds": [
|
||||
5
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1508,
|
||||
441
|
||||
],
|
||||
"linkIds": [
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"pos": [
|
||||
1516,
|
||||
451
|
||||
],
|
||||
"linkIds": [
|
||||
3
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 5,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -1679,7 +1679,8 @@
|
||||
"origin_slot": 0,
|
||||
"target_id": 72,
|
||||
"target_slot": 1,
|
||||
"type": "IMAGE"
|
||||
"type": "IMAGE",
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
@@ -1706,7 +1707,19 @@
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1048,
|
||||
676
|
||||
],
|
||||
"linkIds": [
|
||||
6
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fe7eddff-ee33-40d2-98aa-e25b894fc34e",
|
||||
@@ -2713,7 +2726,8 @@
|
||||
"origin_slot": 4,
|
||||
"target_id": 66,
|
||||
"target_slot": 2,
|
||||
"type": "AUSBOSS_STITCHER"
|
||||
"type": "AUSBOSS_STITCHER",
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
@@ -2729,7 +2743,8 @@
|
||||
"origin_slot": 0,
|
||||
"target_id": 68,
|
||||
"target_slot": 1,
|
||||
"type": "IMAGE"
|
||||
"type": "IMAGE",
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
@@ -2780,7 +2795,51 @@
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
522,
|
||||
248
|
||||
],
|
||||
"linkIds": [
|
||||
29
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1600,
|
||||
248
|
||||
],
|
||||
"linkIds": [
|
||||
29
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
522,
|
||||
262
|
||||
],
|
||||
"linkIds": [
|
||||
27
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 3,
|
||||
"pos": [
|
||||
1600,
|
||||
262
|
||||
],
|
||||
"linkIds": [
|
||||
27
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2793,7 +2852,53 @@
|
||||
27
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1460,
|
||||
360
|
||||
],
|
||||
"linkIds": [
|
||||
35
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pos": [
|
||||
1444,
|
||||
500
|
||||
],
|
||||
"linkIds": [
|
||||
40
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1476,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
41
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 35,
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 40,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 41,
|
||||
"parentId": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -37,10 +37,10 @@
|
||||
"Node name for S&R": "AUSBOSS_NODES_WorkflowNote"
|
||||
},
|
||||
"widgets_values": [
|
||||
"{\"v\": 1, \"title\": \"Qwen Image 2.1 Inpaint\", \"subtitle\": \"Click a thing in your picture and say what to change. Only that part is repainted.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"1. Load your image. You can crop it right there with the blue handles.\\n2. On **Mask by Touch**, click the thing you want to change. It lights up before you click.\\n3. In **What to change**, say it the way you would ask a person: \\\"Replace the cup with a glass of orange juice.\\\"\\n4. Press **Run**.\\n\\nOnly the picked part is repainted. Everything outside it stays your own picture.\\n\\n### Tips\\n- Wrong thing picked? The arrows under the picture swap it for the next thing it could mean.\\n- Name everything that should go: \\\"the iced coffee and its straw\\\". What you do not name can stay.\\n- To remove something, pick it and write \\\"Remove the cup.\\\" Pick its shadow too, or the shadow stays.\\n- To add something, switch to **Paint** and paint where it should go, with some room. Say how big: \\\"Add small black sunglasses on her eyes.\\\"\\n- Not what you wanted? Run it again. The seed changes each run.\\n\\n### Switches\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA from the list below. Off: 25 steps without it, about twice as long.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.12.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"dir\": \"checkpoints\", \"size\": \"1.75 GB\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"note\": \"by Meta, packaged by Comfy-Org\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"optional, for Fast · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_MaskByTouch\"}], \"links\": [{\"label\": \"YouTube · this workflow\", \"url\": \"https://youtu.be/iMgaiXoB0v4\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
"{\"v\": 1, \"title\": \"Qwen Image 2.1 Inpaint\", \"subtitle\": \"Click a thing in your picture and say what to change. Only that part is repainted.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"1. Load your image. You can crop it right there with the blue handles.\\n2. On **Mask by Touch**, click the thing you want to change. It lights up before you click.\\n3. In **What to change**, say it the way you would ask a person: \\\"Replace the cup with a glass of orange juice.\\\"\\n4. Press **Run**.\\n\\nOnly the picked part is repainted. Everything outside it stays your own picture.\\n\\n### Tips\\n- Wrong thing picked? The arrows under the picture swap it for the next thing it could mean.\\n- Name everything that should go: \\\"the iced coffee and its straw\\\". What you do not name can stay.\\n- To remove something, pick it and write \\\"Remove the cup.\\\" Pick its shadow too, or the shadow stays.\\n- To add something, switch to **Paint** and paint where it should go, with some room. Say how big: \\\"Add small black sunglasses on her eyes.\\\"\\n- Not what you wanted? Change **Seed** and run it again. It stays fixed between runs.\\n\\n### Switches\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA from the list below. Off: 25 steps without it, about twice as long.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.12.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"dir\": \"checkpoints\", \"size\": \"1.75 GB\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"note\": \"by Meta, packaged by Comfy-Org\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"optional, for Fast · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_MaskByTouch\"}], \"links\": [{\"label\": \"YouTube · this workflow\", \"url\": \"https://youtu.be/iMgaiXoB0v4\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"note": "{\"v\": 1, \"title\": \"Qwen Image 2.1 Inpaint\", \"subtitle\": \"Click a thing in your picture and say what to change. Only that part is repainted.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"1. Load your image. You can crop it right there with the blue handles.\\n2. On **Mask by Touch**, click the thing you want to change. It lights up before you click.\\n3. In **What to change**, say it the way you would ask a person: \\\"Replace the cup with a glass of orange juice.\\\"\\n4. Press **Run**.\\n\\nOnly the picked part is repainted. Everything outside it stays your own picture.\\n\\n### Tips\\n- Wrong thing picked? The arrows under the picture swap it for the next thing it could mean.\\n- Name everything that should go: \\\"the iced coffee and its straw\\\". What you do not name can stay.\\n- To remove something, pick it and write \\\"Remove the cup.\\\" Pick its shadow too, or the shadow stays.\\n- To add something, switch to **Paint** and paint where it should go, with some room. Say how big: \\\"Add small black sunglasses on her eyes.\\\"\\n- Not what you wanted? Run it again. The seed changes each run.\\n\\n### Switches\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA from the list below. Off: 25 steps without it, about twice as long.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.12.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"dir\": \"checkpoints\", \"size\": \"1.75 GB\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"note\": \"by Meta, packaged by Comfy-Org\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"optional, for Fast · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_MaskByTouch\"}], \"links\": [{\"label\": \"YouTube · this workflow\", \"url\": \"https://youtu.be/iMgaiXoB0v4\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
"note": "{\"v\": 1, \"title\": \"Qwen Image 2.1 Inpaint\", \"subtitle\": \"Click a thing in your picture and say what to change. Only that part is repainted.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"1. Load your image. You can crop it right there with the blue handles.\\n2. On **Mask by Touch**, click the thing you want to change. It lights up before you click.\\n3. In **What to change**, say it the way you would ask a person: \\\"Replace the cup with a glass of orange juice.\\\"\\n4. Press **Run**.\\n\\nOnly the picked part is repainted. Everything outside it stays your own picture.\\n\\n### Tips\\n- Wrong thing picked? The arrows under the picture swap it for the next thing it could mean.\\n- Name everything that should go: \\\"the iced coffee and its straw\\\". What you do not name can stay.\\n- To remove something, pick it and write \\\"Remove the cup.\\\" Pick its shadow too, or the shadow stays.\\n- To add something, switch to **Paint** and paint where it should go, with some room. Say how big: \\\"Add small black sunglasses on her eyes.\\\"\\n- Not what you wanted? Change **Seed** and run it again. It stays fixed between runs.\\n\\n### Switches\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA from the list below. Off: 25 steps without it, about twice as long.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.12.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"dir\": \"checkpoints\", \"size\": \"1.75 GB\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"note\": \"by Meta, packaged by Comfy-Org\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"optional, for Fast · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_MaskByTouch\"}], \"links\": [{\"label\": \"YouTube · this workflow\", \"url\": \"https://youtu.be/iMgaiXoB0v4\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
@@ -1025,7 +1025,7 @@
|
||||
"type": "AUSBOSS_NODES_LoraLoader",
|
||||
"pos": [
|
||||
2288,
|
||||
1040.0
|
||||
1290
|
||||
],
|
||||
"size": [
|
||||
440,
|
||||
@@ -2005,9 +2005,9 @@
|
||||
"title": "3 · Models",
|
||||
"bounding": [
|
||||
1968,
|
||||
960.0,
|
||||
960,
|
||||
780,
|
||||
500.0
|
||||
540
|
||||
],
|
||||
"color": "#1d5560",
|
||||
"flags": {
|
||||
@@ -2550,7 +2550,7 @@
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
560,
|
||||
676.0
|
||||
640
|
||||
],
|
||||
"size": [
|
||||
75,
|
||||
@@ -2587,8 +2587,8 @@
|
||||
"id": 25,
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
560,
|
||||
772.0
|
||||
580,
|
||||
784
|
||||
],
|
||||
"size": [
|
||||
75,
|
||||
@@ -3094,7 +3094,8 @@
|
||||
"origin_slot": 0,
|
||||
"target_id": 26,
|
||||
"target_slot": 3,
|
||||
"type": "LATENT"
|
||||
"type": "LATENT",
|
||||
"parentId": 1
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
@@ -3241,7 +3242,19 @@
|
||||
"type": "IMAGE"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1060,
|
||||
640
|
||||
],
|
||||
"linkIds": [
|
||||
25
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f03669a3-61c2-44c8-ad63-bad928a695fa",
|
||||
@@ -3828,7 +3841,8 @@
|
||||
"type": "MASK"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -3841,7 +3855,106 @@
|
||||
60
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
954,
|
||||
36
|
||||
],
|
||||
"linkIds": [
|
||||
46,
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1945,
|
||||
36
|
||||
],
|
||||
"linkIds": [
|
||||
46,
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 2,
|
||||
"pos": [
|
||||
2768,
|
||||
36
|
||||
],
|
||||
"linkIds": [
|
||||
31
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"pos": [
|
||||
2768,
|
||||
300
|
||||
],
|
||||
"linkIds": [
|
||||
45
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"parentId": 4,
|
||||
"pos": [
|
||||
3208,
|
||||
300
|
||||
],
|
||||
"linkIds": [
|
||||
45
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"pos": [
|
||||
956,
|
||||
1030
|
||||
],
|
||||
"linkIds": [
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"pos": [
|
||||
962,
|
||||
980
|
||||
],
|
||||
"linkIds": [
|
||||
3
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 46,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 45,
|
||||
"parentId": 5
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 6
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"parentId": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -37,10 +37,10 @@
|
||||
"ver": "2.9.0"
|
||||
},
|
||||
"widgets_values": [
|
||||
"{\"v\": 1, \"title\": \"Qwen Image 2.1 Upscale + Restore\", \"subtitle\": \"Load a small, soft or worn picture. Qwen Image 2.1 redraws it sharp at the megapixels you set, in its own colors.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your image. You can crop it right there with the blue handles.\\n2. Set **Megapixels**: the size of the result.\\n3. Press **Run**.\\n4. Slide **Before and after** to compare. The result is saved as a PNG.\\n\\n### What you get\\n\\n- Your picture redrawn sharp, at the size you asked for.\\n- Its own colors, also on a noisy or faded photo.\\n\\n### Megapixels\\n\\n- Up to about 2: one pass.\\n- Over that: redrawn in tiles of about 2 megapixels and joined. 4 takes two tiles, 8 takes four.\\n- A small picture is redrawn at up to 8 times its own megapixels, then enlarged the plain way.\\n- A picture of 1 megapixel or more only looks better when it grows about 1.6 times per side.\\n\\n### Switches\\n\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA. Off: 25 steps without it, about three times as long.\\n\\n### Tips\\n\\n- It is a redraw. Fine detail is made up to fit, so a face stays the same person, not the same pixels.\\n- Small lettering on signs and labels can come back misspelled.\\n- Each tile is matched to your picture's colors. To let Qwen's own colors through, lower **Keep colors** inside the box.\\n- If the run stops at a red **LoRA Loader**, a LoRA that is switched on is missing. Download it from the list below.\\n- Not tested on blur from a moving camera or missed focus.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.9.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"qwen-image-2.1-restore.safetensors\", \"dir\": \"loras\", \"size\": \"159 MB\", \"url\": \"https://huggingface.co/ausboss/Qwen-Image-2.1-Restore-LoRA/resolve/main/qwen-image-2.1-restore.safetensors\", \"note\": \"keeps the result close to your picture\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"for Fast on · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_TiledUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
"{\"v\": 1, \"title\": \"Qwen Image 2.1 Upscale + Restore\", \"subtitle\": \"Load a small, soft or worn picture. Qwen Image 2.1 redraws it sharp at the megapixels you set, in its own colors.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your image. You can crop it right there with the blue handles.\\n2. Set **Megapixels**: the size of the result.\\n3. Press **Run**.\\n4. Slide **Before and after** to compare. The result is saved as a PNG.\\n\\n### What you get\\n\\n- Your picture redrawn sharp, at the size you asked for.\\n- Its own colors, also on a noisy or faded photo.\\n\\n### Megapixels\\n\\n- Up to about 2: one pass.\\n- Over that: redrawn in tiles of about 2 megapixels and joined. 4 takes two tiles, 8 takes four.\\n- The redraw limit for a small picture is 8 times its own megapixels or one roughly 2 megapixel tile, whichever is larger. The rest is enlarged the plain way.\\n- A picture of 1 megapixel or more only looks better when it grows about 1.6 times per side.\\n\\n### Switches\\n\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA. Off: 25 steps without it, about three times as long.\\n\\n### Tips\\n\\n- It is a redraw. Fine detail is made up to fit, so a face stays the same person, not the same pixels.\\n- Small lettering on signs and labels can come back misspelled.\\n- Each tile is matched to your picture's colors. To let Qwen's own colors through, lower **Keep colors** inside the box.\\n- If the run stops at a red **LoRA Loader**, a LoRA that is switched on is missing. Download it from the list below.\\n- Not tested on blur from a moving camera or missed focus.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.9.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"qwen-image-2.1-restore.safetensors\", \"dir\": \"loras\", \"size\": \"159 MB\", \"url\": \"https://huggingface.co/ausboss/Qwen-Image-2.1-Restore-LoRA/resolve/main/qwen-image-2.1-restore.safetensors\", \"note\": \"keeps the result close to your picture\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"for Fast on · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_TiledUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"note": "{\"v\": 1, \"title\": \"Qwen Image 2.1 Upscale + Restore\", \"subtitle\": \"Load a small, soft or worn picture. Qwen Image 2.1 redraws it sharp at the megapixels you set, in its own colors.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your image. You can crop it right there with the blue handles.\\n2. Set **Megapixels**: the size of the result.\\n3. Press **Run**.\\n4. Slide **Before and after** to compare. The result is saved as a PNG.\\n\\n### What you get\\n\\n- Your picture redrawn sharp, at the size you asked for.\\n- Its own colors, also on a noisy or faded photo.\\n\\n### Megapixels\\n\\n- Up to about 2: one pass.\\n- Over that: redrawn in tiles of about 2 megapixels and joined. 4 takes two tiles, 8 takes four.\\n- A small picture is redrawn at up to 8 times its own megapixels, then enlarged the plain way.\\n- A picture of 1 megapixel or more only looks better when it grows about 1.6 times per side.\\n\\n### Switches\\n\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA. Off: 25 steps without it, about three times as long.\\n\\n### Tips\\n\\n- It is a redraw. Fine detail is made up to fit, so a face stays the same person, not the same pixels.\\n- Small lettering on signs and labels can come back misspelled.\\n- Each tile is matched to your picture's colors. To let Qwen's own colors through, lower **Keep colors** inside the box.\\n- If the run stops at a red **LoRA Loader**, a LoRA that is switched on is missing. Download it from the list below.\\n- Not tested on blur from a moving camera or missed focus.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.9.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"qwen-image-2.1-restore.safetensors\", \"dir\": \"loras\", \"size\": \"159 MB\", \"url\": \"https://huggingface.co/ausboss/Qwen-Image-2.1-Restore-LoRA/resolve/main/qwen-image-2.1-restore.safetensors\", \"note\": \"keeps the result close to your picture\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"for Fast on · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_TiledUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
"note": "{\"v\": 1, \"title\": \"Qwen Image 2.1 Upscale + Restore\", \"subtitle\": \"Load a small, soft or worn picture. Qwen Image 2.1 redraws it sharp at the megapixels you set, in its own colors.\", \"author\": \"AusBoss\", \"layout\": \"card\", \"accent\": \"\", \"body\": \"[▶ AusBoss on YouTube](https://www.youtube.com/@ausbossdev) · videos on these nodes and workflows\\n\\n---\\n\\n1. Load your image. You can crop it right there with the blue handles.\\n2. Set **Megapixels**: the size of the result.\\n3. Press **Run**.\\n4. Slide **Before and after** to compare. The result is saved as a PNG.\\n\\n### What you get\\n\\n- Your picture redrawn sharp, at the size you asked for.\\n- Its own colors, also on a noisy or faded photo.\\n\\n### Megapixels\\n\\n- Up to about 2: one pass.\\n- Over that: redrawn in tiles of about 2 megapixels and joined. 4 takes two tiles, 8 takes four.\\n- The redraw limit for a small picture is 8 times its own megapixels or one roughly 2 megapixel tile, whichever is larger. The rest is enlarged the plain way.\\n- A picture of 1 megapixel or more only looks better when it grows about 1.6 times per side.\\n\\n### Switches\\n\\n- **Fast** on: 8 steps with the Viggle Turbo LoRA. Off: 25 steps without it, about three times as long.\\n\\n### Tips\\n\\n- It is a redraw. Fine detail is made up to fit, so a face stays the same person, not the same pixels.\\n- Small lettering on signs and labels can come back misspelled.\\n- Each tile is matched to your picture's colors. To let Qwen's own colors through, lower **Keep colors** inside the box.\\n- If the run stops at a red **LoRA Loader**, a LoRA that is switched on is missing. Download it from the list below.\\n- Not tested on blur from a moving camera or missed focus.\\n\\nNeeds ComfyUI 0.38 or newer and AusBoss nodes 2.9.0 or newer (update first).\", \"models\": [{\"name\": \"qwen_image_2.1_int8_convrot.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"7.26 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_8b_int8_convrot.safetensors\", \"dir\": \"text_encoders\", \"size\": \"9.35 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_2.1_vae_bf16.safetensors\", \"dir\": \"vae\", \"size\": \"676 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors\", \"note\": \"\"}, {\"name\": \"qwen-image-2.1-restore.safetensors\", \"dir\": \"loras\", \"size\": \"159 MB\", \"url\": \"https://huggingface.co/ausboss/Qwen-Image-2.1-Restore-LoRA/resolve/main/qwen-image-2.1-restore.safetensors\", \"note\": \"keeps the result close to your picture\"}, {\"name\": \"Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"dir\": \"loras\", \"size\": \"680 MB\", \"url\": \"https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/main/Qwen-Image-2.1-viggle-turbo-v0.3-6step-lora-r128.safetensors\", \"note\": \"for Fast on · Qwen Research License, research use\"}], \"packs\": [{\"name\": \"ComfyUI-AusBoss\", \"url\": \"https://github.com/ausboss/ComfyUI-AusBoss\", \"node\": \"AUSBOSS_NODES_TiledUpscale\"}], \"links\": [{\"label\": \"YouTube · ausbossdev\", \"url\": \"https://www.youtube.com/@ausbossdev\"}, {\"label\": \"GitHub · ausboss\", \"url\": \"https://github.com/ausboss\"}, {\"label\": \"Civitai · AusBoss\", \"url\": \"https://civitai.com/user/AusBoss\"}, {\"label\": \"X · Zanzibased\", \"url\": \"https://x.com/Zanzibased\"}]}"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
@@ -921,8 +921,8 @@
|
||||
"id": 11,
|
||||
"type": "AUSBOSS_NODES_LoraLoader",
|
||||
"pos": [
|
||||
1808,
|
||||
608
|
||||
1468,
|
||||
1072
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
@@ -2021,7 +2021,7 @@
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
560,
|
||||
394
|
||||
430
|
||||
],
|
||||
"size": [
|
||||
75,
|
||||
@@ -2059,7 +2059,7 @@
|
||||
"type": "Reroute",
|
||||
"pos": [
|
||||
560,
|
||||
460
|
||||
360
|
||||
],
|
||||
"size": [
|
||||
75,
|
||||
@@ -2096,11 +2096,11 @@
|
||||
"id": 20,
|
||||
"type": "KSampler",
|
||||
"pos": [
|
||||
560,
|
||||
640,
|
||||
546
|
||||
],
|
||||
"size": [
|
||||
460,
|
||||
380,
|
||||
262
|
||||
],
|
||||
"flags": {},
|
||||
@@ -2607,7 +2607,8 @@
|
||||
"type": "IMAGE"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2620,7 +2621,64 @@
|
||||
60
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
"frontendVersion": "1.53.6",
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
1428,
|
||||
210
|
||||
],
|
||||
"linkIds": [
|
||||
21
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
2248,
|
||||
210
|
||||
],
|
||||
"linkIds": [
|
||||
21
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
1820,
|
||||
400
|
||||
],
|
||||
"linkIds": [
|
||||
27
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"pos": [
|
||||
1860,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
28
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 21,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"parentId": 3
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"parentId": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1816,7 +1816,8 @@
|
||||
"type": "IMAGE"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
},
|
||||
{
|
||||
"id": "a988ba93-208b-4af3-b721-61365d1292ac",
|
||||
@@ -2612,7 +2613,8 @@
|
||||
"type": "IMAGE"
|
||||
}
|
||||
],
|
||||
"extra": {}
|
||||
"extra": {},
|
||||
"reroutes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2624,7 +2626,111 @@
|
||||
137,
|
||||
20
|
||||
]
|
||||
}
|
||||
},
|
||||
"reroutes": [
|
||||
{
|
||||
"id": 1,
|
||||
"pos": [
|
||||
940,
|
||||
34
|
||||
],
|
||||
"linkIds": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"parentId": 1,
|
||||
"pos": [
|
||||
1420,
|
||||
34
|
||||
],
|
||||
"linkIds": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pos": [
|
||||
940,
|
||||
38
|
||||
],
|
||||
"linkIds": [
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"parentId": 3,
|
||||
"pos": [
|
||||
1780,
|
||||
38
|
||||
],
|
||||
"linkIds": [
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"pos": [
|
||||
940,
|
||||
42
|
||||
],
|
||||
"linkIds": [
|
||||
14
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"parentId": 5,
|
||||
"pos": [
|
||||
1780,
|
||||
42
|
||||
],
|
||||
"linkIds": [
|
||||
14
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"pos": [
|
||||
934,
|
||||
450
|
||||
],
|
||||
"linkIds": [
|
||||
15
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"parentId": 7,
|
||||
"pos": [
|
||||
942,
|
||||
700
|
||||
],
|
||||
"linkIds": [
|
||||
15
|
||||
]
|
||||
}
|
||||
],
|
||||
"linkExtensions": [
|
||||
{
|
||||
"id": 1,
|
||||
"parentId": 2
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"parentId": 4
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"parentId": 6
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"parentId": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
// App mode for nodes with cards: the simple form view shows a real control
|
||||
// for each field instead of an empty row. The logic is in
|
||||
// js/shared/app_mode.mjs; this file watches which mode the open workflow is
|
||||
// in and hands the fields over.
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { APP_MODE, appFields, createAppModeSync, formHostSelector, workflowMode } from "../shared/app_mode.mjs";
|
||||
|
||||
const sync = createAppModeSync({
|
||||
find(nodeId, name) {
|
||||
const graph = app.rootGraph ?? app.graph;
|
||||
const node = graph?.getNodeById?.(/^\d+$/.test(nodeId) ? Number(nodeId) : nodeId);
|
||||
const widget = node?.widgets?.find((entry) => entry.name === name);
|
||||
return widget ? { node, widget } : null;
|
||||
},
|
||||
changed(node) {
|
||||
node.setDirtyCanvas?.(true, true);
|
||||
},
|
||||
});
|
||||
|
||||
function findWidget(nodeId, name) {
|
||||
const graph = app.rootGraph ?? app.graph;
|
||||
const node = graph?.getNodeById?.(/^\d+$/.test(nodeId) ? Number(nodeId) : nodeId);
|
||||
return node?.widgets?.find((entry) => entry.name === name) ?? null;
|
||||
}
|
||||
|
||||
// A DOM widget the form lists goes into its row, and back again if the
|
||||
// graph's widget layer took it (see formHostSelector). Rows mount whenever
|
||||
// the form draws, which can be well after the mode changes, so while a
|
||||
// workflow is in App mode the page is watched and an empty row is filled
|
||||
// on the next frame.
|
||||
function rehomeDomWidgets() {
|
||||
const workflow = app.extensionManager?.workflow?.activeWorkflow;
|
||||
if (workflowMode(workflow) !== APP_MODE) return;
|
||||
for (const { nodeId, widget: name } of appFields((app.rootGraph ?? app.graph)?.extra?.linearData)) {
|
||||
const element = findWidget(nodeId, name)?.element;
|
||||
if (!(element instanceof HTMLElement)) continue;
|
||||
const host = document.querySelector(formHostSelector(nodeId, name));
|
||||
if (!host || host.contains(element)) continue;
|
||||
// Something that keeps taking it back: stop rather than fight.
|
||||
const now = Date.now();
|
||||
moves = moves.filter((at) => now - at < 3000);
|
||||
if (moves.length >= 30) return;
|
||||
moves.push(now);
|
||||
host.replaceChildren(element);
|
||||
}
|
||||
}
|
||||
|
||||
let moves = [];
|
||||
let watcher = null;
|
||||
let framed = false;
|
||||
function watchForm(on) {
|
||||
if (!on) {
|
||||
watcher?.disconnect();
|
||||
watcher = null;
|
||||
return;
|
||||
}
|
||||
if (!watcher) {
|
||||
watcher = new MutationObserver(() => {
|
||||
if (framed) return;
|
||||
framed = true;
|
||||
requestAnimationFrame(() => {
|
||||
framed = false;
|
||||
try { rehomeDomWidgets(); } catch (error) { console.warn("[AusBoss] App mode fields:", error); }
|
||||
});
|
||||
});
|
||||
watcher.observe(document.body, { childList: true, subtree: true });
|
||||
}
|
||||
rehomeDomWidgets();
|
||||
}
|
||||
|
||||
let queued = false;
|
||||
// After the current task: a card hides its widgets in a microtask once the
|
||||
// node has loaded, and the form's fields are shown after that.
|
||||
function schedule() {
|
||||
if (queued) return;
|
||||
queued = true;
|
||||
setTimeout(() => {
|
||||
queued = false;
|
||||
try {
|
||||
const workflow = app.extensionManager?.workflow?.activeWorkflow;
|
||||
const mode = workflowMode(workflow);
|
||||
sync(mode, (app.rootGraph ?? app.graph)?.extra?.linearData);
|
||||
watchForm(mode === APP_MODE);
|
||||
} catch (error) {
|
||||
console.warn("[AusBoss] App mode fields:", error);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: "ausboss.app.mode",
|
||||
setup() {
|
||||
app.extensionManager?.workflow?.$subscribe?.(schedule);
|
||||
},
|
||||
afterConfigureGraph() {
|
||||
schedule();
|
||||
},
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
import { app } from "/scripts/app.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import {
|
||||
CUSTOM_SCHEME,
|
||||
DEFAULT_SCHEME,
|
||||
@@ -23,6 +23,7 @@ import { openInfoCard } from "../shared/settings_menu.mjs";
|
||||
|
||||
const SETTING_ID = "AusBoss.Appearance.NodeColor";
|
||||
const CUSTOM_SETTING_ID = "AusBoss.Appearance.CustomColor";
|
||||
const COLOR_OVERRIDE = "ausbossColor";
|
||||
|
||||
// Stored bare (no "#") to match the color setting's storage contract.
|
||||
const DEFAULT_CUSTOM_COLOR = "00b4aa";
|
||||
@@ -40,6 +41,7 @@ let activeCustomColor = DEFAULT_CUSTOM_COLOR;
|
||||
let activeCustomTitle = normalizeHexColor(DEFAULT_CUSTOM_COLOR);
|
||||
|
||||
function setActiveCustomColor(value) {
|
||||
if (!normalizeHexColor(value)) return;
|
||||
activeCustomColor = value;
|
||||
activeCustomTitle = normalizeHexColor(value);
|
||||
}
|
||||
@@ -56,6 +58,7 @@ function applyScheme(node, colors) {
|
||||
function repaintAll(next, previous) {
|
||||
for (const node of collectGraphNodes(app.graph)) {
|
||||
if (!isAusbossNode(node)) continue;
|
||||
if (Object.hasOwn(node.properties ?? {}, COLOR_OVERRIDE)) continue;
|
||||
if (!shouldRecolor(node, previous)) continue;
|
||||
applyScheme(node, next);
|
||||
}
|
||||
@@ -149,8 +152,8 @@ app.registerExtension({
|
||||
},
|
||||
getNodeMenuItems(node) {
|
||||
if (!isAusbossNode(node)) return [];
|
||||
// A title-less node has no bar for the "?" badge; its card opens here.
|
||||
const about = isTitleless(node)
|
||||
// Vue nodes skip the canvas badge callbacks; title-less nodes have no bar.
|
||||
const about = isTitleless(node) || globalThis.LiteGraph?.vueNodesMode === true
|
||||
? [{ content: "About this node", callback: () => openHelpCard(node, null) }]
|
||||
: [];
|
||||
return [
|
||||
@@ -162,12 +165,14 @@ app.registerExtension({
|
||||
options: SCHEME_NAMES.map((name) => ({
|
||||
content: name,
|
||||
callback: () => {
|
||||
// A menu pick writes the colors directly; shouldRecolor then
|
||||
// treats them as the user's choice during setting sweeps.
|
||||
// Keep an explicit choice, including no colors, through saves
|
||||
// and setting changes. Custom stores the pair picked today.
|
||||
const colors = schemeColors(name, activeCustomColor);
|
||||
// Custom with an unusable stored color resolves to null, which
|
||||
// would wrongly read as "Theme default" — do nothing instead.
|
||||
if (name === CUSTOM_SCHEME && !colors) return;
|
||||
node.properties ??= {};
|
||||
node.properties[COLOR_OVERRIDE] = colors ? { ...colors } : null;
|
||||
applyScheme(node, colors);
|
||||
app.graph?.setDirtyCanvas?.(true, true);
|
||||
},
|
||||
@@ -179,18 +184,28 @@ app.registerExtension({
|
||||
nodeCreated(node) {
|
||||
if (!isAusbossNode(node)) return;
|
||||
installHelpBadge(node);
|
||||
// Colors restored from a saved workflow (and manual picks) land before
|
||||
// this hook runs — an already-colored node is left alone, unless it
|
||||
// wears a retired flagship pair: those colors were ours, so the node
|
||||
// upgrades to the active scheme instead of keeping them forever.
|
||||
if ((node.color || node.bgcolor) && !wearsLegacyScheme(node)) return;
|
||||
const colors = schemeColors(activeScheme, activeCustomColor);
|
||||
if (colors) applyScheme(node, colors);
|
||||
restoreAppearance(node);
|
||||
// Construction precedes saved fields; reload, paste and undo restore
|
||||
// their colors and properties before this callback runs.
|
||||
chainCallback(node, "onConfigure", function (saved) {
|
||||
restoreAppearance(this, saved);
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
function restoreAppearance(node, saved) {
|
||||
if (Object.hasOwn(node.properties ?? {}, COLOR_OVERRIDE)) {
|
||||
// A later pick in ComfyUI's own color menu is saved in the native fields.
|
||||
if (saved?.color || saved?.bgcolor) return;
|
||||
applyScheme(node, node.properties[COLOR_OVERRIDE]);
|
||||
return;
|
||||
}
|
||||
if ((node.color || node.bgcolor) && !wearsLegacyScheme(node)) return;
|
||||
applyScheme(node, schemeColors(activeScheme, activeCustomColor));
|
||||
}
|
||||
|
||||
function isTitleless(node) {
|
||||
return node.constructor?.title_mode === (globalThis.LiteGraph?.NO_TITLE ?? 1);
|
||||
return (node.title_mode ?? node.constructor?.title_mode) === (globalThis.LiteGraph?.NO_TITLE ?? 1);
|
||||
}
|
||||
|
||||
function openHelpCard(node, event) {
|
||||
@@ -204,15 +219,13 @@ function openHelpCard(node, event) {
|
||||
});
|
||||
}
|
||||
|
||||
// Every AusBoss node gets a quiet "?" in the title bar; clicking it opens a
|
||||
// card built from the node's own DESCRIPTION and tooltips, so the docs on
|
||||
// screen are exactly the docs in the source.
|
||||
// Classic nodes get a quiet "?" in the title bar. Vue nodes open the same
|
||||
// card from their context menu. Its text comes from DESCRIPTION and tooltips.
|
||||
function installHelpBadge(node) {
|
||||
// A title-less node (Run Timer) has no bar to hang the badge on; its
|
||||
// card opens from the node's context menu instead.
|
||||
if (isTitleless(node)) return;
|
||||
chainCallback(node, "onDrawForeground", function (ctx) {
|
||||
if (!showBadge(this.size?.[0] ?? 0, this.flags?.collapsed)) return;
|
||||
if (isTitleless(this) || !showBadge(this.size?.[0] ?? 0, this.flags?.collapsed)) return;
|
||||
const [x, y] = badgeCenter(this.size[0]);
|
||||
ctx.save();
|
||||
ctx.beginPath();
|
||||
@@ -228,7 +241,7 @@ function installHelpBadge(node) {
|
||||
ctx.restore();
|
||||
});
|
||||
chainHandler(node, "onMouseDown", function (event, pos) {
|
||||
if (!showBadge(this.size?.[0] ?? 0, this.flags?.collapsed)) return false;
|
||||
if (isTitleless(this) || !showBadge(this.size?.[0] ?? 0, this.flags?.collapsed)) return false;
|
||||
if (!pos || !hitsBadge(pos, this.size[0])) return false;
|
||||
openHelpCard(this, event);
|
||||
return true; // consume the click so it does not start a drag
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
//
|
||||
// Imports nothing from ../shared on purpose. Old cached copies of those files
|
||||
// are the problem this entry has to survive.
|
||||
import { api } from "/scripts/api.js";
|
||||
import { app } from "/scripts/app.js";
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
const PACK_URL = new URL("../", import.meta.url).href;
|
||||
const PARALLEL = 6;
|
||||
@@ -49,6 +49,25 @@ function askForReload(installed) {
|
||||
}
|
||||
}
|
||||
|
||||
// "2.26.2" -> [2, 26, 2]. Anything else, such as "unknown", is null.
|
||||
function parseVersion(version) {
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(typeof version === "string" ? version : "");
|
||||
return match ? match.slice(1).map(Number) : null;
|
||||
}
|
||||
|
||||
// Only a server newer than the page means this tab runs old files. The page
|
||||
// is newer when the Manager switched the pack on disk and the page was
|
||||
// reloaded before ComfyUI restarted, and then a restart is what is needed.
|
||||
// Two version numbers cannot tell that apart from a downgrade with the tab
|
||||
// left open, which needs a reload, so in that case the guard says nothing.
|
||||
function serverIsNewer(installed, running) {
|
||||
const server = parseVersion(installed);
|
||||
const page = parseVersion(running);
|
||||
if (!server || !page) return false;
|
||||
const step = server.findIndex((part, index) => part !== page[index]);
|
||||
return step >= 0 && server[step] > page[step];
|
||||
}
|
||||
|
||||
// The installed version this page already asked a reload for. A server that
|
||||
// drops and comes back several times must not stack the same message.
|
||||
let asked = null;
|
||||
@@ -58,7 +77,7 @@ async function check() {
|
||||
try {
|
||||
const installed = (await (await api.fetchApi("/ausboss/pack_version")).json())?.version;
|
||||
const running = await runningVersion();
|
||||
if (!installed || installed === "unknown" || !running || installed === running || installed === asked) return;
|
||||
if (!serverIsNewer(installed, running) || installed === asked) return;
|
||||
asked = installed;
|
||||
const listing = await (await api.fetchApi("/ausboss/pack_modules")).json();
|
||||
await refreshModules(Array.isArray(listing?.modules) ? listing.modules : []);
|
||||
|
||||
@@ -6,28 +6,36 @@
|
||||
// and copy ride the default path); the panel only shows it. Decisions live in
|
||||
// js/shared/callout.mjs under node:test.
|
||||
|
||||
import { app } from "/scripts/app.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { setTileFace, TILE_FACE_CSS } from "../shared/tile_face.mjs";
|
||||
import { CALLOUT_TYPES, serializeNoteIdentity } from "../shared/note_identity.mjs";
|
||||
import { BRAND, chainCallback, keepDomWidgetWidthAuto } from "../shared/index.mjs";
|
||||
import {
|
||||
ARROW_ANGLE,
|
||||
ARROW_CHOICES,
|
||||
CARD_TEMPLATE,
|
||||
DOUBLE_ARROWS,
|
||||
arrowText,
|
||||
fitFontSize,
|
||||
parseBlocks,
|
||||
parseCard,
|
||||
pastedLink,
|
||||
repointLinks,
|
||||
targetId,
|
||||
toggleSmall,
|
||||
tileLinkFields,
|
||||
tileLinkText,
|
||||
urlLabel,
|
||||
wrapLink,
|
||||
} from "../shared/callout.mjs";
|
||||
import { onPaste } from "../shared/paste_ids.mjs";
|
||||
import { keepKeyInField } from "../shared/canvas_passthrough.mjs";
|
||||
import { WIDGET_FRAME, fillNodeHeight } from "../shared/panel_layout.mjs";
|
||||
import { hideInputsInDef, hideWidget } from "../shared/widget_visibility.mjs";
|
||||
import { commitWidgetValue } from "../shared/widget_card_math.mjs";
|
||||
import { compactAction } from "../shared/panel_controls.mjs";
|
||||
import { frameBounds } from "../shared/workflow_switches.mjs";
|
||||
|
||||
const NODE_CLASS = "AUSBOSS_NODES_Callout";
|
||||
const CSS_ID = "ausboss-callout-css";
|
||||
const WIDGET_NAME = "ausboss_callout_panel";
|
||||
const DEFAULT_SIZE = [380, 160];
|
||||
@@ -35,6 +43,14 @@ const PANEL_MIN_WIDTH = 200;
|
||||
const PANEL_MIN_HEIGHT = 64;
|
||||
const SVG_NS = "http://www.w3.org/2000/svg";
|
||||
const ARROW_COLOR = "#1fd3c6";
|
||||
const LINK_TILES = {
|
||||
youtube: { label: "Watch Me on YouTube", url: "https://www.youtube.com/@ausbossdev" },
|
||||
discord: { label: "Join for Help or More Workflows", url: "https://discord.gg/RwVxY9Fuaj" },
|
||||
};
|
||||
// A new Info card opens at this size, which shows its starter text whole.
|
||||
const CARD_SIZE = [300, 230];
|
||||
// The card's text grows with the node like a note's, but a card stays a card.
|
||||
const CARD_FONT_MAX = 20;
|
||||
const FRAME_FILL = 0.8; // the share of the view a node brought into view takes, as in Workflow Switches
|
||||
const FONT = '"IBM Plex Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif';
|
||||
|
||||
@@ -53,6 +69,7 @@ function ensureCss() {
|
||||
const style = document.createElement("style");
|
||||
style.id = CSS_ID;
|
||||
style.textContent = `
|
||||
${TILE_FACE_CSS}
|
||||
.ausboss-callout{box-sizing:border-box;width:100%;height:100%;padding:2px 4px 6px;overflow:hidden;pointer-events:none;}
|
||||
.ausboss-callout-card{position:relative;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,rgba(0,180,170,.07),rgba(0,0,0,.2));}
|
||||
.ausboss-callout-inner{position:absolute;top:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:fit-content;margin:auto 0;padding:.6em 1em .6em .85em;color:#d6e6e4;font-family:${FONT};font-weight:500;line-height:1.4;letter-spacing:.003em;overflow-wrap:anywhere;}
|
||||
@@ -61,6 +78,29 @@ function ensureCss() {
|
||||
.ausboss-callout-point b{color:#6fe0d6;font-weight:650;}
|
||||
.ausboss-callout-small{margin-top:.3em;color:#9fb5b2;font-size:max(11px,.62em);font-weight:400;line-height:1.4;}
|
||||
.ausboss-callout-small b{color:#8fd6cf;font-weight:600;}
|
||||
.ausboss-callout-card[data-tile=youtube]{background:#ae2639}
|
||||
.ausboss-callout-card[data-tile=discord]{background:#5146aa}
|
||||
.ausboss-callout-card[data-tile=title]{background:#090909;border-left:4px solid #21c7b9}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-inner{padding-block:.15em;}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-point{border:0;padding:0;margin:0;font-weight:650;color:#fff}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-url{color:white;text-decoration:none;display:flex;align-items:center;gap:12px}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-url svg{width:36px;height:28px;flex:none}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-out{margin-left:auto}
|
||||
.ausboss-callout-card[data-tile] .ausboss-callout-tools{right:27px;}
|
||||
.ausboss-callout-card[data-card]{background:#111818;border:1px solid #2e3c3b;}
|
||||
.ausboss-callout-card[data-card] .ausboss-callout-inner{padding:.8em 1em;color:#d9e4e3;font-weight:400;line-height:1.45;}
|
||||
.ausboss-callout-card[data-card] b{color:#f2f7f6;font-weight:650;}
|
||||
.ausboss-callout-block{margin:0 0 .85em;}
|
||||
.ausboss-callout-block:last-child{margin-bottom:0;}
|
||||
.ausboss-callout-block>*+*{margin-top:.3em;}
|
||||
.ausboss-callout-title{display:flex;align-items:center;gap:.4em;color:#f2f7f6;font-size:1.08em;font-weight:650;}
|
||||
.ausboss-callout-icon{flex:none;width:1em;height:1em;color:#c9d6d4;}
|
||||
.ausboss-callout-icon svg{display:block;width:100%;height:100%;}
|
||||
.ausboss-callout-row{display:flex;justify-content:space-between;align-items:baseline;gap:1em;}
|
||||
.ausboss-callout-row>span:last-child{flex:none;text-align:right;white-space:nowrap;}
|
||||
.ausboss-callout-row.is-mark,.ausboss-callout-row.is-mark b{color:#6fe0d6;font-weight:500;}
|
||||
.ausboss-card-small,.ausboss-card-small b{color:#93a6a4;}
|
||||
.ausboss-card-small{font-size:.92em;}
|
||||
.ausboss-callout-empty{color:#6f8987;font-size:14px;font-weight:400;}
|
||||
.ausboss-callout-arrow{display:inline-block;width:1.2em;height:1.2em;margin:0 .1em;vertical-align:-.26em;filter:drop-shadow(0 0 .3em rgba(0,180,170,.55));}
|
||||
.ausboss-callout-arrow svg{display:block;width:100%;height:100%;overflow:visible;}
|
||||
@@ -73,7 +113,7 @@ function ensureCss() {
|
||||
.ausboss-callout-out{display:inline-block;margin-left:.2em;font-size:.7em;font-weight:600;vertical-align:.14em;text-decoration:none;opacity:.85;}
|
||||
.ausboss-callout-jump.is-gone{opacity:.45;cursor:default;text-decoration-style:dotted;}
|
||||
.ausboss-callout-tools{position:absolute;top:5px;right:5px;display:flex;gap:4px;opacity:0;transition:opacity .15s;pointer-events:auto;}
|
||||
.ausboss-callout-card:hover .ausboss-callout-tools,.ausboss-callout.is-selected .ausboss-callout-tools{opacity:.95;}
|
||||
.ausboss-callout-card:is(:hover,:focus-within) .ausboss-callout-tools,.ausboss-callout.is-selected .ausboss-callout-tools{opacity:.95;}
|
||||
.ausboss-callout-tool{height:22px;padding:0 8px;border:1px solid rgba(0,180,170,.45);border-radius:5px;background:rgba(8,14,16,.86);color:#9fd8d3;font:600 11px ${FONT};letter-spacing:.02em;cursor:pointer;}
|
||||
.ausboss-callout-tool:hover{color:#fff;border-color:${BRAND};}
|
||||
.ausboss-callout-editor{position:absolute;inset:0;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;padding:6px;border:1px solid ${BRAND};border-radius:8px;background:rgba(5,10,11,.95);pointer-events:auto;container-type:size;}
|
||||
@@ -88,6 +128,17 @@ function ensureCss() {
|
||||
.ausboss-callout-pick svg{display:block;width:100%;height:100%;}
|
||||
.ausboss-callout-size{flex:none;height:24px;margin-left:4px;padding:0 7px;border:1px solid rgba(0,180,170,.35);border-radius:5px;background:rgba(8,14,16,.9);color:#9fd8d3;font:600 11px ${FONT};cursor:pointer;}
|
||||
.ausboss-callout-size:hover{border-color:${BRAND};background:rgba(0,180,170,.14);}
|
||||
.ausboss-tile-editor{box-sizing:border-box;width:min(520px,94vw);max-height:86vh;overflow:auto;margin:auto;padding:24px;border:1px solid #365957;border-top:3px solid ${BRAND};border-radius:10px;background:#111b1c;color:#e6f4f3;box-shadow:0 18px 64px #0008;font:14px/1.5 ${FONT};}
|
||||
.ausboss-tile-editor::backdrop{background:#06090ab8;}
|
||||
.ausboss-tile-editor h2{margin:0 0 18px;font-size:21px;}
|
||||
.ausboss-tile-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-weight:600;}
|
||||
.ausboss-tile-editor input,.ausboss-tile-editor textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #365957;border-radius:5px;background:#080e10;color:#e6f4f3;font:16px/1.5 ${FONT};user-select:text;}
|
||||
.ausboss-tile-editor textarea{min-height:120px;resize:vertical;}
|
||||
.ausboss-tile-editor :is(input,textarea):focus{outline:2px solid ${BRAND};outline-offset:1px;}
|
||||
.ausboss-tile-editor footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;}
|
||||
.ausboss-tile-editor footer span{margin-right:auto;color:#99b0ad;font-size:12px;}
|
||||
.ausboss-tile-editor .ausboss-compact-action{height:32px;padding:0 15px;font-size:13px;}
|
||||
.ausboss-tile-editor .ausboss-tile-error{color:#ffc36d;margin:0 0 12px;}
|
||||
@container (max-width:395px){.ausboss-callout-arrowbar>span:first-child,.ausboss-callout-link:not(.has-node){display:none;}}
|
||||
@container (max-width:395px) and (min-height:112px){.ausboss-callout-arrowbar{flex-wrap:wrap;}.ausboss-callout-pick{flex:none;}}
|
||||
`;
|
||||
@@ -123,6 +174,25 @@ function arrowIcon(kind) {
|
||||
return root;
|
||||
}
|
||||
|
||||
// The small line icons an Info card's title can start with.
|
||||
const CARD_ICON_PATHS = {
|
||||
clock: ["M12 7v5l3.2 2"],
|
||||
info: ["M12 11v6", "M12 7.6v.01"],
|
||||
warning: ["M12 3.5 2.8 19.5h18.4Z", "M12 10v4", "M12 16.9v.01"],
|
||||
tip: ["M9.5 18h5", "M10.5 21h3", "M12 3a6 6 0 0 0-3.6 10.8c.7.6 1.1 1.3 1.1 2.2h5c0-.9.4-1.6 1.1-2.2A6 6 0 0 0 12 3Z"],
|
||||
check: ["M8 12.4l2.8 2.8 5.2-5.6"],
|
||||
};
|
||||
const CARD_ICON_RING = new Set(["clock", "info", "check"]);
|
||||
|
||||
function cardIcon(kind) {
|
||||
const span = el("span", "ausboss-callout-icon");
|
||||
const root = svg("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" });
|
||||
if (CARD_ICON_RING.has(kind)) root.append(svg("circle", { cx: 12, cy: 12, r: 9 }));
|
||||
for (const d of CARD_ICON_PATHS[kind] ?? []) root.append(svg("path", { d }));
|
||||
span.append(root);
|
||||
return span;
|
||||
}
|
||||
|
||||
// The node a link names, looked up in the graph the note sits in.
|
||||
function linkedNode(state, id) {
|
||||
const graph = state.node.graph ?? app.graph;
|
||||
@@ -175,6 +245,18 @@ function arrowSpan(state, kind, piece = {}) {
|
||||
function linkRun(state, first) {
|
||||
if (first.url !== undefined) {
|
||||
const link = el("a", "ausboss-callout-url");
|
||||
const tile = state.card.dataset.tile;
|
||||
if (tile === "youtube" || tile === "discord") {
|
||||
const icon = svg("svg", { viewBox:"0 0 28 20", "aria-hidden":"true" });
|
||||
if (tile === "youtube") {
|
||||
icon.append(svg("rect",{x:0,y:1,width:28,height:18,rx:5,fill:"white"}),
|
||||
svg("path",{d:"M11 5.5 19 10 11 14.5Z",fill:"#ae2639"}));
|
||||
} else {
|
||||
icon.append(svg("path",{d:"M4 3 10 1l1 2a15 15 0 0 1 6 0l1-2 6 2c2 4 3 8 3 12l-6 4-2-3a17 17 0 0 1-10 0l-2 3-6-4c0-4 1-8 3-12Z",fill:"white"}));
|
||||
for (const cx of [9,19]) icon.append(svg("ellipse",{cx,cy:10,rx:2,ry:2.6,fill:"#5146aa"}));
|
||||
}
|
||||
link.append(icon);
|
||||
}
|
||||
link.href = first.url;
|
||||
link.target = "_blank";
|
||||
link.rel = "noopener noreferrer";
|
||||
@@ -219,13 +301,79 @@ function bringIntoView(target) {
|
||||
}
|
||||
}
|
||||
|
||||
// One line's pieces into an element. The pieces of one link sit in one
|
||||
// element; a link that leaves ComfyUI ends with a small ↗.
|
||||
function appendPieces(state, into, line) {
|
||||
let run = null;
|
||||
let wrap = null;
|
||||
const close = () => {
|
||||
if (wrap?.classList.contains("ausboss-callout-url")) wrap.append(el("span", "ausboss-callout-out", "↗"));
|
||||
};
|
||||
for (const piece of line) {
|
||||
if (piece.run !== run) {
|
||||
close();
|
||||
run = piece.run;
|
||||
wrap = run === undefined ? null : linkRun(state, piece);
|
||||
if (wrap) into.append(wrap);
|
||||
}
|
||||
const target = wrap ?? into;
|
||||
if (piece.arrow) target.append(arrowSpan(state, piece.arrow, piece));
|
||||
else target.append(piece.bold ? el("b", "", piece.text) : document.createTextNode(piece.text));
|
||||
}
|
||||
close();
|
||||
}
|
||||
|
||||
// An Info card: a title, rows of label and value, and small print.
|
||||
function renderCard(state, blocks) {
|
||||
for (const lines of blocks) {
|
||||
const block = el("div", "ausboss-callout-block");
|
||||
for (const line of lines) {
|
||||
let row;
|
||||
if (line.kind === "title") {
|
||||
row = el("div", "ausboss-callout-title");
|
||||
if (line.icon) row.append(cardIcon(line.icon));
|
||||
const words = el("span");
|
||||
appendPieces(state, words, line.pieces);
|
||||
row.append(words);
|
||||
} else if (line.kind === "row") {
|
||||
row = el("div", `ausboss-callout-row${line.highlight ? " is-mark" : ""}`);
|
||||
for (const cell of line.cells) {
|
||||
const side = el("span");
|
||||
appendPieces(state, side, cell);
|
||||
row.append(side);
|
||||
}
|
||||
} else {
|
||||
row = el("div", "ausboss-card-text");
|
||||
appendPieces(state, row, line.pieces);
|
||||
}
|
||||
if (line.small) row.classList.add("ausboss-card-small");
|
||||
block.append(row);
|
||||
}
|
||||
state.inner.append(block);
|
||||
}
|
||||
}
|
||||
|
||||
function renderText(state) {
|
||||
const blocks = parseBlocks(state.valueWidget.value);
|
||||
const style = state.node.properties?.ausbossCalloutTile;
|
||||
if (["youtube","discord","title"].includes(style)) state.card.dataset.tile = style;
|
||||
else delete state.card.dataset.tile;
|
||||
// An Info card has no title bar, like a tile, but keeps the full editor
|
||||
// and saves as a plain Callout: an older pack shows its text as a note.
|
||||
if (style === "card") state.card.dataset.card = "";
|
||||
else delete state.card.dataset.card;
|
||||
const isCard = style === "card";
|
||||
setTileFace(state.node, state.root, Boolean(state.card.dataset.tile) || isCard, () => startEdit(state));
|
||||
const blocks = isCard ? parseCard(state.valueWidget.value) : parseBlocks(state.valueWidget.value);
|
||||
state.inner.replaceChildren();
|
||||
state.empty = blocks.length === 0;
|
||||
if (state.empty) {
|
||||
state.inner.append(el("div", "ausboss-callout-empty", "Double-click to write a note"));
|
||||
}
|
||||
if (isCard) {
|
||||
renderCard(state, blocks);
|
||||
fit(state);
|
||||
return;
|
||||
}
|
||||
for (const lines of blocks) {
|
||||
const point = el("div", "ausboss-callout-point");
|
||||
lines.forEach((line, index) => {
|
||||
@@ -233,21 +381,7 @@ function renderText(state) {
|
||||
// lines are told apart by a break, as before; a block needs none.
|
||||
const into = line.small ? el("div", "ausboss-callout-small") : point;
|
||||
if (index && !line.small && !lines[index - 1].small) point.append(document.createElement("br"));
|
||||
let run = null;
|
||||
let wrap = null;
|
||||
for (const piece of line) {
|
||||
// The pieces of one link sit in one element.
|
||||
if (piece.run !== run) {
|
||||
if (wrap?.classList.contains("ausboss-callout-url")) wrap.append(el("span", "ausboss-callout-out", "↗"));
|
||||
run = piece.run;
|
||||
wrap = run === undefined ? null : linkRun(state, piece);
|
||||
if (wrap) into.append(wrap);
|
||||
}
|
||||
const target = wrap ?? into;
|
||||
if (piece.arrow) target.append(arrowSpan(state, piece.arrow, piece));
|
||||
else target.append(piece.bold ? el("b", "", piece.text) : document.createTextNode(piece.text));
|
||||
}
|
||||
if (wrap?.classList.contains("ausboss-callout-url")) wrap.append(el("span", "ausboss-callout-out", "↗"));
|
||||
appendPieces(state, into, line);
|
||||
if (line.small) point.append(into);
|
||||
});
|
||||
state.inner.append(point);
|
||||
@@ -317,7 +451,9 @@ function fit(state) {
|
||||
inner.style.fontSize = `${px}px`;
|
||||
return inner.offsetHeight <= height && inner.scrollWidth <= width + 1;
|
||||
};
|
||||
inner.style.fontSize = `${fitFontSize(fits)}px`;
|
||||
const size = fitFontSize(fits, undefined, card.dataset.card === undefined ? undefined : CARD_FONT_MAX);
|
||||
const social = card.dataset.tile === "youtube" || card.dataset.tile === "discord";
|
||||
inner.style.fontSize = `${social ? Math.min(size, 16) : size}px`;
|
||||
}
|
||||
|
||||
function markChanged() {
|
||||
@@ -329,12 +465,84 @@ function markChanged() {
|
||||
}
|
||||
}
|
||||
|
||||
function startTileEdit(state) {
|
||||
if (state.editor) return;
|
||||
const original = String(state.valueWidget.value ?? "");
|
||||
const social = ["youtube", "discord"].includes(state.card.dataset.tile);
|
||||
const link = social ? tileLinkFields(original) : null;
|
||||
const dialog = el("dialog", "ausboss-tile-editor");
|
||||
const heading = social ? "Edit link tile" : "Edit title";
|
||||
dialog.setAttribute("aria-label", heading);
|
||||
dialog.append(el("h2", "", heading));
|
||||
const label = el("label", "", link ? "Button text" : "Text");
|
||||
const text = el(link ? "input" : "textarea");
|
||||
text.value = link?.label ?? original;
|
||||
label.append(text);
|
||||
dialog.append(label);
|
||||
let address;
|
||||
if (link) {
|
||||
const field = el("label", "", "Link address");
|
||||
address = el("input");
|
||||
address.type = "url";
|
||||
address.value = link.url;
|
||||
field.append(address);
|
||||
dialog.append(field);
|
||||
}
|
||||
const error = el("p", "ausboss-tile-error");
|
||||
error.setAttribute("role", "alert");
|
||||
const foot = el("footer");
|
||||
const cancel = compactAction("Cancel");
|
||||
const save = compactAction("Save");
|
||||
foot.append(el("span", "", "Ctrl + Enter to save"), cancel, save);
|
||||
dialog.append(error, foot);
|
||||
const commit = () => {
|
||||
let value = text.value;
|
||||
try {
|
||||
if (address) value = tileLinkText(text.value, address.value);
|
||||
} catch (problem) {
|
||||
error.textContent = problem.message;
|
||||
return;
|
||||
}
|
||||
if (value !== original) {
|
||||
state.node.graph?.beforeChange?.();
|
||||
commitWidgetValue(state.node, state.valueWidget, value, app.canvas);
|
||||
renderText(state);
|
||||
state.node.graph?.afterChange?.();
|
||||
markChanged();
|
||||
}
|
||||
dialog.close();
|
||||
};
|
||||
save.addEventListener("click", commit);
|
||||
cancel.addEventListener("click", () => dialog.close());
|
||||
dialog.addEventListener("keydown", event => {
|
||||
event.stopPropagation();
|
||||
if (event.key === "Enter" && (event.ctrlKey || event.metaKey)) {
|
||||
event.preventDefault();
|
||||
commit();
|
||||
}
|
||||
});
|
||||
dialog.addEventListener("keyup", event => event.stopPropagation());
|
||||
dialog.addEventListener("close", () => {
|
||||
state.editor = null;
|
||||
dialog.remove();
|
||||
state.root.querySelector(".ausboss-callout-tool")?.focus();
|
||||
}, { once: true });
|
||||
state.editor = dialog;
|
||||
document.body.append(dialog);
|
||||
dialog.showModal();
|
||||
text.focus();
|
||||
text.select();
|
||||
}
|
||||
|
||||
function startEdit(state) {
|
||||
if (state.editor) return;
|
||||
if (state.card.dataset.tile) return startTileEdit(state);
|
||||
const wrap = el("div", "ausboss-callout-editor");
|
||||
const area = el("textarea", "ausboss-callout-edit");
|
||||
area.value = state.valueWidget.value ?? "";
|
||||
area.placeholder = "One idea per paragraph. **Bold** a word to stress it. The buttons below add an arrow, make a line small or make words a link.";
|
||||
area.placeholder = state.card.dataset.card === undefined
|
||||
? "One idea per paragraph. **Bold** a word to stress it. The buttons below add an arrow, make a line small or make words a link."
|
||||
: "The first line is the title. Write label | value for a row. **Bold** a whole row to make it teal. Small makes a line small print.";
|
||||
area.spellcheck = true;
|
||||
const bar = el("div", "ausboss-callout-arrowbar");
|
||||
bar.append(el("span", "", "Arrow"));
|
||||
@@ -441,7 +649,6 @@ function startEdit(state) {
|
||||
if (event.target !== area) event.preventDefault();
|
||||
});
|
||||
wrap.addEventListener("pointerdown", (event) => event.stopPropagation());
|
||||
wrap.addEventListener("wheel", (event) => event.stopPropagation(), { passive: true });
|
||||
// Clicking another node on the canvas takes the keyboard from the text box.
|
||||
// That is how the link is picked, so the edit stays open then; a click on
|
||||
// empty canvas, or on the note itself, ends it.
|
||||
@@ -497,16 +704,17 @@ function buildPanel(node) {
|
||||
root.append(card);
|
||||
tools.addEventListener("pointerdown", (event) => event.stopPropagation());
|
||||
|
||||
const panelHeight = () => (card.dataset.tile ? 36 : PANEL_MIN_HEIGHT) + WIDGET_FRAME;
|
||||
const domWidget = node.addDOMWidget(WIDGET_NAME, "ausboss_callout", root, {
|
||||
serialize: false,
|
||||
hideOnZoom: false,
|
||||
getMinHeight: () => PANEL_MIN_HEIGHT + WIDGET_FRAME,
|
||||
getMinHeight: panelHeight,
|
||||
});
|
||||
keepDomWidgetWidthAuto(domWidget);
|
||||
domWidget.serialize = false;
|
||||
fillNodeHeight(domWidget, {
|
||||
minWidth: PANEL_MIN_WIDTH,
|
||||
minHeight: () => PANEL_MIN_HEIGHT + WIDGET_FRAME,
|
||||
minHeight: panelHeight,
|
||||
minNodeSize: [PANEL_MIN_WIDTH, PANEL_MIN_HEIGHT + 40],
|
||||
exactMinWidth: true,
|
||||
});
|
||||
@@ -514,6 +722,9 @@ function buildPanel(node) {
|
||||
const state = { node, valueWidget, domWidget, root, card, inner, empty: true, editor: null, frame: 0 };
|
||||
node.__ausbossCallout = state;
|
||||
edit.addEventListener("click", () => startEdit(state));
|
||||
card.addEventListener("dblclick", (event) => {
|
||||
if (card.dataset.tile && !event.target.closest("a,button,textarea,.ausboss-callout-editor")) startEdit(state);
|
||||
});
|
||||
state.observer = new ResizeObserver(() => {
|
||||
cancelAnimationFrame(state.frame);
|
||||
state.frame = requestAnimationFrame(() => fit(state));
|
||||
@@ -529,17 +740,44 @@ function buildPanel(node) {
|
||||
|
||||
app.registerExtension({
|
||||
name: "AusBoss.Callout",
|
||||
setup() {
|
||||
// A note copied with what its links name follows the copies.
|
||||
onPaste(({ nodes, groups, created }) => {
|
||||
for (const node of created) {
|
||||
if (!CALLOUT_TYPES.has(node?.comfyClass) && !CALLOUT_TYPES.has(node?.type)) continue;
|
||||
const state = buildPanel(node);
|
||||
if (!state) continue;
|
||||
const text = repointLinks(state.valueWidget.value, nodes, groups);
|
||||
if (text === null) continue;
|
||||
state.valueWidget.value = text;
|
||||
renderText(state);
|
||||
}
|
||||
});
|
||||
},
|
||||
beforeRegisterNodeDef(nodeType, nodeData) {
|
||||
if (nodeData?.name !== NODE_CLASS) return;
|
||||
if (!CALLOUT_TYPES.has(nodeData?.name)) return;
|
||||
hideInputsInDef(nodeData, ["text"]);
|
||||
chainCallback(nodeType.prototype, "onNodeCreated", function () {
|
||||
if (nodeData.name === "AUSBOSS_NODES_CalloutTile") {
|
||||
this.properties ??= {};
|
||||
this.properties.ausbossCalloutTile ??= "title";
|
||||
}
|
||||
buildPanel(this);
|
||||
// Keep new tiles compact without changing ordinary or saved callouts.
|
||||
if (nodeData.name === "AUSBOSS_NODES_CalloutTile") this.setSize?.([380, 80]);
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onConfigure", function () {
|
||||
chainCallback(nodeType.prototype, "onSerialize", function (saved) {
|
||||
serializeNoteIdentity(saved, ["youtube", "discord", "title"].includes(this.properties?.ausbossCalloutTile));
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onConfigure", function (saved) {
|
||||
// Saved values land after onNodeCreated; show them.
|
||||
queueMicrotask(() => {
|
||||
const state = buildPanel(this);
|
||||
if (state) renderText(state);
|
||||
if (!state) return;
|
||||
renderText(state);
|
||||
if ((state.card.dataset.tile || state.card.dataset.card !== undefined) && Number.isFinite(saved?.size?.[1])) {
|
||||
this.setSize?.([this.size[0], saved.size[1]]);
|
||||
}
|
||||
});
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onDblClick", function () {
|
||||
@@ -549,12 +787,28 @@ app.registerExtension({
|
||||
chainCallback(nodeType.prototype, "getExtraMenuOptions", function (_canvas, options) {
|
||||
const state = this.__ausbossCallout;
|
||||
if (!state || !Array.isArray(options)) return;
|
||||
for (const [style, label] of [["plain","Plain callout"],["card","Info card"],["title","Title tile"],["youtube","Set YouTube link tile"],["discord","Set Discord link tile"]]) {
|
||||
options.unshift({ content: label, callback: () => {
|
||||
this.properties ??= {};
|
||||
this.properties.ausbossCalloutTile = style;
|
||||
const preset = LINK_TILES[style];
|
||||
if (preset) commitWidgetValue(this, state.valueWidget, `[${preset.label}](${preset.url})`, app.canvas);
|
||||
// An empty card starts with text that shows how one is written.
|
||||
const starter = style === "card" && !String(state.valueWidget.value ?? "").trim();
|
||||
if (starter) commitWidgetValue(this, state.valueWidget, CARD_TEMPLATE, app.canvas);
|
||||
renderText(state);
|
||||
if (starter) this.setSize?.([Math.max(this.size[0], CARD_SIZE[0]), CARD_SIZE[1]]);
|
||||
else if (style !== "plain" && style !== "card") this.setSize?.([this.size[0], style === "title" ? 86 : 78]);
|
||||
markChanged();
|
||||
}});
|
||||
}
|
||||
options.unshift({ content: "Edit callout text", callback: () => startEdit(state) }, null);
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onRemoved", function () {
|
||||
const state = this.__ausbossCallout;
|
||||
if (!state) return;
|
||||
state.observer?.disconnect();
|
||||
state.editor?.close?.();
|
||||
cancelAnimationFrame(state.frame);
|
||||
this.__ausbossCallout = null;
|
||||
});
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
// zooming stopped over Compare, the crop previews, the video viewers and every
|
||||
// control on a card. One listener here hands those gestures back, the same way
|
||||
// ComfyUI does for its own text boxes. A panel that wants the wheel for itself
|
||||
// (a scrolling list, a focused text field, an editor) still keeps it.
|
||||
// (a scrolling list, a long text box) keeps it while it can still scroll.
|
||||
//
|
||||
// A file dragged in from the desktop has the same problem in the classic
|
||||
// renderer: dropped on a node's title it loads into the node, dropped on the
|
||||
// node's panel (the picture, the controls) it missed the node. The drop
|
||||
// listeners here hand it to the node under the pointer.
|
||||
import { app } from "/scripts/app.js";
|
||||
// A file dragged in from the desktop, or a picture's card from the Assets
|
||||
// panel, has the same problem in the classic renderer: dropped on a node's
|
||||
// title it loads into the node, dropped on the node's panel (the picture, the
|
||||
// controls) it missed the node. The drop listeners here hand it to the node
|
||||
// under the pointer.
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import {
|
||||
dragCarriesFiles, graphDragStarts, panelHost, panelKeepsWheel, panelNeedsDropHelp, panelRoot,
|
||||
dragCarriesFiles, graphDragStarts, panelHost, panelKeepsWheel, panelNeedsDropHelp, panelRoot, vueBoxKeepsWheel,
|
||||
} from "../shared/canvas_passthrough.mjs";
|
||||
import { showToast } from "../shared/index.mjs";
|
||||
|
||||
@@ -25,12 +26,20 @@ function canvas() {
|
||||
return app.canvas ?? null;
|
||||
}
|
||||
|
||||
// Nodes 2.0 hands every wheel turn over a node to the graph before the node
|
||||
// sees it. This runs first, on the way down: a box of the pack's that can
|
||||
// still scroll keeps the wheel, the event stops here, and the browser
|
||||
// scrolls the box.
|
||||
function onWheelFirst(event) {
|
||||
if (vueBoxKeepsWheel(event.target, event, { styleOf: (el) => getComputedStyle(el) })) event.stopPropagation();
|
||||
}
|
||||
|
||||
function onWheel(event) {
|
||||
const target = event.target;
|
||||
const root = panelRoot(target);
|
||||
const lgCanvas = canvas();
|
||||
if (!root || !lgCanvas || event.defaultPrevented) return;
|
||||
if (panelKeepsWheel(target, event, { root, host: panelHost(target), styleOf: (el) => getComputedStyle(el), activeElement: document.activeElement })) return;
|
||||
if (panelKeepsWheel(target, event, { root, host: panelHost(target), styleOf: (el) => getComputedStyle(el) })) return;
|
||||
event.preventDefault();
|
||||
lgCanvas.processMouseWheel(event);
|
||||
}
|
||||
@@ -127,6 +136,7 @@ app.registerExtension({
|
||||
// The wheel listener sits in the bubble phase so a panel's own handler
|
||||
// (stopPropagation / preventDefault) always gets the first say.
|
||||
window.addEventListener("wheel", onWheel, { passive: false });
|
||||
window.addEventListener("wheel", onWheelFirst, { capture: true, passive: true });
|
||||
window.addEventListener("pointerdown", onPointerDown, true);
|
||||
window.addEventListener("pointermove", onPointerMove, true);
|
||||
window.addEventListener("pointerup", onPointerEnd, true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { app } from "/scripts/app.js";
|
||||
import { api } from "/scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { AUSBOSS_JS_VERSION, BRAND, BRAND_BODY, chainCallback } from "../shared/index.mjs";
|
||||
import { nodeByExecutionId } from "../shared/graph_ids.mjs";
|
||||
import { isOwnRun, ownRuns } from "../shared/prompt_scope.mjs";
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// Clear VRAM 🆎 — a right-click entry on the empty canvas that unloads every
|
||||
// model and frees memory on the ComfyUI server this page is connected to.
|
||||
//
|
||||
// It sends the same request as ComfyUI's own "Unload Models and Execution
|
||||
// Cache" command (top menu, Edit): POST /free with unload_models and
|
||||
// free_memory. That command is not on the right-click menu, so this entry
|
||||
// puts it one click away. A setting hides the entry; a ComfyUI that turns
|
||||
// manual unloading off (Comfy.Memory.AllowManualUnload) hides it too.
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { showToast } from "../shared/index.mjs";
|
||||
|
||||
const SETTING_ID = "AusBoss.Memory.ClearVramMenu";
|
||||
const MENU_LABEL = "Clear VRAM 🆎";
|
||||
|
||||
function setting(id) {
|
||||
return app.ui?.settings?.getSettingValue?.(id);
|
||||
}
|
||||
|
||||
async function clearVram() {
|
||||
try {
|
||||
const response = await api.fetchApi("/free", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ unload_models: true, free_memory: true }),
|
||||
});
|
||||
if (!response.ok) throw new Error(`the server answered ${response.status}`);
|
||||
showToast({ severity: "success", summary: MENU_LABEL, detail: "Models unloaded and memory freed.", life: 3000 });
|
||||
} catch (error) {
|
||||
showToast({ severity: "error", summary: MENU_LABEL, detail: `Could not clear VRAM: ${error?.message ?? error}` });
|
||||
}
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: "ausboss.clear.vram",
|
||||
settings: [
|
||||
{
|
||||
id: SETTING_ID,
|
||||
name: "Clear VRAM on the right-click menu",
|
||||
type: "boolean",
|
||||
defaultValue: true,
|
||||
category: ["🆎 AusBoss", "Memory", "Clear VRAM menu"],
|
||||
tooltip:
|
||||
"Right-click the empty canvas for Clear VRAM: it unloads every model and frees "
|
||||
+ "memory on the ComfyUI server. Off hides the entry.",
|
||||
},
|
||||
],
|
||||
getCanvasMenuItems() {
|
||||
if (setting(SETTING_ID) === false) return [];
|
||||
if (setting("Comfy.Memory.AllowManualUnload") === false) return [];
|
||||
return [{ content: MENU_LABEL, callback: clearVram }];
|
||||
},
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
import { api } from "/scripts/api.js";
|
||||
import { app } from "/scripts/app.js";
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { isForeignRun, outputKey } from "../shared/prompt_scope.mjs";
|
||||
import { BRAND, chainCallback, keepDomWidgetWidthAuto, notifyAusbossChange } from "../shared/index.mjs";
|
||||
import { lookupLink } from "../shared/graph_links.mjs";
|
||||
@@ -14,13 +14,17 @@ import {
|
||||
compareBadges,
|
||||
compareClip,
|
||||
compareResultSide,
|
||||
REST_PROPERTY,
|
||||
savedRestSide,
|
||||
SWITCH_CONTROL_INPUTS,
|
||||
SWITCH_NODE_TYPES,
|
||||
compareSizeLabel,
|
||||
compareSwitchValue,
|
||||
findComparePairs,
|
||||
normalizeCompareMode,
|
||||
sizeAfterErase,
|
||||
} from "../shared/compare.mjs";
|
||||
import { savedLinks } from "../shared/compare_erase.mjs";
|
||||
import { CHECKER, backdropPadding, savedLinks } from "../shared/compare_erase.mjs";
|
||||
import { ERASE_CSS, makeEraser } from "../shared/compare_erase_stage.mjs";
|
||||
|
||||
const NODE_NAME = "AUSBOSS_NODES_Compare";
|
||||
@@ -54,6 +58,7 @@ function ensureCompareCss() {
|
||||
.ausboss-compare-stage{position:relative;flex:1 1 auto;min-height:112px;overflow:hidden;border:1px solid rgba(0,180,170,.34);border-radius:6px;background:#000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);touch-action:none;}
|
||||
.ausboss-compare-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;}
|
||||
.ausboss-compare-stage.is-empty img{visibility:hidden;}
|
||||
.ausboss-compare-stage img.has-alpha{box-sizing:border-box;background-image:repeating-conic-gradient(${CHECKER.light} 0 25%,${CHECKER.dark} 0 50%);background-size:${CHECKER.side * 2}px ${CHECKER.side * 2}px;background-origin:content-box;background-clip:content-box;}
|
||||
.ausboss-compare-seam{position:absolute;top:0;bottom:0;z-index:2;width:1px;margin-left:-0.5px;background:${BRAND};box-shadow:0 0 4px rgba(0,180,170,.55);opacity:0;pointer-events:none;}
|
||||
.ausboss-compare-status{position:absolute;left:7px;top:7px;z-index:3;max-width:calc(100% - 112px);padding:3px 6px;border-radius:4px;background:rgba(0,0,0,.7);color:#b8d3d1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;backdrop-filter:blur(4px);}
|
||||
/* Once the previews are up the status has nothing to say, and an empty chip
|
||||
@@ -104,6 +109,19 @@ function applyClip(state) {
|
||||
state.identity.setAttribute("aria-label", state.identity.title);
|
||||
}
|
||||
|
||||
// A picture with see-through parts lies on a checkerboard. It is the
|
||||
// picture's own background, held to the picture by padding the size of the
|
||||
// bars beside it, so in Slide the cut that shows A hides B behind A's clear
|
||||
// parts too.
|
||||
function placeBackdrops(state) {
|
||||
const { clientWidth, clientHeight } = state.stage;
|
||||
for (const [image, ref] of [[state.imageA, state.refs?.a], [state.imageB, state.refs?.b]]) {
|
||||
const clear = Boolean(ref?.alpha) && image.naturalWidth > 0;
|
||||
image.classList.toggle("has-alpha", clear);
|
||||
image.style.padding = clear ? backdropPadding(clientWidth, clientHeight, image.naturalWidth, image.naturalHeight) : "";
|
||||
}
|
||||
}
|
||||
|
||||
function setEmpty(state, text) {
|
||||
state.stage.classList.add("is-empty");
|
||||
state.status.textContent = text;
|
||||
@@ -168,9 +186,15 @@ function linkView(graph) {
|
||||
const link = lookupLink(graph, linkId);
|
||||
return link ? { id: String(link.origin_id), slot: link.origin_slot } : null;
|
||||
};
|
||||
const inputs = (id) => graph?.getNodeById?.(id)?.inputs ?? [];
|
||||
return {
|
||||
origin,
|
||||
feeds: (id) => (graph?.getNodeById?.(id)?.inputs ?? []).map((input) => origin(input?.link)?.id),
|
||||
feeds: (id) => inputs(id).map((input) => origin(input?.link)?.id),
|
||||
branches(id) {
|
||||
const node = graph?.getNodeById?.(id);
|
||||
if (!SWITCH_NODE_TYPES.has(node?.comfyClass ?? node?.type)) return null;
|
||||
return inputs(id).filter((input) => !SWITCH_CONTROL_INPUTS.has(input?.name)).map((input) => origin(input?.link)?.id);
|
||||
},
|
||||
inside(id) {
|
||||
const subgraph = graph?.getNodeById?.(id)?.subgraph;
|
||||
if (!subgraph) return null;
|
||||
@@ -181,18 +205,40 @@ function linkView(graph) {
|
||||
}
|
||||
|
||||
// Which input holds the result, read from the graph the panel sits in.
|
||||
function resultSide(node) {
|
||||
function guessResultSide(node) {
|
||||
const view = linkView(node.graph);
|
||||
const source = (name) => view.origin(node.inputs?.find((input) => input?.name === name)?.link);
|
||||
return compareResultSide(source("image_a"), source("image_b"), view);
|
||||
}
|
||||
|
||||
// Slide mode rests on the result while the pointer is away.
|
||||
// The picture the panel rests on, saved with the node. A node from a
|
||||
// workflow saved before the choice existed has none: its side is worked out
|
||||
// from the links, as earlier versions did, and held in memory only. Writing
|
||||
// it into the node would mark every older workflow as changed when it opens;
|
||||
// it is written when someone picks a side in the menu.
|
||||
function restSide(node) {
|
||||
const saved = savedRestSide(node.properties?.[REST_PROPERTY]);
|
||||
if (saved) return saved;
|
||||
node.__ausbossRestGuess ??= guessResultSide(node);
|
||||
return node.__ausbossRestGuess;
|
||||
}
|
||||
|
||||
// Slide mode rests on its saved picture while the pointer is away.
|
||||
function showResult(state) {
|
||||
state.fraction = resultSide(state.node) === "B" ? 0 : 1;
|
||||
state.fraction = restSide(state.node) === "B" ? 0 : 1;
|
||||
applyClip(state);
|
||||
}
|
||||
|
||||
// The right-click choice: rest on the other picture from now on.
|
||||
function setRestSide(node, side) {
|
||||
node.properties ??= {};
|
||||
node.properties[REST_PROPERTY] = side;
|
||||
const state = node.__ausbossCompare;
|
||||
if (state && getMode(node) === "slide" && !state.stage.matches(":hover")) showResult(state);
|
||||
node.setDirtyCanvas?.(true, true);
|
||||
notifyAusbossChange();
|
||||
}
|
||||
|
||||
// A click on the mode switch. The mode saves with the workflow; a flip
|
||||
// between A and B within the lock does too, through the side it stores.
|
||||
function pickMode(state, value) {
|
||||
@@ -355,7 +401,10 @@ function buildPanel(node) {
|
||||
updateModeButtons(state);
|
||||
|
||||
// The labels are placed in pixels, so they follow the stage's width.
|
||||
const resized = new ResizeObserver(() => applyClip(state));
|
||||
const resized = new ResizeObserver(() => {
|
||||
applyClip(state);
|
||||
placeBackdrops(state);
|
||||
});
|
||||
resized.observe(stage);
|
||||
signal.addEventListener("abort", () => resized.disconnect());
|
||||
// Movement belongs to the preview only; graph dragging and panning remain
|
||||
@@ -378,6 +427,7 @@ function buildPanel(node) {
|
||||
}, { signal });
|
||||
|
||||
const onImageLoad = () => {
|
||||
placeBackdrops(state);
|
||||
state.loaded += 1;
|
||||
if (state.loaded >= 2) {
|
||||
setReady(state);
|
||||
@@ -415,10 +465,11 @@ app.registerExtension({
|
||||
defaultValue: true,
|
||||
category: ["🆎 AusBoss", "Image Compare", "Rest on the result"],
|
||||
tooltip:
|
||||
"While the pointer is away, Image Compare A/B shows the result: "
|
||||
+ "after every run, and again each time the pointer leaves the "
|
||||
+ "picture. Off: it stays on the picture nearest to where the "
|
||||
+ "pointer left, and a new run does not change it.",
|
||||
"While the pointer is away, Image Compare A/B shows the picture it "
|
||||
+ "rests on: B on a new node, or the one picked in the node's "
|
||||
+ "right-click menu. It does after every run, and again each time "
|
||||
+ "the pointer leaves the picture. Off: it stays on the picture "
|
||||
+ "nearest to where the pointer left, and a new run does not change it.",
|
||||
onChange(value) {
|
||||
restOnResult = value !== false;
|
||||
},
|
||||
@@ -436,6 +487,9 @@ app.registerExtension({
|
||||
beforeRegisterNodeDef(nodeType, nodeData) {
|
||||
if (nodeData?.name !== NODE_NAME) return;
|
||||
chainCallback(nodeType.prototype, "onNodeCreated", function () {
|
||||
// A new node rests on B. A loaded one gets its saved side back in onConfigure.
|
||||
this.properties ??= {};
|
||||
this.properties[REST_PROPERTY] = "B";
|
||||
buildPanel(this);
|
||||
// Only for a genuinely new node: onConfigure restores a saved size after
|
||||
// this runs, so a workflow's own dimensions still win.
|
||||
@@ -444,9 +498,14 @@ app.registerExtension({
|
||||
Math.max(DEFAULT_NODE_SIZE[1], this.size?.[1] ?? 0),
|
||||
]);
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onConfigure", function () {
|
||||
chainCallback(nodeType.prototype, "onConfigure", function (info) {
|
||||
const state = this.__ausbossCompare;
|
||||
// Saved before the choice existed: drop the new node's B, so the side
|
||||
// is worked out from the links.
|
||||
if (!savedRestSide(info?.properties?.[REST_PROPERTY])) delete this.properties?.[REST_PROPERTY];
|
||||
this.__ausbossRestGuess = undefined;
|
||||
queueMicrotask(() => {
|
||||
const state = buildPanel(this);
|
||||
if (!state || this.__ausbossCompare !== state || state.abort.signal.aborted) return;
|
||||
state.showingB = this.properties?.ausboss_compare_side === "B";
|
||||
syncErase(state);
|
||||
// The saved paint, if the pictures are already up.
|
||||
@@ -463,8 +522,19 @@ app.registerExtension({
|
||||
if (!pairs.length) setEmpty(state, "Execution finished without compare previews");
|
||||
app.canvas?.setDirty?.(true, true);
|
||||
});
|
||||
// Which picture the panel rests on, kept with the workflow.
|
||||
chainCallback(nodeType.prototype, "getExtraMenuOptions", function (_canvas, options) {
|
||||
if (!Array.isArray(options)) return;
|
||||
const side = restSide(this);
|
||||
const other = side === "A" ? "B" : "A";
|
||||
options.unshift(
|
||||
{ content: `Show ${other} when the pointer is away (now ${side})`, callback: () => setRestSide(this, other) },
|
||||
null,
|
||||
);
|
||||
});
|
||||
// A link on the filename input decides whether the name is typed here.
|
||||
chainCallback(nodeType.prototype, "onConnectionsChange", function () {
|
||||
this.__ausbossRestGuess = undefined; // an older node's side follows its links
|
||||
this.__ausbossCompare?.eraser?.refresh();
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onRemoved", function () {
|
||||
|
||||
@@ -7,9 +7,48 @@ to point at the part you are talking about.
|
||||
Use it to explain a step in a workflow you share. It never runs and has no
|
||||
wires.
|
||||
|
||||
## Writing
|
||||
## Tile presets
|
||||
|
||||
- Double-click the note, or press **Edit**, to type. Click outside the box to
|
||||
Right-click the Callout and choose **Title tile** to give your existing text a black heading with a teal accent. **Set YouTube link tile** and **Set Discord link tile** fill in the AusBoss link and label. Click the label to open the link, or drag the tile to move it. Choose **Plain callout** to return to the standard style with the current text.
|
||||
|
||||
- Press **Edit** on a tile to open a larger editor. A link tile has separate **Button text** and **Link address** fields. Existing mixed text stays in a text box.
|
||||
- Double-click a title to edit it. **Save** or `Ctrl+Enter` keeps the change; **Cancel** or `Esc` leaves the original text.
|
||||
- Drag the visible bottom-right grip to resize. You can also focus the grip and use arrow keys; hold **Shift** for smaller changes. Resizing keeps the tile in place and supports Undo.
|
||||
|
||||
## Info card
|
||||
|
||||
A small card for facts people look up: run times, settings, what each choice
|
||||
does. Right-click the Callout and choose **Info card**. An empty note starts
|
||||
with sample text that shows each part.
|
||||
|
||||
Write it like this:
|
||||
|
||||
```text
|
||||
⏱️ Too slow?
|
||||
###### Redraw time on an RTX 5090. Smaller cards take longer.
|
||||
|
||||
2x, 18 steps | ~4 min
|
||||
2x, 10 steps | ~3 min
|
||||
1.5x, 18 steps | ~2.5 min
|
||||
**1.5x, 10 steps (default) | ~2 min**
|
||||
|
||||
###### 1.5x is a 4608-wide sheet, 2x is 6144.
|
||||
```
|
||||
|
||||
- The first line is the card's title. Start it with ⏱️ ℹ️ ⚠️ 💡 or ✅ and
|
||||
that emoji is drawn as a small icon.
|
||||
- A line with a `|` in it is a row: the words before the `|` on the left,
|
||||
the rest on the right.
|
||||
- Put the whole row in two stars, `**like this | value**`, and it is drawn
|
||||
in teal. Use it for the default or the one to pick.
|
||||
- Small print (the **Small** button) is a grey line, for a subtitle or a note
|
||||
at the bottom.
|
||||
- A blank line leaves a gap. Arrows and links work as in any callout.
|
||||
- Double-click the card to edit it. Choose **Plain callout** to turn it back
|
||||
into a note; the text stays.
|
||||
|
||||
|
||||
- On a plain callout, double-click the note, or press **Edit**, to type. Click outside the box to
|
||||
keep the text. **Esc** drops what you typed.
|
||||
- A blank line starts a new point. Each point gets a thin teal line beside it.
|
||||
- Put two stars around a word to stress it: `**Resize is on.**`
|
||||
@@ -64,6 +103,8 @@ In the text a link is written `[the words](https://example.com)`, or
|
||||
|
||||
- The text is stored in the node's one hidden `text` input, so saving,
|
||||
undo and copy work like any other node. Nothing else is saved with it.
|
||||
- A note copied together with the nodes and groups its links name links to
|
||||
the copies. A link to anything left behind keeps its number.
|
||||
- In the text, small print is a line that starts with six `#` and a space:
|
||||
`###### Off, your words go in as typed.` Small print is 62% of the note's
|
||||
text size and never under 11 px.
|
||||
@@ -80,5 +121,13 @@ In the text a link is written `[the words](https://example.com)`, or
|
||||
it to read the address before you click.
|
||||
- An older version of the pack shows a link as typed, brackets and address
|
||||
included, so the address can still be read and copied there.
|
||||
- An Info card is saved as an ordinary Callout with the text you typed.
|
||||
The card look is a setting on the node, so an older version of the pack
|
||||
shows the same text as a plain note, rows written out as `label | value`.
|
||||
A plain callout never reads `|` as a row, so notes written before look
|
||||
the same.
|
||||
- A row splits at its first `|` that is not inside a link. A row pasted
|
||||
from a Markdown table loses its outer pipes, and the table's `---` line
|
||||
is skipped. An Info card's text grows with the card, up to 20 px.
|
||||
- The font is IBM Plex Sans when the computer has it, otherwise the system
|
||||
font. The node loads no fonts and makes no network requests.
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Callout Tile
|
||||
|
||||
A compact title or colored link button for a workflow. Choose **Title tile**, **Set YouTube link tile**, or **Set Discord link tile** from its menu. Press **Edit** to change its text or link; you can also double-click a title. Drag its visible corner to resize.
|
||||
|
||||
It uses the same text, arrows and links as [Callout](AUSBOSS_NODES_Callout.md). **Plain callout** returns to the ordinary note face. Nothing runs and it has no outputs.
|
||||
|
||||
Tiles save with their own node type. If ComfyUI reports this node missing, install or update **ComfyUI-AusBoss**, restart ComfyUI, and reload the workflow. An older pack cannot draw the tile correctly. Keep the missing node so its text and settings are preserved.
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
Makes one picture's colors match another's. Use it when an inpainted or
|
||||
stitched area comes back a little too warm, cool, dark or bright next to the
|
||||
original. Four methods go from a gentle fix to an exact match, and a
|
||||
first-frame mode matches every frame of a video to its first, which can
|
||||
original. Four methods go from a gentle fix to an exact match. A fifth,
|
||||
**kept**, is for edits whose new part looks too crisp and colourful next to
|
||||
the rest of the picture. A first-frame mode matches every frame of a video to its first, which can
|
||||
reduce color drift between frames.
|
||||
|
||||
## Controls
|
||||
@@ -15,7 +16,7 @@ reduce color drift between frames.
|
||||
inpaint, feed the original image here. A single reference broadcasts
|
||||
across a batch; a matched batch pairs frame to frame. Required unless
|
||||
**Reference** (`reference_mode`) is **first frame**.
|
||||
- **Method** (`method`): How the colors move.
|
||||
- **Method** (`method`): How the colors move. A line under it says what the picked one does.
|
||||
- **lab** — per-channel mean/std shift in LAB. Perceptual and the safe
|
||||
default: corrects overall casts and contrast without shifting
|
||||
individual hues around.
|
||||
@@ -24,6 +25,13 @@ reduce color drift between frames.
|
||||
not just shifted.
|
||||
- **hist** (`histogram`) — matches each channel's distribution exactly.
|
||||
The strongest and least subtle.
|
||||
- **kept** — for an edit, with the picture from before the edit as
|
||||
**reference**. Edit models often hand back the parts they were asked
|
||||
to keep a little darker, with more contrast and colour, so a new sign or
|
||||
word looks pasted on. This method learns that shift from the parts the
|
||||
model kept and undoes it everywhere. New things keep their own colours:
|
||||
green apples that replaced oranges stay green. The reference must be the
|
||||
same size as the image.
|
||||
- **mask** (optional): Restricts the match to the white area — both the
|
||||
statistics measured on the image and where the correction lands. Black
|
||||
pixels pass through **bit-identical**. Reference statistics always come
|
||||
@@ -43,6 +51,11 @@ reduce color drift between frames.
|
||||
|
||||
## Notes
|
||||
|
||||
- For an edit in a box, put **kept** between the model and **Stitch Inpaint
|
||||
🆎**: the model's crop into **image**, Crop For Inpaint's crop into
|
||||
**reference**, its mask into **mask**. The fix is learned and applied
|
||||
inside the box only.
|
||||
|
||||
- The node takes a mask but outputs none on purpose: the mask only scopes
|
||||
the fix and passes through your graph unchanged — wire your original
|
||||
mask onward.
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
# Image Compare A/B
|
||||
|
||||
Shows two images on one panel so differences pop out instead of hiding in a
|
||||
side-by-side. The first frame of each batch is previewed; `image_a` passes
|
||||
through the output unchanged, so the node can sit in the middle of a graph
|
||||
without breaking anything downstream.
|
||||
side-by-side. The first frame of each batch is previewed; `image_a` and
|
||||
`image_b` pass through their outputs unchanged, so the node can sit in the
|
||||
middle of a graph without breaking anything downstream.
|
||||
|
||||
## Inputs
|
||||
|
||||
- **image_a**: The baseline batch. Its first frame is preview A, and the
|
||||
whole batch is what the output carries.
|
||||
- **image_b**: The comparison batch. Its first frame is preview B.
|
||||
whole batch is what the `image_a` output carries.
|
||||
- **image_b**: The comparison batch. Its first frame is preview B, and the
|
||||
whole batch is what the `image_b` output carries.
|
||||
- **filename** (optional): a name for the files that **Erase** saves, such
|
||||
as the source picture's file name. Leave it unwired to type the name on
|
||||
the node.
|
||||
@@ -19,15 +20,17 @@ without breaking anything downstream.
|
||||
Run the workflow once to load the previews. The switch under the picture
|
||||
picks what the panel does, and its marker slides to your choice:
|
||||
|
||||
- **Slide** (default): the panel shows the result. Move the pointer across
|
||||
it to compare: A appears on the left of the line and B on the right. Move
|
||||
the pointer away and the result is back. Every new run shows its result
|
||||
too.
|
||||
- **Slide** (default): the panel shows B, the result. Move the pointer
|
||||
across it to compare: A appears on the left of the line and B on the
|
||||
right. Move the pointer away and B is back. Every new run shows it too.
|
||||
- **A** / **B**: show that picture and hold it, whatever the pointer does.
|
||||
- **Erase**: mix the two pictures by hand. One picture is on top; paint on
|
||||
it and it rubs away, so the other one shows through. Then save the mix.
|
||||
See **Erase** below.
|
||||
|
||||
A picture with see-through parts shows them over a checkerboard, as an
|
||||
editor does.
|
||||
|
||||
The labels ride with the split line: **A** just left of it and **B** just right of
|
||||
it, on the picture each one names. With one picture showing, its label sits alone
|
||||
at the top centre. The chosen mode and locked side are
|
||||
@@ -49,12 +52,18 @@ Use it when you want part of one picture and part of the other: the edit
|
||||
is good but it changed the hands, so you paint the old hands back. Or you
|
||||
only want the new sky.
|
||||
|
||||
It also brings back a clear background. When the picture underneath has
|
||||
see-through parts, such as a cut-out the model filled in behind, rub the
|
||||
top one away there and they come back clear. The saved PNG and PSD keep
|
||||
them.
|
||||
|
||||
Pick **Erase** on the switch. A row of tools opens above the picture:
|
||||
|
||||
- **Erase | Restore**: what the brush does. Erase rubs the top picture
|
||||
away. Restore paints it back. Holding **Ctrl**, or using the right
|
||||
mouse button, does the other one for as long as you hold it.
|
||||
- **Size** is the brush's width, in pixels of the picture.
|
||||
- The dot beside **Size** previews one brush dab. It grows with Size and its edge fades as you increase Soft.
|
||||
- **Soft** is the brush's edge: 0 is a hard edge, 100 fades all the way
|
||||
from the middle.
|
||||
- Drag left and right on **Size** or **Soft**, on the word, the number or
|
||||
@@ -122,15 +131,19 @@ Your paint is kept with the workflow. A new run keeps it while the picture
|
||||
keeps its size, so you can change a seed and look again; press **CLEAR**
|
||||
to start over. Pictures of another size start clean.
|
||||
|
||||
## Which picture is the result
|
||||
## Which picture shows when the pointer is away
|
||||
|
||||
B, the "after" picture. If your graph makes A out of B's picture (B is the
|
||||
picture you loaded and A is the edited one), the result is A. To keep one
|
||||
picture up whatever happens, use the **A** or **B** button.
|
||||
B, the "after" picture, on a new node. If your result is wired to A,
|
||||
right-click the node and choose **Show A when the pointer is away**. The
|
||||
choice is saved with the workflow. To keep one picture up whatever the
|
||||
pointer does, use the **A** or **B** button.
|
||||
|
||||
## Output
|
||||
## Outputs
|
||||
|
||||
- **image_a**: The `image_a` batch, untouched.
|
||||
- **image_b**: The `image_b` batch, untouched: the picture you compared
|
||||
against, often the edited one. Wire it on when the picture you want to
|
||||
keep is B.
|
||||
|
||||
Previews are written to ComfyUI's temp folder and vanish with it. Nothing
|
||||
is saved to the output folder until you press **SAVE** in Erase, and no
|
||||
@@ -139,17 +152,24 @@ network requests are made.
|
||||
## Technical details
|
||||
|
||||
- While sliding, the outer 6% on either side snaps to a full image.
|
||||
- The result is found from the links: when the node that feeds `image_b` is
|
||||
somewhere upstream of the node that feeds `image_a`, A was made from B and
|
||||
A is the result. When both pictures come out of one subgraph, the same
|
||||
check is made inside it. In every other case it is B: two unrelated
|
||||
pictures, both pictures out of one plain node, or a link the node cannot
|
||||
follow (a Set and Get pair, for example).
|
||||
- The side is saved in the node's `ausboss_compare_rest` property. A
|
||||
workflow saved by an earlier version has none, so its side is worked out
|
||||
from the links, the way earlier versions did, until a side is picked in
|
||||
the menu: when A is made from B's picture, A is the result. A switch
|
||||
counts only when it cannot hand on the picture B started from. When both
|
||||
pictures come out of one subgraph, the same check is made inside it. In
|
||||
every other case it is B.
|
||||
- Settings → AusBoss → Image Compare → **Rest on the result** switches this
|
||||
off. The panel then stays on the picture nearest to where the pointer
|
||||
left, and a new run does not change it.
|
||||
- **Erase works on the first picture of each batch**, at its full size.
|
||||
The mix is always A's size: a B of another size is resized to fit A.
|
||||
- **See-through parts** are kept in a preview only when a picture has some,
|
||||
so solid pictures save exactly as before. The mix lays the top picture
|
||||
over the other as an editor does. In the PSD each layer keeps its own
|
||||
see-through parts, and the flat picture carries the mix's, its colours
|
||||
stored over white the way Photoshop stores them. **Align** measures the
|
||||
two pictures laid over gray and moves B's see-through parts with it.
|
||||
- **What is kept is the strokes**, not a painted picture. The panel draws
|
||||
them for you, and Save draws them again on the server at full size, so
|
||||
the saved edge is as sharp as the picture however small the node is.
|
||||
|
||||
@@ -32,13 +32,20 @@ side of the picture, which is how the pair outpaints.
|
||||
the paste mask is widened by this many pixels and blurred. The sampling
|
||||
mask sent to the inpainter stays hard-edged, so feathering never weakens
|
||||
what the model sees. `0` pastes with the raw mask.
|
||||
- **Multiple** (`output_multiple`): Crop and target dimensions are rounded
|
||||
up to a multiple of this so samplers accept them.
|
||||
- **Multiple** (`output_multiple`): The crop's size is rounded up to a
|
||||
multiple of this. Keep it at `32` (the default) for Qwen Image 2.1, Flux
|
||||
and most newer models. Their VAE trims a picture that is not a multiple
|
||||
of 16 or 32, and the trimmed result, stretched back over the crop, looks
|
||||
slightly bigger than the original. Stitch Inpaint says so in the console
|
||||
when that happens.
|
||||
- **Target width / Target height** (`target_width` / `target_height`, in
|
||||
the **Target size, extend** fold): Rescale the crop to a fixed size for
|
||||
the sampler. `0` keeps the native crop size; setting only one dimension
|
||||
derives the other from the crop's aspect ratio. Explicit values here
|
||||
override `target_megapixels`.
|
||||
override `target_megapixels`. When the crop is rescaled, the crop area
|
||||
takes in a few more pixels of context on one side so it has the exact
|
||||
shape of the target size, and the picture is scaled the same amount
|
||||
both ways, never stretched.
|
||||
|
||||
### Shaping the mask
|
||||
|
||||
@@ -95,9 +102,15 @@ Any inpainting sampler fits between the two nodes the same way — connect
|
||||
the crop's `image` and `mask` to it, then its output to Stitch Inpaint's
|
||||
`inpainted` input.
|
||||
|
||||
A picture with see-through parts keeps them through the pair. ComfyUI's
|
||||
Load Image splits them off into its `mask`; wire its `IMAGE` and `MASK`
|
||||
into **Join Image with Alpha** to put them back on before the crop. The
|
||||
sampler gets the colours, and Stitch Inpaint gives the result its clear
|
||||
parts back.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Starting values: Context `1.2`, Blend `16` px, Multiple `8`; Grow, Blur,
|
||||
- Starting values: Context `1.2`, Blend `16` px, Multiple `32`; Grow, Blur,
|
||||
Extra context, the Target rows and the Extend rows start at `0`.
|
||||
- With no Target size set, the crop is still rounded up to **Multiple**, so
|
||||
with **Stay in picture** on it can still reach a few pixels (at most
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
# Cut Out
|
||||
|
||||
Turns a picture and a mask into a cut-out with a see-through background.
|
||||
Use it to save a subject as a transparent PNG, or to lay it on a new
|
||||
background. It goes after the node that makes the mask, such as Mask by
|
||||
Name or Mask by Touch. In a Qwen Image cut-out workflow, where SAM 3 finds a
|
||||
thing and Qwen paints it out of the picture, Cut Out turns the same mask and
|
||||
the original picture into the transparent PNG.
|
||||
|
||||
**Clean edges** fixes the rim of old background colour that a cut-out
|
||||
usually carries in hair and soft edges, so it sits cleanly on any new
|
||||
background. Parts of the picture that are fully kept stay exactly as they
|
||||
were.
|
||||
|
||||
Save Image keeps the transparency when it saves a PNG (or WebP). JPEG has no
|
||||
transparency, so a JPEG shows the clear parts black.
|
||||
|
||||
The panel under the card shows the cut-out over a checkerboard once the
|
||||
node has run (the first frame for a video). The small **preview** switch at
|
||||
the right of the bar turns it off.
|
||||
|
||||
## Live preview
|
||||
|
||||
Once the node has a picture, the picture on the node redraws while you drag a
|
||||
value, before you queue anything. Run the graph once to give the node its
|
||||
picture (run once to get the picture and the mask); after that it changes as you drag. A small "not run yet" tag
|
||||
shows while the picture is a preview and not a real result.
|
||||
|
||||
The **Fit | 100%** switch sits on the bar above the picture, left of Preview.
|
||||
Fit shows the whole picture. 100% shows real pixels, and dragging on the
|
||||
picture moves around it instead of moving the node. The cut-out shows over a checker, so see-through parts read as see-through.
|
||||
|
||||
|
||||
## Controls
|
||||
|
||||
- **Keep** (`keep`): **white part** keeps what is under the white of the
|
||||
mask, **black part** keeps what is under the black. Pick black part when
|
||||
your mask covers the background rather than the subject.
|
||||
- **Grow** (`grow`): grows the kept part by this many pixels, or shrinks it
|
||||
with a negative number. Shrink by 1 or 2 when a thin line of old
|
||||
background shows around the edge.
|
||||
- **Feather** (`feather`): how soft the edge is, in pixels. `0` keeps the
|
||||
mask's own edge. `1` takes the jagged steps off a hard mask.
|
||||
- **Clean edges** (`clean_edges`): on by default. Works out the subject's
|
||||
own colour where the edge is see-through (hair, fur, motion blur) and
|
||||
puts it back, so the old background does not show as a halo. Turn it off
|
||||
to keep the picture's colours everywhere.
|
||||
|
||||
### Behind **More**
|
||||
|
||||
- **Clear haze** (`clear_haze`): parts this see-through or more become fully
|
||||
clear. Raise it a little (`0.05`) when a faint haze surrounds the cut-out.
|
||||
- **Solid above** (`solid_above`): parts at least this solid become fully
|
||||
solid. Lower it a little (`0.95`) to fill thin see-through spots inside
|
||||
the subject.
|
||||
- **Smooth video** (`smooth_frames`): for a video, blends each frame's edge
|
||||
with this many frames before and after it, which calms an edge that
|
||||
flickers from frame to frame. `0` is off. Keep it low (`1` or `2`) on
|
||||
fast motion, or the edge lags behind the subject.
|
||||
|
||||
### Inputs and outputs
|
||||
|
||||
- **image**: the picture or video frames.
|
||||
- **mask**: what to keep. One mask can cover every frame, or give one per
|
||||
frame. A mask of another size is stretched to the picture.
|
||||
- **image** (output): the cut-out as an RGBA picture with straight (not
|
||||
premultiplied) alpha. If the input already had a transparent background,
|
||||
both are kept.
|
||||
- **alpha** (output): how solid each pixel is, as a mask: white is kept,
|
||||
black is clear. Wire it to any node that wants the final mask.
|
||||
|
||||
## Technical details
|
||||
|
||||
- The alpha is made in a fixed order: pick the white or black part, grow or
|
||||
shrink (whole pixels), feather (a Gaussian blur of that many pixels),
|
||||
average over neighbouring frames, then the levels (Clear haze and Solid
|
||||
above). Values within 0.0001 of solid or clear are made exactly solid or
|
||||
clear.
|
||||
- Clean edges uses blur-fusion foreground estimation (Forte and Pitie,
|
||||
"Approximate Fast Foreground Colour Estimation", ICIP 2021), written in
|
||||
torch for this pack and shared with Mask by Touch's fine edges: around
|
||||
each pixel it averages the subject's colour and the background's from the
|
||||
pixels nearby, corrects the subject's by what the pixel shows, and does
|
||||
this once wide and once narrow. The widths follow the picture's size. It
|
||||
needs no extra package. Pixels with an alpha of exactly 1 keep their
|
||||
original colours to the bit.
|
||||
- Frames are worked on eight at a time.
|
||||
|
||||
### Live preview
|
||||
|
||||
The preview runs the node's own maths in the browser: on a copy shrunk to the
|
||||
size it is shown at in Fit, and on a real-pixel crop of the picture in 100%.
|
||||
It is checked against the Python node on recorded values (`tests/test_live_parity.py`);
|
||||
results agree to within 5e-5 on a 0 to 1 scale. The picture is the one the
|
||||
last run kept, or a Load Image read through ComfyUI's own view route. When
|
||||
the values match the last run, the real result is drawn instead.
|
||||
@@ -0,0 +1,142 @@
|
||||
# Edit Lock
|
||||
|
||||
Keeps every part of your picture that an edit did not change exactly where
|
||||
it was, with the colors it had.
|
||||
|
||||
An edit model redraws the whole picture, also the parts you did not ask it
|
||||
to change. Those parts often come back a little zoomed in, shifted or
|
||||
tinted. Flip between the original and the edit and the whole picture
|
||||
jumps. Edit Lock stops that: only the edit is new.
|
||||
|
||||
It needs no mask. It sees what the edit changes while the picture is being
|
||||
made, and holds on to everything else.
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Put **Edit Lock 🆎** between the model and the sampler: the model (after
|
||||
any LoRA loader) goes in, and its `model` output goes to the sampler or
|
||||
guider.
|
||||
2. Wire the VAE into `vae` and the picture you are editing into `image`.
|
||||
Use the same picture the edit model gets, at the size of the result.
|
||||
3. After the VAE Decode, add **Edit Lock Restore 🆎**. Wire the decoded
|
||||
picture into `image` and Edit Lock's `edit_lock` output into
|
||||
`edit_lock`. This puts your own pixels back in the untouched parts.
|
||||
4. Wire Restore's `report` into **Show Text 🆎** to read how much was kept.
|
||||
|
||||
Run your edit as usual. Prompt, steps and seed stay as they were.
|
||||
|
||||
## What it does with each kind of edit
|
||||
|
||||
- **A local edit** (add glasses, repaint the car, change the sign): the
|
||||
edit happens, and the rest of the picture stays put.
|
||||
- **An edit of the whole picture** (a new style, new light, fog):
|
||||
there is nothing to keep, so Edit Lock steps aside and the edit runs as
|
||||
if the node were not there. The report says so.
|
||||
- **A soft effect over the whole picture** (rain, falling snow, haze):
|
||||
it touches everything a little, so there is no untouched part to put
|
||||
back. Edit Lock lets the effect through and only holds the picture in
|
||||
place, so it does not come back zoomed or shifted. The report says so.
|
||||
- **A soft effect and a clear change in one edit** (rain and an umbrella):
|
||||
the node may lock on the umbrella and hold the rain back everywhere
|
||||
else. If the effect is missing outside the changed part, set **Lock** to
|
||||
`off`.
|
||||
- **Something in between** (a new hair color on a close-up, a new
|
||||
background behind a person): it may lock or step aside. The report says
|
||||
which. These edits often change the light on the face too. `auto` steps
|
||||
aside for most of them, so the new light comes with the new hair.
|
||||
`always` keeps the old light on everything it keeps, which can look
|
||||
wrong on a face. A mask settles it: paint the hair and the face, and
|
||||
the rest is locked.
|
||||
- **The model ignores your picture and draws a new one:** that reads as a
|
||||
whole-picture edit, so `auto` steps aside. `always` holds the model to
|
||||
your picture.
|
||||
|
||||
## Controls
|
||||
|
||||
- **model**: the edit model. Patch last, after any LoRAs.
|
||||
- **vae**: the same VAE the workflow decodes with.
|
||||
- **image**: the picture you are editing, at the size of the result. If
|
||||
the sizes differ by more than a few percent the lock does nothing, and
|
||||
the report says so.
|
||||
- **Lock** (`lock`): `auto` (the default) locks the untouched parts and
|
||||
steps aside when the whole picture changes. `always` locks even then.
|
||||
`off` does nothing, which makes a quick before and after.
|
||||
- **Tolerance** (`tolerance`): how big a change must be to count as part of
|
||||
the edit. 1 is the default. Raise it if small unwanted changes get
|
||||
through. Lower it if the lock holds back part of your edit.
|
||||
- **mask** (optional): white marks where the edit may happen; everything
|
||||
else is locked. With a mask the node does not look for the change
|
||||
itself. A mask from **Mask by Touch 🆎** or **Mask by Name 🆎** works.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **model**: the model with the lock on.
|
||||
- **edit_lock**: what the lock kept, for Edit Lock Restore 🆎.
|
||||
|
||||
## Good to know
|
||||
|
||||
- The lock belongs to one picture. For an edit with two pictures, give it
|
||||
the one the result should line up with.
|
||||
- It works on single pictures, not video.
|
||||
- The node watches the first steps of a run and locks for the rest, so
|
||||
the model finishes the edit on top of your real picture. Shadows and
|
||||
reflections the edit adds next to the changed part still come through.
|
||||
- If your edit is missing and the report says nearly all of the picture
|
||||
was kept, set **Lock** to `off`.
|
||||
- Tested on MiniMax-H3-Image. The lock itself is not tied to one model, but
|
||||
the line between "local edit" and "whole picture" was measured there.
|
||||
|
||||
## Technical details
|
||||
|
||||
At every step an edit model predicts the finished picture. Edit Lock
|
||||
compares that prediction with your picture in latent space.
|
||||
|
||||
**Watching.** The first prediction of a run is a blur, and rain, snow or
|
||||
the light a new hair color throws on a face only show a few steps in. So
|
||||
the node watches until the noise is down to 0.8 of where it began: step 4
|
||||
of a 6-step MiniMax-H3-Image run. A run that never gets that low decides
|
||||
at its last step. While it watches, the model draws its own picture and
|
||||
only one thing is corrected. The model often draws the whole picture about
|
||||
one percent larger, or a little shifted. The node measures that zoom and
|
||||
shift at every step, on the calmer half of the picture, and moves the
|
||||
prediction back so it sits where your picture does.
|
||||
|
||||
**Deciding.** Change is measured against the quiet part of the picture:
|
||||
the tenth where the prediction differs least. An even tint over the whole
|
||||
picture is taken out first, so a color cast is not read as a change. A
|
||||
spot counts as changed when it differs by 3 times the quiet level, or by 2
|
||||
times while it touches a spot that does. So a faint change beside a clear
|
||||
one belongs to the edit, and a faint change alone is redraw noise.
|
||||
**Tolerance** multiplies both numbers.
|
||||
|
||||
**Locking.** From the decision on, wherever the picture did not change,
|
||||
the original latent is put back before the sampler takes its next step. A
|
||||
part once read as changed stays changed for the rest of the run. The last
|
||||
step ends on the original there, so what was kept is the original itself,
|
||||
not a redrawn copy.
|
||||
|
||||
**Stepping aside.** `auto` does not lock in three cases:
|
||||
|
||||
- At the first step the whole picture is already changing (a new style,
|
||||
new light). The node reads the calmest fifth of a smoothed copy, where a
|
||||
slightly larger redraw nearly vanishes and a new style does not. On
|
||||
MiniMax-H3-Image, local edits at 1, 4 and 16 megapixels read 0.22 or
|
||||
less there and whole-picture edits 0.27 or more; the line sits at 0.243.
|
||||
The model then runs untouched.
|
||||
- At the decision no place has changed clearly: the strongest spot of the
|
||||
picture is under 4 times the quiet level. That is light rain or fog.
|
||||
Local edits read 4.7 or more there, glasses and makeup included.
|
||||
- At the decision the lock would hand a tenth of the picture or more to
|
||||
the edit, yet the strongest hundredth of the picture is under 4 times
|
||||
the quiet level. That is heavier rain or snow, and a lock would let it
|
||||
through in patches. Local edits that wide read 4.4 or more; rain and
|
||||
snow read 3.6 or less.
|
||||
|
||||
In the last two cases the node keeps undoing the zoom and shift to the end
|
||||
of the run, and puts nothing back. An edit close to one of these lines (a
|
||||
hair color change on a close-up, a new background, smoke) can fall on
|
||||
either side. The report says which, and **Lock** overrides it.
|
||||
|
||||
This is the target the TailSteer paper trains a model toward (the source
|
||||
where nothing changed, the model's own edit elsewhere), applied while
|
||||
sampling. It needs no LoRA and no training.
|
||||
@@ -0,0 +1,73 @@
|
||||
# Edit Lock Restore
|
||||
|
||||
Puts your picture's own pixels back in every part the edit did not change,
|
||||
and takes out the faint pink tint some edit models add to the whole picture.
|
||||
|
||||
**Edit Lock 🆎** keeps the untouched parts in place while the picture is
|
||||
made. They still pass through the VAE, which softens fine detail a little.
|
||||
This node swaps your original pixels in for those parts, so they match
|
||||
your picture pixel for pixel. Only the edit is new.
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Add it right after the VAE Decode, before any upscaler.
|
||||
2. Wire the decoded picture into `image`.
|
||||
3. Wire the `edit_lock` output of Edit Lock 🆎 into `edit_lock`.
|
||||
4. Wire `report` into **Show Text 🆎** to read what was kept.
|
||||
|
||||
## Controls
|
||||
|
||||
- **image**: the edited picture, straight from the VAE Decode.
|
||||
- **edit_lock**: from Edit Lock 🆎. It carries your original picture and
|
||||
the map of what the edit changed, so there is nothing else to wire.
|
||||
- **Feather** (`feather`): how softly your original fades into the edit,
|
||||
in pixels. 16 is the default. The fade lies outside the edit, so the
|
||||
edit itself is never mixed with the old picture.
|
||||
- **Remove tint** (`remove_tint`): on by default. MiniMax H3 Image makes
|
||||
every edit a little pinker and lighter all over. This reads that tint
|
||||
from the part of the picture the edit left alone and takes it out of the
|
||||
whole picture, the edit included. It matters most when Edit Lock stepped
|
||||
aside, such as for a new hair color, a new background or rain, because
|
||||
then nothing else removes it. Edits meant to recolor everything (golden
|
||||
hour, red light, a new art style) are left alone. Turn it off if a color
|
||||
change you asked for comes out weaker.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **image**: the edit, with your original pixels in the untouched parts.
|
||||
- **edit_mask**: white where the edit changed the picture. Use it to see
|
||||
what the lock decided, or for a later step that should only touch the
|
||||
edit.
|
||||
- **report**: one line, such as "Edit Lock kept 82% of your picture as it
|
||||
was and left 18% to the edit". When the tint was taken out it adds a
|
||||
sentence that says so.
|
||||
|
||||
## When nothing was locked
|
||||
|
||||
Your original pixels are not pasted back, the mask is all white, and the
|
||||
report says why: the edit changed the whole picture, the lock was off, or
|
||||
the picture and the result were different sizes. Remove tint still works
|
||||
here, so the picture can come out with the tint taken out.
|
||||
|
||||
## Technical details
|
||||
|
||||
The map of what changed is made while sampling, on the latent grid. Here
|
||||
it is enlarged to the picture's size, widened by the feather and blurred
|
||||
by the same amount, and used to blend the decoded picture with your
|
||||
original. If the decoded picture is not the size of your original (after
|
||||
an upscale), the original is resized to fit first, which costs it some
|
||||
sharpness. That is why this node goes before an upscaler.
|
||||
|
||||
**Remove tint.** The edit is lined up with your original (edits often come
|
||||
back about one percent larger or a little shifted), both are averaged
|
||||
into coarse cells of about 8 px at 1 megapixel, and their difference is
|
||||
taken in Lab color. The tint is the even shift most cells share: it starts
|
||||
at the median and keeps only cells within 4 Lab units of it, five times
|
||||
over, so a new background or new hair drops out of the count. It is taken
|
||||
out only when it looks like the model's own tint: a between +0.5 and +10,
|
||||
b between -8 and 0, L between -1 and +6, read on at least 15% of the
|
||||
picture. On 21 test edits at 16 megapixels it took out the tint on the 5
|
||||
it should (a +2.6 to +6.5 down to +0.4 or less) and left the other 16
|
||||
alone, golden hour, red light and an anime restyle included. It cannot
|
||||
tell this tint from an edit that asks for a slightly pinker, lighter look
|
||||
over the whole picture; turn it off for one of those.
|
||||
@@ -0,0 +1,171 @@
|
||||
# Film Grain
|
||||
|
||||
Adds film grain to a picture or a video. Use it at the end of a workflow to
|
||||
give a clean render the texture of a photo shot on film, or to make a fake
|
||||
look less smooth and plastic.
|
||||
|
||||
The grain is strongest in the midtones and gentler in deep shadows and bright
|
||||
highlights, the way it is on film. On a video it moves from frame to frame
|
||||
like real film grain, or stays put if you want a still texture. An optional
|
||||
mask puts grain only where it is white.
|
||||
|
||||
The panel under the card shows the result once the node has run (the first
|
||||
frame for a video). The small **preview** switch at the right of the bar
|
||||
turns it off, which also skips writing the preview file.
|
||||
|
||||
## Auto
|
||||
|
||||
Switch **Auto** on and the node picks the grain for the picture. The grain
|
||||
looks the same on a small picture and on a big one, and it matches the grain
|
||||
the picture already has. A clean render, with no grain of its own, starts at
|
||||
the normal amount of `0.25`.
|
||||
|
||||
With Auto on, **Amount** and **Size** become multipliers. `1 ×` is Auto's
|
||||
pick, `1.5 ×` is half as much again, `2 ×` is twice as big. The small number
|
||||
beside each box is what you get ("= 0.27", "= 1.0 px"). It shows once the
|
||||
node knows the picture: right away from a Load Image, or after one run when
|
||||
the picture comes from another node. Until then it shows a dash.
|
||||
|
||||
Auto on and Auto off each keep their own numbers, so switching back loses
|
||||
nothing. Auto starts off, so workflows saved before it behave as they did.
|
||||
|
||||
## Copy the grain of another picture
|
||||
|
||||
Wire a picture whose grain you like into **grain_from** and switch Auto on.
|
||||
Its switch now reads **match**: the node reads how strong, how big and how
|
||||
colourful that picture's grain is, and adds grain like it. A film scan, a
|
||||
still from a film or a photo you like all work.
|
||||
|
||||
- **Amount**, **Size** and **Color** count from the match, the same way as
|
||||
Auto's pick: `1 ×` is the match, and the small number beside each box is
|
||||
what you get. **Roughness** stays yours; the match does not read it.
|
||||
- Grain is matched at the same viewing size. The picture to copy from is
|
||||
scaled to your picture's size first, so grain from a big photo comes out
|
||||
finer on a small picture, as it would look side by side on screen.
|
||||
- Only the plainest patches are read: a sky, a wall, skin. A picture that is
|
||||
all busy texture (gravel, leaves, a tiled floor) reads stronger grain than
|
||||
it has; turn **Amount** down, or copy from a plainer picture.
|
||||
- Grain your picture already has counts. A grainy picture gets only the
|
||||
grain it is missing, and a reference with less grain than yours adds none.
|
||||
- The match is worked out when the node runs. Until the first run the
|
||||
numbers show a dash and the picture asks for a run; after it, the live
|
||||
preview uses the match while you drag. A video is read from its first
|
||||
frame, and so is a video wired in to copy from.
|
||||
- The node remembers the match for each pair of pictures it ran, and saves
|
||||
it with the workflow. A reopened workflow shows it at once, and so does a
|
||||
run ComfyUI skips because nothing changed.
|
||||
- Without a picture on grain_from, Auto picks the grain as above. Auto off
|
||||
ignores grain_from.
|
||||
|
||||
## Live preview
|
||||
|
||||
Once the node has a picture, the picture on the node redraws while you drag a
|
||||
value, before you queue anything. Run the graph once to give the node its
|
||||
picture (an image connected is enough once it has run; a Load Image shows at once); after that it changes as you drag. A small "not run yet" tag
|
||||
shows while the picture is a preview and not a real result.
|
||||
|
||||
The **Fit | 100%** switch sits on the bar above the picture, left of Preview.
|
||||
Fit shows the whole picture. 100% shows real pixels, and dragging on the
|
||||
picture moves around it instead of moving the node. At 100% you see the grain at the size it will have in the saved picture.
|
||||
|
||||
|
||||
## Controls
|
||||
|
||||
- **Auto** (`auto`): off uses the Amount and Size you set. On, the node
|
||||
picks them for the picture, or reads **match** and copies the grain of the
|
||||
picture on grain_from.
|
||||
- **Amount** (`amount`): how strong the grain is. `0` adds none, `0.25` is a
|
||||
clearly visible film look, `1` is very heavy.
|
||||
- **Size** (`size`): how big each grain is, in pixels of this picture. `1` is
|
||||
fine 35 mm grain on a picture of about 1 megapixel. Raise it on a big
|
||||
picture, or for a coarse, fast-film look. Below `1` the grain is smaller
|
||||
than a pixel, so it also gets quieter.
|
||||
- **Roughness** (`roughness`): `0` is soft, even grain. Higher mixes in finer
|
||||
grain that bunches up in some places and thins out in others, like real
|
||||
film.
|
||||
- **Color** while matching (`auto_color`): a multiplier of the matched
|
||||
colour. `0` turns the copied grain black-and-white.
|
||||
- **Color** (`color`): `0` is black-and-white grain, the same in red, green
|
||||
and blue. Higher gives each colour its own grain, like the dye clouds of
|
||||
colour film. A little (`0.2` to `0.4`) looks most natural on colour
|
||||
pictures.
|
||||
- **Video grain** (`moving`): **moving** gives every frame of a video new
|
||||
grain, so it moves like film. **still** puts the same grain on every
|
||||
frame, which looks like a texture on the lens. A single picture looks the
|
||||
same either way.
|
||||
|
||||
### Behind **More**
|
||||
|
||||
- **Seed** (`seed`): picks the grain pattern. The same seed always gives
|
||||
the same grain, so a re-run gives the same picture. Change it for another
|
||||
pattern.
|
||||
|
||||
### Inputs and output
|
||||
|
||||
- **image**: the picture or video frames.
|
||||
- **grain_from** (optional): a picture whose grain to copy while Auto is
|
||||
on. It can be any size and shape.
|
||||
- **mask** (optional): grain goes only where the mask is white, and fades
|
||||
in with a soft mask. One mask can cover every frame, or give one per
|
||||
frame. A mask of another size is stretched to the picture.
|
||||
- **image** (output): the picture or frames with grain, at the same size. A
|
||||
picture with a transparent background keeps its transparency.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Auto's size is `1` pixel at 1 megapixel and follows the square root of the
|
||||
picture's megapixels, so a 4 MP picture gets `2` px (kept between 0.5 and
|
||||
16 px). Its amount is `0.25` plus the picture's own grain divided by
|
||||
`0.15`, kept between `0.05` and `1`.
|
||||
- The picture's own grain is measured in its flat areas: a Laplacian-
|
||||
difference filter (Immerkaer, 1996) removes shapes and leaves fine noise,
|
||||
and the median of what is left, read from a histogram, gives the noise as
|
||||
one standard deviation. Edges and texture are a small part of a picture, so
|
||||
the median ignores them. Below `0.0015` (what 8-bit rounding alone
|
||||
measures) counts as no grain. A clip is measured on up to four frames.
|
||||
The browser measures a Load Image's picture with the same filter, so the
|
||||
note beside the boxes agrees with the node's result.
|
||||
- `auto_amount` and `auto_size` are separate inputs from `amount` and
|
||||
`size`, which is why each mode keeps its own numbers.
|
||||
- The grain match (`nodes/_grain_match_helpers.py`) scales the picture to
|
||||
copy from to the target's megapixels, its shape kept, and reads both
|
||||
pictures' first frames. Each is shrunk by 1 to 12 times; at each size the
|
||||
fine detail (mean absolute Laplacian, as a standard deviation) of the
|
||||
plainest fifth of the mid-tone 16 px blocks gives the brightness grain, and
|
||||
the same blocks of two colour-difference channels give the colour grain.
|
||||
The target's own grain at each size is taken off (in quadrature). How the
|
||||
grain falls off over the sizes is fitted, in log space, to a stored table
|
||||
of Film Grain's own grain at sizes 1 to 16 px and colours 0 to 1
|
||||
(`nodes/_grain_match_table.py`), with a mild pull toward size 1; grain
|
||||
smaller than a pixel reads as size 1 and a lower amount, which looks the
|
||||
same. The colour comes from the colour grain against the brightness grain,
|
||||
and the amount is checked twice by adding the grain to the target and
|
||||
correcting it. On Film Grain's own grain the match reads back its settings
|
||||
(0.40 / 2.0 px / 0.3 reads 0.41 / 2.0 px / 0.3); a 1 MP pair takes about
|
||||
a third of a second on the CPU.
|
||||
|
||||
- Grain is random noise drawn on a grid `size` pixels apart and smoothed up
|
||||
to the picture with a bicubic filter, then scaled back to the same
|
||||
strength. Below 1 pixel it is drawn finer and averaged down to the
|
||||
picture, so its strength falls with its size.
|
||||
- Roughness adds a second layer at half the size whose strength is varied by
|
||||
a slow noise four grains wide, mixed so the total strength stays the same.
|
||||
Extreme values are rounded off softly at three standard deviations, so no
|
||||
lone white or black speck appears.
|
||||
- At **Amount** `1` one standard deviation of the grain is `0.15` (on a
|
||||
`0` to `1` scale) at mid grey, falling to a fifth of that at black and
|
||||
white. The weight follows the picture's own brightness, `4 L (1 - L)`.
|
||||
- Every frame's grain has its own seed, worked out from the node's seed and
|
||||
the frame number, so a frame's grain does not depend on how long the clip
|
||||
is. Frames are worked on eight at a time: 81 frames at 1920 x 1080 take
|
||||
about 12 seconds on a desktop CPU, with only a few frames' worth of extra
|
||||
memory.
|
||||
|
||||
### Live preview
|
||||
|
||||
The preview runs the node's own maths in the browser: on a copy shrunk to the
|
||||
size it is shown at in Fit, and on a real-pixel crop of the picture in 100%.
|
||||
It is checked against the Python node on recorded values (`tests/test_live_parity.py`);
|
||||
results agree to within 5e-5 on a 0 to 1 scale. The picture is the one the
|
||||
last run kept, or a Load Image read through ComfyUI's own view route. When
|
||||
the values match the last run, the real result is drawn instead.
|
||||
@@ -0,0 +1,69 @@
|
||||
# FlashVSR Upscale
|
||||
|
||||
Makes a video larger and sharper. Give it the frames of a clip, set how much
|
||||
larger, and it returns the same clip with more detail. Use it as the last
|
||||
step before Save Video, for a generated clip or one you loaded.
|
||||
|
||||
It needs one model file and no other pack.
|
||||
|
||||
## The model file
|
||||
|
||||
Download `flashvsr_v1.1_fp16.safetensors` (3.5 GB) from
|
||||
[ausboss/FlashVSR-v1.1-ComfyUI](https://huggingface.co/ausboss/FlashVSR-v1.1-ComfyUI)
|
||||
and put it in `ComfyUI/models/diffusion_models`. Then refresh the page, or
|
||||
press `R`, and pick it under **Model**.
|
||||
|
||||
The file holds the official FlashVSR v1.1 weights in one piece. Another
|
||||
FlashVSR file will not load here: the node stops and says which part is
|
||||
missing.
|
||||
|
||||
## Controls
|
||||
|
||||
- **frames**: The clip, as a batch of frames. Load Video's frames output
|
||||
goes here.
|
||||
- **Model** (`model`): The model file above. The list shows the files in
|
||||
`diffusion_models` that have FlashVSR in their name.
|
||||
- **Scale** (`scale`, starts at `2`): How many times larger each side gets,
|
||||
from 1 to 4. At `1` the clip keeps its size and is only sharpened.
|
||||
- **Keep colors** (`color_match`, starts on): Brings each frame's colours
|
||||
back to those of your clip. Leave it on unless you want the model's own
|
||||
colours.
|
||||
- **vae** (optional): Connect the Wan 2.1 VAE for a slower, finer finish.
|
||||
With nothing connected, the fast decoder inside the model file makes the
|
||||
picture.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **frames**: The larger frames, as many as went in, in the same order.
|
||||
The frame rate and the sound are not touched, so wire those from Load
|
||||
Video to Save Video as before.
|
||||
|
||||
## What to expect
|
||||
|
||||
FlashVSR redraws fine detail: skin, hair, cloth and edges come back
|
||||
sharper than the clip had them. It keeps the scene, the motion and the
|
||||
timing.
|
||||
|
||||
A long clip needs no more graphics memory than a short one. The node reads
|
||||
the clip a few frames at a time and keeps only the last few in memory.
|
||||
|
||||
## Technical details
|
||||
|
||||
- **Size.** The result is exactly your size times **Scale**, rounded to
|
||||
even numbers. Inside, the model works at a multiple of 128 pixels each
|
||||
way; the node pads the picture for that and cuts the padding off again,
|
||||
so nothing of your picture is cropped.
|
||||
- **Graphics memory.** About 10 GB for a 576 x 1024 result. A result too
|
||||
large for the free memory is made in overlapping tiles and blended, and
|
||||
the tile size is chosen from the memory that is free when the node runs.
|
||||
1152 x 2048 ran in two tiles at about 16 GB. On an 8 GB card (RTX 3070
|
||||
Laptop) the same result ran in smaller tiles at about 6.5 GB, at about 3
|
||||
seconds a frame.
|
||||
- **Speed.** On an RTX 5090: about 7 frames a second for a 576 x 1024
|
||||
result and about 2 frames a second for 1152 x 2048.
|
||||
- **One step.** The model runs once per group of frames. There are no
|
||||
steps, sampler, prompt or seed to set.
|
||||
- **The model.** FlashVSR v1.1 by Junhao Zhuang and the OpenImagingLab
|
||||
team, released under Apache-2.0. It is built on the Wan 2.1 1.3B video
|
||||
model. This node is the pack's own code in plain PyTorch.
|
||||
- The node makes no network requests and writes no files.
|
||||
@@ -8,6 +8,11 @@ every node that needs it, and change it in one place.
|
||||
- **Value** (`value`): The number to send out. It starts at `0`. The box
|
||||
shows the decimals its steps use (`0.00`) and holds up to three, so a
|
||||
typed `0.125` stays `0.125`.
|
||||
- The gear, right: **Look**. **normal** is the usual box with its label.
|
||||
**big** shows the number large in the middle of the node, with an arrow
|
||||
on each side, for a setting people change on every run, such as the
|
||||
length of a clip. A drag and typing work the same. Each node keeps its own look, and it is
|
||||
saved with the workflow.
|
||||
|
||||
## Limits
|
||||
|
||||
@@ -44,3 +49,7 @@ into **Math Expression 🆎** instead of retyping derived numbers.
|
||||
API is passed on as it is.
|
||||
- Wired only to inputs that share no value (one stops at 1, the other starts
|
||||
at 2), the box keeps no limits.
|
||||
- The look is stored in the node's properties as `ausboss_text_look: "big"`, the
|
||||
same as Text 🆎. It is not an input, so the saved value and what the node
|
||||
sends are the same in both looks, and an older version of the pack shows
|
||||
the usual box.
|
||||
|
||||
@@ -24,12 +24,16 @@ frame are copied untouched, and only the true in-betweens are synthesized.
|
||||
|
||||
## Scene cuts
|
||||
|
||||
Interpolating across a hard cut produces morph artifacts: two unrelated
|
||||
shots smeared into each other for a frame or two. When the mean absolute
|
||||
difference between adjacent source frames rises above **Scene cut**
|
||||
(`scene_cut_threshold`), the node treats that pair as a cut and holds the
|
||||
last frame before it instead of morphing. Set the threshold to `0` to
|
||||
disable detection and interpolate everything.
|
||||
Making in-betweens across a hard cut mixes two shots into each other for a
|
||||
frame or two. The node finds each cut and holds the last frame before it
|
||||
instead.
|
||||
|
||||
A cut is a change between two frames that jumps out from the frames around
|
||||
it. That works even when both shots show the same place in the same light,
|
||||
where the change at a cut can be smaller than fast movement inside one
|
||||
shot. Any change above **Scene cut** (`scene_cut_threshold`) also counts as
|
||||
a cut, as it always has. Set it to `0` to turn cut finding off and make
|
||||
in-betweens everywhere.
|
||||
|
||||
## Controls
|
||||
|
||||
@@ -40,8 +44,10 @@ disable detection and interpolate everything.
|
||||
source rate passes the batch through unchanged. A new node starts at
|
||||
24 → 30.
|
||||
- **Method** (`method`): `blend` or **optical flow (RAFT)**, as described above.
|
||||
- **Scene cut** (`scene_cut_threshold`): Cut sensitivity from 0 to 1; `0.35`
|
||||
suits most footage, `0` disables.
|
||||
- **Scene cut** (`scene_cut_threshold`): A change above this always counts
|
||||
as a cut; `0.35` suits most footage, and `0` turns cut finding off. Cuts
|
||||
that jump out from the frames around them are found at any setting above
|
||||
`0`.
|
||||
- **Batch** (`batch_size`, starts at `8`): In-between frames computed per batch. Higher is
|
||||
faster but uses more VRAM; results land in system memory as each batch
|
||||
finishes.
|
||||
@@ -55,3 +61,33 @@ disable detection and interpolate everything.
|
||||
|
||||
Neither method performs network requests or writes files. The optical-flow
|
||||
method reads an existing checkpoint from the local torch hub cache.
|
||||
|
||||
## Technical details
|
||||
|
||||
### How cuts are found
|
||||
|
||||
The node makes a small copy of every frame, 64 px on its long side. Each
|
||||
4 px block of a frame looks for its best match in the frame before it,
|
||||
moved up to 3 px each way. Movement inside a shot finds its match, so what
|
||||
is left is small; after a cut the picture is new and the change stays
|
||||
large, even with the same colors on both sides.
|
||||
|
||||
That leftover change is compared with the median of the 4 frame pairs on
|
||||
each side. A pair is a cut when it is at least 3 times that median and
|
||||
above 0.02 (on a 0 to 1 scale), so grain in a still shot never counts.
|
||||
Repeated frames, as in footage drawn on twos or threes, are left out of the
|
||||
median. A pair is also a cut when its plain mean difference over the full
|
||||
frame is above **Scene cut**, the rule earlier versions used on its own, so
|
||||
no cut those versions found is lost.
|
||||
|
||||
Measured on seven MiniMax H3 clips with 29 cuts, among them a rooftop clip
|
||||
whose three cuts scored 0.14 to 0.17 on the plain difference and a street
|
||||
clip that moved 0.15 inside one shot: every cut stood out at least 4.1
|
||||
times from its neighbours, and movement inside a shot at most 1.9 times.
|
||||
All 29 were held and nothing inside a shot was. The plain rule alone,
|
||||
at `0.35`, held 2 of them.
|
||||
|
||||
A cut straight into very fast movement, more than about a twentieth of the
|
||||
frame from one frame to the next, can stand out less from the shot after
|
||||
it. A clip of two frames has nothing to compare with; there only the
|
||||
plain rule applies.
|
||||
|
||||
@@ -0,0 +1,374 @@
|
||||
# H3 Prompt Writer
|
||||
|
||||
Type what happens, one line for each moment. Leave a blank line to cut to a new
|
||||
place. The node writes H3's full prompt for you, and you never see its format.
|
||||
|
||||
Use it with MiniMax H3 or Pika H3 Flex. Connect up to four pictures and give each
|
||||
one a job. Copy the moves from a video, keep a clip going, or add a voice or a
|
||||
song.
|
||||
|
||||
## Sockets appear as you use them
|
||||
|
||||
The node shows only the sockets you are using, so its face stays small.
|
||||
|
||||
- A new node has one picture socket. Connect a picture and the next one
|
||||
appears, up to four.
|
||||
- **video_sound** appears once a video is connected.
|
||||
- An output appears once its input is connected: connect two pictures and
|
||||
two picture outputs show. **song_under** needs a voice and a song, and
|
||||
**keeps_clip_sound** a video. **prompt**, **frames**, **width** and
|
||||
**height** are always there.
|
||||
- A socket with a wire on it always shows.
|
||||
- The picture chips under the words work the same way: a chip shows for each
|
||||
picture or video you plugged in. If its loader is turned off, the chip
|
||||
turns faint and says **off**.
|
||||
|
||||
Nothing changes in a workflow you already saved: every wire stays where it
|
||||
was and the node sends the same things. To see every socket and chip all the
|
||||
time, pick **all** under **Sockets** in the gear menu (the gear at the top
|
||||
right of the node), or turn on **Settings → 🆎 AusBoss → H3 Prompt Writer →
|
||||
Show every socket**. Both are the same setting.
|
||||
|
||||
## How to write it
|
||||
|
||||
Every line is a moment, and the lines play in order in one shot. The bar under
|
||||
the box shows the second each one starts, before you spend a run.
|
||||
|
||||
```
|
||||
@1 walks through a crowded night market toward us, looking over her shoulder.
|
||||
@1 stops and looks up at the lanterns.
|
||||
|
||||
@1 stands at the edge of a rooftop in the rain, her back to us.
|
||||
@1 slowly turns her head toward us.
|
||||
```
|
||||
|
||||
That is two shots in two places. `@1` is Picture 1. With one person you can
|
||||
write `She` or `He` instead.
|
||||
|
||||
Your words go into the prompt as you typed them. To hear something at a
|
||||
moment, say it in that line: `Thunder cracks overhead.` For a sound under the
|
||||
whole clip, add a `sound:` line, such as `sound: rain on the windows`. When
|
||||
something should stay the way it changed, say so in the later lines too:
|
||||
`The lights are still off.`
|
||||
|
||||
## The words box and the bar
|
||||
|
||||
The words the node acts on light up as you type: `@1` in teal (amber when
|
||||
nothing is plugged in there), a time like `3s:` in amber, words in quotes in
|
||||
yellow, and a blank line shows as a line marked CUT. Hover the `?` beside
|
||||
"What happens" for a short list of everything you can type.
|
||||
|
||||
Typing `@` lists the pictures you plugged in, with their job. The first letters
|
||||
of a line offer `sound:`, `music:`, `camera:` or `look:`, and after `camera:` or
|
||||
`look:` you get the node's own choices. Tab picks one, Esc closes the list.
|
||||
|
||||
The bar under the box is the clip from start to end, one block for each moment
|
||||
with the pictures it names:
|
||||
|
||||
- **Drag a block** along the bar to move its line. The times and cuts stay
|
||||
where they are.
|
||||
- **Drag the left edge** of a block to set when that moment starts. The node
|
||||
types the time (`3s:`) into its line for you.
|
||||
- **Click the left edge** to add or take out a cut there.
|
||||
- **Click a block** to pick out its line in the words, ready to change.
|
||||
|
||||
Everything on the bar changes the words, so Ctrl+Z undoes it.
|
||||
|
||||
## Give each picture a job
|
||||
|
||||
Pick a job for each picture under the words, then name it in your lines with
|
||||
`@1`, `@2`, `@3` or `@4`.
|
||||
|
||||
- **person**: this person goes wherever your lines say. Name the place in the
|
||||
line, or name none and they stay where the picture shows. Use a clear photo.
|
||||
- **character sheet**: one character drawn from several sides. Only the
|
||||
character is used, not the panels.
|
||||
- **place**: where it happens. Use a picture with nobody in it.
|
||||
- **outfit**: clothes for your person. Works best with no head in the picture.
|
||||
- **thing**: an object or a product. Works best with nobody in the picture.
|
||||
- **style**: only the look is used, for the whole clip.
|
||||
- **start on it**: the clip starts from this picture and stays in its place.
|
||||
- **end on it**: the clip lands on this picture. It can't be named in a line.
|
||||
|
||||
Some scripts, with the jobs they need:
|
||||
|
||||
```
|
||||
@1 sits at the counter in @2. Picture 2 is a place
|
||||
@1 and @2 sit side by side on a night bus. Picture 2 is a person
|
||||
@1 walks down a runway wearing @2. Picture 2 is an outfit
|
||||
@1 spins slowly on a black glass table. Picture 1 is a thing
|
||||
```
|
||||
|
||||
A picture that is off simply isn't counted. If a line still names it, the node
|
||||
stops and tells you which one. It needs at least one picture or a video to start
|
||||
from.
|
||||
|
||||
## Use a video
|
||||
|
||||
Connect a video, then pick what it is for:
|
||||
|
||||
- **copy its moves**: someone does the moves in the video. With a picture of
|
||||
your person, your person does them. Say where in your lines:
|
||||
`@1 dances on a rooftop at sunset.` With no person picture, the person in
|
||||
the video keeps their own moves and goes somewhere new: give a picture the
|
||||
job **place** and type `He dances in @1.` The clothes can come from words or
|
||||
from an outfit picture. It doesn't have to be a person: give a cartoon hand,
|
||||
a toy or a mascot the job **thing** and type `@1 waves.` It does the moves in
|
||||
its own look, and nothing of the video's subject is kept.
|
||||
- **swap the person**: your person takes over from the one in the video. The
|
||||
place, the moves and the camera stay. With two person pictures, the first
|
||||
replaces the person on the left and the second replaces the person on the
|
||||
right. To choose who goes, type one line per picture, for example
|
||||
`@1 replaces the man in the hat`. Put spoken words in quotes and name
|
||||
the speaker. If a voice comes from off screen, say so in the line.
|
||||
A line like `@1 dances.` is not read as who goes; only a description such
|
||||
as `the man in the hat` is. With two people, name who speaks.
|
||||
- **change something**: keep the video and describe the change, for example
|
||||
`She wears a red raincoat`. Be specific about what should change. To change
|
||||
the whole look, connect a picture with the job **style** (or **place**, for
|
||||
the same room looking different) and type `It looks like @1.` A clip with
|
||||
nobody in it, such as an empty hallway, stays empty.
|
||||
- **keep going**: more of the same clip, from where it ends. Say what happens
|
||||
next, or leave the box empty and it just carries on. Connect the whole clip:
|
||||
the node sends H3 only the last 2 seconds.
|
||||
- **new voice**: the same clip with a new voice. Connect the voice, and type
|
||||
what they say in quotes.
|
||||
This keeps the person in the clip, so a person picture is not allowed here;
|
||||
use **swap the person** to change who is in it.
|
||||
|
||||
If your swap keeps the video's audio, connect it to **video_sound** (it shows
|
||||
once a video is connected) and turn on
|
||||
**More → Clip's own sound**. The writer uses the clip to estimate when each
|
||||
line is spoken and keeps only the incoming people's words in the swap prompt.
|
||||
Type a time such as `3.2s:` to set it yourself. This switch starts off.
|
||||
|
||||
With an active video, **copy its moves**, **swap the person**, **change
|
||||
something** and **new voice** use the incoming clip to set the frame count. **Length** says **From the clip**;
|
||||
set the clip's length upstream. The bar does not show a guessed duration or offer
|
||||
retiming controls for these jobs. H3 rounds the frame count to a supported length.
|
||||
Other video jobs, or turning the video off, use the editable **Length** again.
|
||||
|
||||
For a swap, you can optionally describe the replacement on its own line:
|
||||
|
||||
```
|
||||
the woman with black hair walking toward the camera
|
||||
@1 looks like a woman with blonde hair and a black hoodie.
|
||||
```
|
||||
|
||||
The first line chooses who goes; the `@1 looks like` line describes the connected
|
||||
replacement person in Picture 1. Use the number of that picture, with its job set
|
||||
to **person** or **character sheet**. This helps describe the intended appearance;
|
||||
it does not guarantee an exact identity match. The line is optional: existing
|
||||
workflows and scripts keep their previous behavior when it is absent.
|
||||
|
||||
## What you can type
|
||||
|
||||
- **A time**: start a line with `3s:` and it happens at 3 seconds.
|
||||
- **A cut in the same place**: start the line with a kind of shot, like
|
||||
`a close-up of her hand`. Any other line after a blank line goes to a new
|
||||
place.
|
||||
- **A cut back**: `Cut back to the hallway.` returns to a place you have
|
||||
already shown.
|
||||
- **One long take**: type `no cuts` and blank lines stop being cuts.
|
||||
- **An ending**: start a line with `ends on`, wherever it sits:
|
||||
`ends on her sitting by the window`.
|
||||
- **Speech**: put the words in quotes: `She says "we are late."` With two or
|
||||
more people, your sentence goes to H3 as you typed it, so write it the way
|
||||
you would tell a person: `@1 listens as @2 says "we are late."`
|
||||
- **Talking over a cut**: end the words with `...` and the line keeps going
|
||||
into the next shot, said once. On the last line, `...` means the clip ends
|
||||
mid-sentence.
|
||||
- **Words on a sign**: name the sign: `a neon sign reads "OPEN"`.
|
||||
- **Sound and music**: use the **Sound** and **Music** boxes, or type
|
||||
`sound: rain on a tin roof` and `music: slow sad piano`. With no music you get
|
||||
none, and the clip comes out quieter.
|
||||
- **Camera and look**: pick them on the node, or type your own:
|
||||
`camera: slow push in`, `look: a 1970s film`.
|
||||
|
||||
A `camera:` or `sound:` line inside a group of lines belongs to that shot. On its
|
||||
own, with blank lines around it, it is for the whole clip.
|
||||
|
||||
Already wrote H3's six parts yourself? Paste them in and they go through as
|
||||
they are.
|
||||
|
||||
## See and change the full prompt
|
||||
|
||||
The **Full prompt** tab at the top of the node shows the prompt the node wrote
|
||||
on its last run. To change one thing, such as taking out "A slow push in.",
|
||||
edit it there and run again: H3 gets your text exactly as it is in the box. An
|
||||
amber dot on the tab shows that an edit is being sent. **Reset to written**
|
||||
throws the edit away and goes back to what the **Simple** tab writes.
|
||||
|
||||
While an edit is in place, changes on the Simple tab do nothing, because your
|
||||
text is sent instead.
|
||||
|
||||
## What you can plug in
|
||||
|
||||
- **picture_1** to **picture_4**: your pictures.
|
||||
- **video** and **video_sound**: the frames and the sound of a video. **keep
|
||||
going** sends the last part of the sound to H3. A swap uses the sound to find
|
||||
speech timing when **Clip's own sound** is on. To keep source audio in a swap
|
||||
or **change something**, route the original loader's audio to the save node.
|
||||
- **voice**: a clip of someone talking, about 10 seconds, plus words in quotes
|
||||
in your script. It goes to whoever speaks first. With two or more people,
|
||||
put the speaker right before the words: `@2 says "hello."` It works with your own voice,
|
||||
or one you have permission to use. Put the spoken line last: with time left
|
||||
after it, H3 tends to keep talking.
|
||||
- **song**: your music. It is cut to the length of the clip and plays as it is,
|
||||
and each moment moves onto its beat.
|
||||
- **clip**: a small text model such as Qwen3-VL 8B. Type one line and it adds
|
||||
what happens next, and it names the sound of the place. Your line always stays
|
||||
first. Turn on **More → Tidy up my lines** and it also cleans up what you
|
||||
typed before the node reads it (see the controls below).
|
||||
|
||||
A voice and a song work together. H3 can't keep a song while someone speaks, so
|
||||
the node keeps the song out of H3's way and hands it on as **song_under**, turned
|
||||
down, to mix under the finished clip.
|
||||
|
||||
Then wire the node's outputs into H3: **prompt** into its prompt, **frames** into
|
||||
its length, each **picture** into its next `ref_image`, **video** into `ref_video`,
|
||||
**video_sound** into `ref_video_audio`, **voice** into its first `ref_audio`,
|
||||
**song** into the next one. The pictures come out in the order the prompt counts
|
||||
them, so a picture that is off leaves no gap. **width** and **height** go into
|
||||
H3's width and height: the clip takes the shape of your video, or else of your
|
||||
first picture. **song_under** goes into `audio2` of Audio Merge, with the clip's
|
||||
sound in `audio1`.
|
||||
|
||||
**keeps_clip_sound** is on when a video is connected and **Clip's own sound** is
|
||||
on, or the video job is **change something**. Use it to select the source audio
|
||||
for the finished clip. It is the last output; the existing outputs keep their
|
||||
positions. Keeping source audio still needs the workflow to pass that audio to
|
||||
its save node.
|
||||
|
||||
Nothing plugged in means nothing is added. So a page can turn each one on and off
|
||||
with [Workflow Switches](#AUSBOSS_NODES_WorkflowSwitches): a bypassed loader reads
|
||||
as not plugged in.
|
||||
|
||||
## The controls
|
||||
|
||||
- **Sound** (`sound`): what the clip sounds like, for the whole clip. Same as a
|
||||
`sound:` line.
|
||||
- **Music** (`music`): the music for the whole clip. Same as a `music:` line.
|
||||
- **Length** (`seconds`): how long the clip is, 4 to 15.
|
||||
- **Camera** (`camera`): how the camera moves the whole way through. The first
|
||||
choice adds no camera words. With a video wired it reads **from the video**:
|
||||
the camera does what it does in the video. Pick a move only to change it.
|
||||
- **Look** (`look`): from the picture keeps your photo's look. The others redraw
|
||||
the clip. Clay and 3D don't work from words, so change your picture first with
|
||||
an edit model.
|
||||
- **Picture 1** to **Picture 4** (`job_1` to `job_4`): what each picture is
|
||||
for, on the picture chips under the bar. A chip shows once its picture is plugged in.
|
||||
- **Video** (`video_job`): what the video is for, on the video chip.
|
||||
- **Song starts at** (`song_start`, under **More**): the second of the song to
|
||||
start from, so the clip gets the good part.
|
||||
- **Moments on the beat** (`cut_on_beat`, under **More**): moves each moment onto
|
||||
the nearest beat of the song. Off keeps your own seconds.
|
||||
- **Language** (`language`, under **More**): the language of the words in quotes.
|
||||
- **Tidy up my lines** (`tidy`, under **More**): the model on **clip** rewrites
|
||||
your lines first. It fixes spelling, breaks long lines into short sentences,
|
||||
and puts each spoken line right after whoever says it, so
|
||||
`@1 stares at @2 who goes "No way."` becomes `@1 stares at @2. @2 says "No way."`
|
||||
Your words in quotes are never rewritten: they are held out while it tidies
|
||||
and come back exactly as typed. Each line is tidied on its own, so blank
|
||||
lines and timed lines stay where you put them, and `camera:`, `sound:` and
|
||||
`music:` lines are left alone. If a tidied line would change who says what,
|
||||
that line is used as typed. A one-line idea is left as it is, for the model to fill out. With nothing on
|
||||
**clip** it does nothing, so a workflow can leave it on. Starts off.
|
||||
- **Full prompt** (`full_prompt`, on the Full prompt tab): your own edit of the
|
||||
finished prompt. Empty means the node's own prompt is sent.
|
||||
- **What the model is asked** (`model_asks`, in the gear menu): the four things
|
||||
the model on **clip** is asked, each with an **Edit** button. **Describe a new
|
||||
person** writes how a new person in a swap looks from their picture. **Fill in
|
||||
the next moments** writes what happens after a single typed line. **Hear the
|
||||
place** writes the steady sound of the place. **Tidy up my lines** holds the
|
||||
instructions for Tidy up. Change the words to steer the model; `{seconds}`,
|
||||
`{first}`, `{count}` and `{lines}` are filled in by the node. Your wording is
|
||||
saved in this node, so a shared workflow asks the same. **Back to built-in**
|
||||
puts the node's own wording back. They only matter with a text model plugged
|
||||
into **clip**. If your wording loses `{lines}` or another filled-in name,
|
||||
**Save** first says what the model will miss; press it again to keep it.
|
||||
**Esc** over typing you have not saved asks once before it closes.
|
||||
**Reset** at the bottom of the menu puts the sockets and all four wordings
|
||||
back at once; Ctrl+Z brings yours back.
|
||||
|
||||
## Tips
|
||||
|
||||
- About one moment a second is the most H3 can play. The line under the rows
|
||||
warns you, and it warns you when a spoken line won't fit its moment.
|
||||
- Say which way they face, and think about where they end up. If someone walks
|
||||
away from us, we see their back until a line turns them.
|
||||
- H3 draws each shot on its own. A cut to a new place hides that. A cut inside one
|
||||
place shows every gap, so keep a place in one shot and move the camera instead.
|
||||
- Nothing moves or exists unless a line says so. If the birds should fly, say so
|
||||
in that shot.
|
||||
- Say what you would see, not what someone feels. `She smiles` works.
|
||||
`She feels happy` doesn't.
|
||||
- A clip came out wrong? Run again with a new seed.
|
||||
|
||||
## Slots
|
||||
|
||||
| Slot | Direction | Type | Purpose |
|
||||
| --- | --- | --- | --- |
|
||||
| `script` | input | STRING | What happens, one line for each moment. |
|
||||
| `seconds` | input | INT | How long the clip is. |
|
||||
| `clip` | input, optional | CLIP | A small text model that fills in a one-line idea, and tidies your lines when Tidy up is on. |
|
||||
| `picture_1` to `picture_4` | input, optional | IMAGE | Your pictures. |
|
||||
| `video` | input, optional | IMAGE | The frames of a video. |
|
||||
| `video_sound` | input, optional | AUDIO | The video's own sound. |
|
||||
| `voice` | input, optional | AUDIO | A clip of the voice to use. |
|
||||
| `song` | input, optional | AUDIO | The music to use. |
|
||||
| `prompt` | output | STRING | The finished prompt. |
|
||||
| `picture_1` to `picture_4` | output | IMAGE | Your pictures, in the order the prompt counts them. |
|
||||
| `video` | output | IMAGE | The video, or only its end to keep going from. |
|
||||
| `video_sound` | output | AUDIO | The video's sound, when it should reach H3. |
|
||||
| `voice` | output | AUDIO | The voice, 15 seconds at most. |
|
||||
| `song` | output | AUDIO | The song, cut to the clip. Empty when a voice is connected too. |
|
||||
| `song_under` | output | AUDIO | With a voice and a song, the song to mix under the finished clip. |
|
||||
| `frames` | output | INT | The clip's length in frames. |
|
||||
| `width`, `height` | output | INT | The shape of your video, or else of your first picture. |
|
||||
| `keeps_clip_sound` | output | BOOLEAN | Whether the finished clip should use the video's own sound. |
|
||||
|
||||
## Technical details
|
||||
|
||||
Code does the reading, so nothing typed can be lost or moved. It follows Pika's
|
||||
and MiniMax's published prompt guides: every picture is defined once, each one
|
||||
states what is kept and how, and a person who changes clothes or moves to a new
|
||||
place is marked that way.
|
||||
|
||||
A timed shot mark makes H3 jump, whatever the words around it say: in tests 31 of
|
||||
36 one-take clips jumped within half a second of a mark. So a mark is written only
|
||||
for a real cut, and the moments of one take are sentences inside one shot. Clips
|
||||
written that way had no jumps in 4 of 4 tries.
|
||||
|
||||
The prompt always tells H3 not to keep the background of a person's picture. With
|
||||
a place in your lines the clip stayed there to the end on 2 of 2 tries; without
|
||||
that sentence the picture's street came back halfway through on 2 of 2. With no
|
||||
place in your lines H3 has nothing else to use, so it stayed in the picture's
|
||||
place on 2 of 2.
|
||||
|
||||
Tidy up sends the model one call per typed line, with its own instructions, no
|
||||
picture, and no randomness, so the same lines tidy the same way every run. Blank
|
||||
lines, `camera:`/`sound:`/`music:`/`look:` lines and the order of lines never pass
|
||||
through the model. Each quote is swapped for a marker (`SPOKEN`, or `SPOKEN1`,
|
||||
`SPOKEN2`) before anything else touches the line, so the model never sees the
|
||||
quoted words. A line's answer is used only when it is one line, every marker comes
|
||||
back once, the same `@` numbers are in it, it is not much longer than what you
|
||||
typed, each typed `@N says "..."` keeps the same person, a quote on a sign or a
|
||||
shirt stays on it, and the writer reads the whole script the same way with the
|
||||
tidied line in it: the same words said in the same order, shot and second, and the
|
||||
same cuts and timed seconds.
|
||||
Any other line is used as typed. If the writer still turns the tidied lines down,
|
||||
it uses your lines as typed. On Qwen3-VL 8B the instructions put the right speaker
|
||||
before the words on 38 of 38 lines they were not written for, took about 0.3
|
||||
seconds a call once the model was loaded, and passed every check on 77 of 79
|
||||
lines. What it still changes: "as" and "while" can become two sentences, and a
|
||||
leading `Voiceover:` label is left as typed.
|
||||
|
||||
The Full prompt tab is filled from the node's run, so it shows nothing until
|
||||
the workflow has run once. The node still writes its own prompt on every run, a
|
||||
model on `clip` included, so the tab can show it next to your edit and Reset can
|
||||
go back to it. The last written prompt is kept with the node in a saved
|
||||
workflow.
|
||||
|
||||
H3's own rewriter runs only on paid services, and the open model reads a prompt as
|
||||
it is. This node does that job on your machine, with no model needed.
|
||||
@@ -10,7 +10,7 @@ original back over the result.
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Pick a picture under **Image source**, or click **Upload**. Dropping a
|
||||
1. Choose a file above the preview, or click **Load**. Dropping a
|
||||
picture onto the node works too.
|
||||
2. Drag the handles on the picture. Cyan squares crop. Orange diamonds add space
|
||||
on one side. Orange corners make the whole canvas bigger or smaller. The
|
||||
@@ -24,25 +24,38 @@ pan. **Save & close** keeps your edits. **Cancel** or Escape puts everything
|
||||
back, and asks first if anything changed. You do not need the editor: a run
|
||||
uses what the node shows.
|
||||
|
||||
Right-click the picture and choose **Copy image** to copy the original picture,
|
||||
without added padding, rotation, crop, resize, handles or guides. To include
|
||||
your edits, open the gear and turn on **Copy with crop, rotation and padding**.
|
||||
That also includes resize, and is remembered for this browser. **Open image**
|
||||
follows the same choice. This works on the node and in the editor.
|
||||
Direct copying needs localhost or HTTPS. On a plain HTTP address, choose
|
||||
**Open image**, then right-click that
|
||||
picture and use the browser's **Copy image**.
|
||||
|
||||
## On the node
|
||||
|
||||
From top to bottom:
|
||||
|
||||
- **Image source**: the pictures in ComfyUI's input folder. The list shows the
|
||||
picture under the pointer and filters as you type. **Upload** adds one. The
|
||||
gear holds the node's display options.
|
||||
- **File picker**: choose **Inputs** for uploaded pictures or **Outputs** for renders, newest first. The list shows the
|
||||
picture under the pointer and filters as you type. **Load** adds one. A
|
||||
picture ComfyUI made, named like `photo.png [output]`, loads too, as it does
|
||||
in core Load Image. The gear holds the node's display options.
|
||||
- **The picture**, with its handles.
|
||||
- **The size line**: each step that sets the output size, ending with the size
|
||||
the run gives you.
|
||||
- **The ratio row**: the orientation button, the ratios (1:1, 4:3, 3:2, 16:9,
|
||||
21:9) and the padlock.
|
||||
- **Fit** (crop | pad) and **Divisible by**.
|
||||
- **Fill**, **Feather**, **Resize** and the two **Center** buttons.
|
||||
- **Crop, pad & resize**: a collapsible group (closed to start, with the fill
|
||||
swatch and a short summary on its bar) holding:
|
||||
- **Aspect ratio** and **Fit to ratio** (Crop or Pad), above the orientation button, the ratios (1:1, 4:3, 3:2, 16:9,
|
||||
21:9) and the padlock.
|
||||
- **Align** and the two **Center** buttons.
|
||||
- **Fill** and **Feather**.
|
||||
- **Resize**, with **Megapixels** and **Step** alongside it when Resize is on.
|
||||
- **Open editor**, **Reset crop** and **Reset**.
|
||||
|
||||
Crop and padding have no number boxes. You set them by dragging, and the size
|
||||
line shows the result. Picking another picture starts the framing over
|
||||
(rotation, crop and padding); Fill, Feather, Divisible by, Resize and a lit
|
||||
(rotation, crop and padding); Fill, Feather, Align, Resize and a lit
|
||||
ratio stay.
|
||||
|
||||
### Ratios, Fit and the padlock
|
||||
@@ -50,8 +63,7 @@ ratio stay.
|
||||
Tap a ratio under the picture to pad the picture to it: every pixel stays and
|
||||
fill bands are added around it, centred. Set **Fit** to crop and the ratio trims
|
||||
the picture instead. Tap the lit ratio again to go back to the whole picture.
|
||||
**Fit** only acts on a lit ratio, so it is dimmed and says "pick a ratio first"
|
||||
until you tap one.
|
||||
You can set **Fit to ratio** before picking a ratio. If a ratio is already lit, switching between Crop and Pad applies it immediately.
|
||||
|
||||
- **A lit ratio is the shape the canvas has now.** Drag a handle to another
|
||||
shape and the ratio goes dark; the row says **Custom** and the size line under
|
||||
@@ -84,11 +96,11 @@ sides at once, so the picture keeps its place in the middle. You can press or le
|
||||
go of Alt during the drag. A corner stops when one of its two sides has no padding
|
||||
left to take away.
|
||||
|
||||
The two **Center** buttons next to Fill, Feather and Resize put the picture in
|
||||
the middle of the canvas: one side to side, one top to bottom. They move padding from
|
||||
one side to the other, so the canvas keeps its size and a lit ratio stays lit. A
|
||||
button is dimmed when the picture is already in the middle or that way has no
|
||||
padding to move. On a narrow node they sit on a line of their own.
|
||||
**Center** moves the crop to the middle of the rotated source, side to side or
|
||||
top to bottom. If there is padding on that axis, the same click also balances
|
||||
the bands around the crop. The crop and output keep their sizes, and the
|
||||
generated mask follows the new placement. Each button dims when its axis is
|
||||
as centered as the pixels allow.
|
||||
|
||||
The orange diamonds move one side at a time, and the padlock works on them as
|
||||
described above. The corners keep the shape with or without the padlock. The
|
||||
@@ -111,9 +123,9 @@ green rotate knob moves aside when a corner handle sits where it usually goes.
|
||||
**Method** (`resize_method`) is in the editor, under **Resize output**.
|
||||
The edge between your picture and the fill stays one clean line at any size.
|
||||
|
||||
### Divisible by
|
||||
### Align
|
||||
|
||||
**Divisible by** (`canvas_multiple`) makes the width and height divide evenly by
|
||||
**Align** (`canvas_multiple`) makes the width and height divide evenly by
|
||||
the number you pick. Some models need sizes divisible by 8, 16 or 32. At 1 it is
|
||||
off. Its arrows go 1, 8, 16, 24 and so on; hold Shift to step by 1.
|
||||
|
||||
@@ -129,24 +141,23 @@ or bottom.
|
||||
The line under the picture names every step that sets the output size, in the
|
||||
order the run applies them, with the size the run emits last and brightest:
|
||||
`crop 2080×1170 → pad 2208×1298 → round to 64 2240×1344 → resize 1344×768`. A step
|
||||
that changes nothing is left out, and "round to" is **Divisible by** at work. An
|
||||
that changes nothing is left out, and "round to" is **Align** at work. An
|
||||
amber line warns when rounding each side to the Step stretches the picture by
|
||||
more than 1% (`1.5% taller: each side rounds to 32 px`); its tooltip names a
|
||||
Step that avoids it, and with Fit on pad, **Even out** adds a few pixels of
|
||||
padding so nothing stretches. It also warns when the resize undoes **Divisible
|
||||
by**. Hover the line for the same breakdown line by line; the editor's right
|
||||
more than 1% (`Resize makes the picture 1.5% taller`); its tooltip names a
|
||||
Step that avoids it, and with Fit on pad, **Pad to keep shape** adds a few pixels of
|
||||
padding so nothing stretches. It also warns when the resize undoes **Align**. Hover the line for the same breakdown line by line; the editor's right
|
||||
panel shows it too.
|
||||
|
||||
The amber line keeps still while you drag a handle or a number. If the drag
|
||||
makes it untrue it goes away, and the line for the new size comes back a
|
||||
moment after you let go. With Resize on its row is always on the node, with
|
||||
text or empty, so the controls under it stay where they are.
|
||||
moment after you let go. The space for the warning stays under the dimensions. On a narrow node, hover
|
||||
over shortened text to read it in full.
|
||||
|
||||
### Reset crop and Reset
|
||||
|
||||
**Reset crop** shows the whole picture again without changing rotation or
|
||||
padding. **Reset** clears rotation, crop and padding and turns the padlock off;
|
||||
Fill, Feather and **Divisible by** stay.
|
||||
Fill, Feather and **Align** stay.
|
||||
|
||||
## Drawing a mask
|
||||
|
||||
@@ -166,8 +177,7 @@ your picture stays under them in **image**, **original** and
|
||||
the teal.
|
||||
|
||||
See-through parts of a PNG show in teal the same way, because the node paints
|
||||
them too. To hide the teal, click the gear at the top right of the image
|
||||
source box and turn off **Show the mask on the picture**. The choice applies
|
||||
them too. To hide the teal, click the gear next to **Load** and turn off **Show the mask on the picture**. The choice applies
|
||||
to every Image Crop + Rotate + Pad in this browser.
|
||||
|
||||
## Outputs
|
||||
@@ -175,7 +185,7 @@ to every Image Crop + Rotate + Pad in this browser.
|
||||
- **image**: the turned, cropped and padded picture. Every frame of an animated
|
||||
image gets the same framing.
|
||||
- **mask**: White where the model paints: the padding, the empty corners a turn leaves, and the see-through parts of your picture.
|
||||
- **stitcher**: Wire to Stitch Inpaint to restore the kept canvas around an outpaint result, blended into the source by **Blend** (32 px unless changed). It follows the final resized canvas.
|
||||
- **stitcher**: Wire to Stitch Inpaint to restore the kept canvas around an outpaint result, blended into the source by **Blend** (32 px unless changed). It follows the final resized canvas. After a hand crop, set **Paste onto** to original in Stitch Inpaint's gear menu to get your whole picture back with the edit in place.
|
||||
- **original**: your picture before rotation, crop, padding or resize, with
|
||||
see-through parts shown as white (your picture there when **Painted area**
|
||||
is on keep).
|
||||
@@ -231,18 +241,18 @@ for fine steps). The editor adds a few things the node does not show:
|
||||
- **Rotate → Degrees** (`rotation_degrees`): type an exact turn, clockwise.
|
||||
Each step is 1°, or 0.1° with Shift. **Reset rotation** sets it back to 0.
|
||||
- **Padding & mask → Reset padding** removes all padding. The same section has
|
||||
Fill, Feather, Divisible by and a **Center** row.
|
||||
Fill, Feather, Align and a **Center** row.
|
||||
- **Resize output → Method** (`resize_method`): how the resize samples the
|
||||
picture. `lanczos`, the default, is the sharp one.
|
||||
- **More**: ratios you added in `ausboss_presets.json` that no button shows.
|
||||
The list only appears when you have some.
|
||||
- **Reset view** undoes zoom and pan. **Reset transform**
|
||||
clears rotation, crop, padding, fill, feather and Divisible by; the picture,
|
||||
clears rotation, crop, padding, fill, feather and Align; the picture,
|
||||
resize and stitch settings stay.
|
||||
- **Preview**: a small picture of the finished output while you work.
|
||||
|
||||
A ratio replaces the existing crop and padding and keeps rotation, fill and
|
||||
resize settings. **Divisible by** and the resize **Step** can slightly change
|
||||
resize settings. **Align** and the resize **Step** can slightly change
|
||||
the fitted shape. The size box on the stage sits clear of the handles.
|
||||
|
||||
### Handles and gestures
|
||||
@@ -279,8 +289,8 @@ The editor's right side holds the stitcher's settings, the same as on the clip n
|
||||
- `fill_color`: `#RGB` or `#RRGGBB`, three numbers (`R, G, B`), one gray
|
||||
number, or a colour name. Anything it cannot read becomes mid-gray.
|
||||
- **Corners.** A corner follows the pointer along the canvas diagonal, and the
|
||||
shape it keeps is the canvas before **Divisible by** rounds it. With
|
||||
Divisible by on, **Center** counts the fill it adds, so the bands you see
|
||||
shape it keeps is the canvas before **Align** rounds it. With
|
||||
Align on, **Center** counts the fill it adds, so the bands you see
|
||||
come out even.
|
||||
- **Resize.** It works like core's *Scale Image to Total Pixels*: the budget is
|
||||
`megapixels × 1024 × 1024`, the shape is kept, and each side rounds to a
|
||||
|
||||
@@ -58,7 +58,8 @@ folders. A folder from anywhere else is copied in:
|
||||
a tile makes it the next.
|
||||
|
||||
After the last picture, **At the end** either stops the run with a message
|
||||
or starts over at the first.
|
||||
or starts over at the first. With **start over**, Picture goes back to 1 and
|
||||
the pictures repeat in order for as many runs as you queue.
|
||||
|
||||
## The card
|
||||
|
||||
@@ -73,7 +74,9 @@ or starts over at the first.
|
||||
run loads, counted from 1.
|
||||
- **After a run** (`after_run`): **next** moves Picture on, **stay** keeps
|
||||
loading the same one, **random** jumps to any of the picked ones.
|
||||
- **At the end** (`at_the_end`): **stop the run** or **start over**.
|
||||
- **At the end** (`at_the_end`): after the last picture, **stop the run**
|
||||
stops with a message, and **start over** goes back to the first and keeps
|
||||
going.
|
||||
|
||||
## The tiles
|
||||
|
||||
@@ -104,7 +107,8 @@ or starts over at the first.
|
||||
There is no setting that changes this.
|
||||
- The picked pictures are saved in the workflow as a list of names
|
||||
(`pictures`). Empty means every picture, so a picture added to the folder
|
||||
later is in too. A name that is no longer in the folder is skipped.
|
||||
later is in too. A name that is no longer in the folder is skipped. It
|
||||
takes no wire: the ticks on the node write it.
|
||||
- Pictures are PNG, JPG, WebP, BMP, GIF (first frame) and TIFF. A photo that
|
||||
was taken turned comes out upright. Files whose names start with a dot are
|
||||
skipped.
|
||||
@@ -116,6 +120,9 @@ or starts over at the first.
|
||||
their own sizes. They are not resized or stacked into one batch.
|
||||
- Moving Picture on is done by the editor when a run is queued. A workflow
|
||||
sent through the API loads exactly the picture `position` names.
|
||||
- With **start over**, a Picture number past the last picture counts round
|
||||
from the first. A workflow saved with such a number loads that picture and
|
||||
moves on from there.
|
||||
- The node runs again when a picked file is added, removed or rewritten.
|
||||
- A folder lists up to 5,000 pictures, and a folder that is brought in is
|
||||
copied up to 3,000.
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
# Image Toolbox
|
||||
|
||||
Small picture jobs in one node. Pick the job from the **Job** list (`job`);
|
||||
the rows under it change to what that job needs.
|
||||
|
||||
## Jobs
|
||||
|
||||
### split sheet at gaps
|
||||
|
||||
Cuts a row of pictures that sit side by side, such as the four views of a
|
||||
character sheet, into separate pictures.
|
||||
|
||||
- **Pieces** (`pieces`): how many pictures are on the sheet. 4 for a
|
||||
four-view character sheet.
|
||||
|
||||
Each cut goes to the gap between two pictures, not to an equal share of the
|
||||
width. An image model rarely puts each view exactly on its quarter of a
|
||||
sheet, so cutting into equal parts can leave part of a neighbour's sleeve in
|
||||
one piece and cut another's off. Here every piece holds one picture.
|
||||
|
||||
The pieces come out as one batch, from left to right, all the same size.
|
||||
Narrower pieces are padded with the sheet's backdrop colour. The first and
|
||||
last pieces keep the sheet's own left and right edges at their outer edge,
|
||||
so a person drawn up to the edge of the sheet does not look cut off by a
|
||||
band of padding. Wire the batch into Save Image to save each piece as its
|
||||
own file.
|
||||
|
||||
A batch of sheets is cut sheet by sheet: the first sheet's pieces, then the
|
||||
next sheet's.
|
||||
|
||||
### cut a piece
|
||||
|
||||
Cuts one piece out of the picture, at the size and place you set. Use it when
|
||||
the parts you need are not the same size, or when you know exactly where a
|
||||
part is.
|
||||
|
||||
- **Width** and **Height** (`width`, `height`): the piece's size in pixels.
|
||||
0 takes the picture's full width or height.
|
||||
- **Position** (`position`): where the piece sits, from **top left** to
|
||||
**bottom right**. **center** puts it in the middle.
|
||||
- **Move right** and **Move down** (`move_right`, `move_down`): move the
|
||||
piece from that position by this many pixels. Below 0 moves it left or up.
|
||||
|
||||
The piece never leaves the picture. A size larger than the picture is cut to
|
||||
the picture's size, and a move that would push the piece past an edge stops
|
||||
at that edge.
|
||||
|
||||
The piece comes out of **images**. The second output, **rest**, is what is
|
||||
left of the picture:
|
||||
|
||||
- When the piece is as tall as the picture and sits against its left or
|
||||
right edge, **rest** is the strip beside it. The same goes for a piece as
|
||||
wide as the picture at the top or bottom. So to split a picture into two
|
||||
parts of different sizes, set the first part's width, Height 0, and
|
||||
Position **left**: **images** is the first part and **rest** the second.
|
||||
- Any other piece leaves a hole, and **rest** is the whole picture with the
|
||||
hole filled with the picture's backdrop colour.
|
||||
|
||||
A batch is cut at the same place in every picture. Other jobs pass the
|
||||
picture through **rest** unchanged.
|
||||
|
||||
## Technical details
|
||||
|
||||
- The backdrop colour is the median colour of the picture's border.
|
||||
- A pixel counts as part of a picture when any channel differs from the
|
||||
backdrop by more than 0.1 (on a 0-1 scale).
|
||||
- Each cut looks for the column with the fewest such pixels, up to 40% of
|
||||
one piece's width either side of the equal-share line, and takes the
|
||||
middle of the longest run of those columns.
|
||||
- When two pictures overlap on the sheet, no column is clean. The cut then
|
||||
goes where the least of them is lost, and a small part of one can remain
|
||||
in the other's piece.
|
||||
- cut a piece fills its hole with the same backdrop colour.
|
||||
- Pieces set to 1 returns the picture unchanged.
|
||||
- Pieces higher than the picture's width in pixels gives one piece per
|
||||
pixel column, so fewer pieces than asked for.
|
||||
@@ -8,6 +8,11 @@ wire it to every node that needs it.
|
||||
- **Value** (`value`): The whole number to send out. It starts at `0`. The
|
||||
arrows and a drag move it by 1, or click and type. It holds numbers as
|
||||
big as a seed.
|
||||
- The gear, right: **Look**. **normal** is the usual box with its label.
|
||||
**big** shows the number large in the middle of the node, with an arrow
|
||||
on each side, for a setting people change on every run, such as the
|
||||
length of a clip. A drag and typing work the same. Each node keeps its own look, and it is
|
||||
saved with the workflow.
|
||||
|
||||
## Limits
|
||||
|
||||
@@ -40,3 +45,7 @@ For arithmetic on the way — halving a size, adding a margin — feed this into
|
||||
- On its own the box goes up to 9,007,199,254,740,991, the largest whole
|
||||
number a browser holds exactly. It stopped at 2,147,483,647 before, which
|
||||
most seeds are above.
|
||||
- The look is stored in the node's properties as `ausboss_text_look: "big"`, the
|
||||
same as Text 🆎. It is not an input, so the saved value and what the node
|
||||
sends are the same in both looks, and an older version of the pack shows
|
||||
the usual box.
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
# Keep Detail
|
||||
|
||||
Puts the fine detail of your original picture back on an edited version of
|
||||
it. Use it when an edit, a relight or an upscale made skin, fabric or wood
|
||||
look too smooth: the edit keeps its shapes, light and colour, and the pores,
|
||||
weave and grain come from the original.
|
||||
|
||||
The two pictures must line up, pixel for pixel. Wire the edit to **image**
|
||||
and the original to **detail_from**. If an edit drifted (Qwen Image often
|
||||
draws an edit a little bigger or shifted), run it through Realign to Source
|
||||
first, or the detail lands in the wrong place and doubles up.
|
||||
|
||||
If **detail_from** is a different size from the edit, it is resized to the
|
||||
edit's size first. That only helps when it is the same picture at another
|
||||
size; the pictures still have to line up.
|
||||
|
||||
The panel under the card shows the result once the node has run. The small
|
||||
**preview** switch at the right of the bar turns it off.
|
||||
|
||||
## Live preview
|
||||
|
||||
Once the node has a picture, the picture on the node redraws while you drag a
|
||||
value, before you queue anything. Run the graph once to give the node its
|
||||
picture (run once to get the picture); after that it changes as you drag. A small "not run yet" tag
|
||||
shows while the picture is a preview and not a real result.
|
||||
|
||||
The **Fit | 100%** switch sits on the bar above the picture, left of Preview.
|
||||
Fit shows the whole picture. 100% shows real pixels, and dragging on the
|
||||
picture moves around it instead of moving the node. Fine detail is easiest to judge at 100%.
|
||||
|
||||
|
||||
## Controls
|
||||
|
||||
- **Detail size** (`detail_size`): detail smaller than this many pixels
|
||||
comes from the original; anything bigger stays the edit's. `2` to `6` suits
|
||||
skin and fabric. Larger brings back more of the original, until it starts
|
||||
to bring back the old picture's light and shapes too.
|
||||
- **Strength** (`strength`): `0` leaves the edit as it is, `1` puts the
|
||||
original's detail on it in place of the edit's own, above `1` makes the
|
||||
original's detail stronger.
|
||||
- **Detail** (`color_detail`): **light only** brings back only how bright
|
||||
or dark the detail is, so the edit's colours never shift. **color +
|
||||
light** brings back the detail's colour too, such as freckles, stains or
|
||||
a coloured weave. Use it when the edit kept the original's colours.
|
||||
|
||||
### Behind **More**
|
||||
|
||||
- **Edge safe** (`edge_safe`): on by default. Strong edges, such as a
|
||||
jaw against a bright wall, are left as the edit has them, so no light or
|
||||
dark rim appears along them. Turn it off when the edit also blurred
|
||||
strong edges and you want those back from the original as well.
|
||||
|
||||
### Inputs and output
|
||||
|
||||
- **image**: the edited picture.
|
||||
- **detail_from**: the original picture, lined up with the edit.
|
||||
- **mask** (optional): detail goes back only where the mask is white, such
|
||||
as on skin alone.
|
||||
- **image** (output): the edit with the original's detail, at the edit's
|
||||
size.
|
||||
|
||||
Both pictures can be videos. One picture on either side goes with every
|
||||
frame of the other.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Each picture is split into a base and detail. The base is the picture
|
||||
smoothed over `detail_size` pixels; the detail is what the smoothing took
|
||||
away. The result is the edit's base with the original's detail.
|
||||
- The split is a ratio in linear light, not a difference. Detail is how much
|
||||
brighter or darker each pixel is than its base, as a factor: pores that
|
||||
are 8 % darker than the skin around them stay 8 % darker on a darker,
|
||||
relit face. A difference would carry a bright original's texture too
|
||||
strong into a dark edit and too weak into a bright one. Linear light is
|
||||
the picture with the sRGB curve taken off, where light adds up
|
||||
physically, so a factor means the same in shadows and highlights.
|
||||
- With **light only** the factor comes from the luminance (Rec. 709 weights)
|
||||
and multiplies red, green and blue alike, so the colour of every pixel
|
||||
stays the edit's. With **color + light** each channel has its own factor.
|
||||
- The base is a Gaussian blur with a radius of `detail_size`, or with
|
||||
**Edge safe** a guided filter (He, Sun and Tang, 2010) of the picture by
|
||||
itself over a box of the same spread: it smooths texture but follows a
|
||||
strong edge, so the detail at that edge stays near nothing. A step that
|
||||
varies the values around it by more than about `0.15` counts as an edge;
|
||||
skin, fabric and wood grain vary them less. The smoothing runs on the
|
||||
sRGB-curved values, where an edge's size matches how strong it looks.
|
||||
- Strength `s` mixes the two details: the edit's own to the power `1 - s`
|
||||
(for `s` up to `1`) times the original's to the power `s`. At `0` the
|
||||
result is the edit, unchanged.
|
||||
- Frames are worked on four at a time.
|
||||
|
||||
### Live preview
|
||||
|
||||
The preview runs the node's own maths in the browser: on a copy shrunk to the
|
||||
size it is shown at in Fit, and on a real-pixel crop of the picture in 100%.
|
||||
It is checked against the Python node on recorded values (`tests/test_live_parity.py`);
|
||||
results agree to within 5e-5 on a 0 to 1 scale. The picture is the one the
|
||||
last run kept, or a Load Image read through ComfyUI's own view route. When
|
||||
the values match the last run, the real result is drawn instead.
|
||||
@@ -39,6 +39,11 @@ come back with the new area still gray, like a gray frame or a gray corner.
|
||||
Pad 🆎 or Load Image + Pad 🆎, or the painted mask of an inpaint. Wire it
|
||||
for AnyPaint. The reference then shows that area in your picture's own
|
||||
colour instead of the gray fill, and the model paints it.
|
||||
- **reference_curve**: How strongly the picture follows the references over
|
||||
the run, from Strength Curve 🆎. 1 is the normal strength and 0 ignores
|
||||
them. Hold the layout early and let go late (a fade out), or let the
|
||||
model find its own shapes first and pull the reference in for the details
|
||||
(a fade in). Leave it unwired for today's behaviour.
|
||||
|
||||
## Outputs
|
||||
|
||||
@@ -69,3 +74,23 @@ above 0.5) is refilled with the median colour of everything else before the
|
||||
reference goes to the VAE and to the vision tower. The canvas the rest of
|
||||
the graph uses keeps its gray, so the prompt writer and the stitch are
|
||||
unchanged. Only `reference` is refilled; `extra_image` is left as it is.
|
||||
|
||||
## Technical details: the reference curve
|
||||
|
||||
The references reach Krea 2 as extra tokens that the prompt and the canvas
|
||||
attend to. At each step the curve's value `s` is added as `log(s)` to
|
||||
the attention scores of the reference keys, which multiplies the attention
|
||||
weight they get by `s` before the weights are shared out again. At 1
|
||||
nothing changes, at 0 the reference gets no attention at all and the result
|
||||
is the same as without a reference, and values in between fade it. The
|
||||
reference's own tokens see the same scale. It works the same with Krea 2
|
||||
Outpaint Model Patch 🆎, which scales its cached reference keys.
|
||||
|
||||
The curve travels on the positive output as a ComfyUI hook, read at each
|
||||
step by ComfyUI's own hook keyframes (see Strength Curve 🆎 for how "where
|
||||
in the run" is measured). Two costs come with ComfyUI's hooks: a run with a
|
||||
hooked prompt turns dynamic VRAM loading off (the first one loads the model
|
||||
a second time), and at a CFG above 1 the positive and negative are run one
|
||||
after the other instead of together. While the strength is not 1, attention
|
||||
also runs with a mask, which some fast attention kernels hand to PyTorch's
|
||||
own.
|
||||
|
||||
@@ -82,7 +82,7 @@ new region can break up; the node says so in the console when it sees it,
|
||||
and the cure is two passes: pad one axis, run, load the result, pad the
|
||||
other. **A thin strip counts.** More than 8 px of padding on the other
|
||||
axis, such as a few pixels left over from a drag, means the source no
|
||||
longer spans it. **Divisible by** on the Crop + Rotate + Pad nodes and
|
||||
longer spans it. **Align** on the Crop + Rotate + Pad nodes and
|
||||
Load Image + Pad's **Multiple** never add a strip on a side you did not
|
||||
pad. The warning reports the spare pixels on each axis.
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ done one at a time, so a long clip does not need more graphics memory.
|
||||
|
||||
## Model setup
|
||||
|
||||
Place `big-lama.pt` in:
|
||||
Download [`big-lama.pt`](https://github.com/Sanster/models/releases/download/add_big_lama/big-lama.pt)
|
||||
and place it in:
|
||||
|
||||
```text
|
||||
ComfyUI/models/lama/big-lama.pt
|
||||
@@ -20,6 +21,12 @@ refresh the browser or restart ComfyUI so the model list is updated. Until
|
||||
the file is there, the list still shows `big-lama.pt`, and a run stops with a
|
||||
message that says where to put it.
|
||||
|
||||
The node only opens known copies of this file, whatever you name them: the
|
||||
download above, or the one from
|
||||
[fashn-ai/LaMa](https://huggingface.co/fashn-ai/LaMa). A LaMa model file can
|
||||
run code when it opens, so any other file stops the run with a message and is
|
||||
never loaded.
|
||||
|
||||
## Controls
|
||||
|
||||
- **image**: BHWC images or video frames.
|
||||
@@ -28,7 +35,7 @@ message that says where to put it.
|
||||
another size is stretched to fit the picture. A picture with no mask
|
||||
painted on it stops the run with "No mask painted" instead of coming back
|
||||
unchanged.
|
||||
- **Model** (`model`): A `.pt` or `.pth` TorchScript checkpoint from `models/lama`.
|
||||
- **Model** (`model`): A known copy of `big-lama.pt` from `models/lama`.
|
||||
|
||||
## Output
|
||||
|
||||
|
||||
@@ -26,6 +26,60 @@ Boxes only shows "Node 2.0 only".
|
||||
|
||||
Wire `preview` to a Preview Image to see the boxes with their numbers and words.
|
||||
|
||||
## Place people with MiniMax H3 Image
|
||||
|
||||
The `h3_prompt` output says the boxes in words for MiniMax H3 Image: who goes
|
||||
where, what they do there, how big, and who stands beside whom. Use it to put the people from your
|
||||
reference pictures into a scene, each one where you drew a box.
|
||||
|
||||
1. Wire your scene picture into `background` and into the first picture of
|
||||
the H3 Image node: it is `<Picture 1>`, the picture that is changed.
|
||||
2. Wire the people's pictures into the next ones: `<Picture 2>`,
|
||||
`<Picture 3>` and so on.
|
||||
3. Draw one **object** box for each person. In its **Description**, name
|
||||
their picture and say what they do there, for example "the man from
|
||||
`<Picture 2>`, sitting on the couch". That second part is what puts them
|
||||
in the box: told only where to go, H3 Image keeps people standing as in
|
||||
their own picture, often outside the box.
|
||||
4. A box with no description still gets the next picture, `<Picture 2>`, then
|
||||
`<Picture 3>`, in the order of the boxes, and keeps that person's face,
|
||||
hair and clothes. It is a rough place only. A description without a
|
||||
picture is a thing: a dog, a sofa. A **text** box writes its words at its
|
||||
place.
|
||||
5. Wire `h3_prompt` to the prompt of the H3 Image node. To add words of your
|
||||
own, such as the light or the mood, join the two texts first, for example
|
||||
with ComfyUI's Concatenate Text node.
|
||||
|
||||
Without a picture on `background` there is no scene picture, and the people
|
||||
start at `<Picture 1>`.
|
||||
|
||||
The prompt says every place in words, never in numbers: H3 Image draws
|
||||
numbers from a prompt onto the picture as text. Tried on three rooms and two
|
||||
seeds: with a description like the one above, the man was in his box 6 times
|
||||
of 6 and the woman 4 of 6, and the room stayed as it was; with empty boxes,
|
||||
2 of 12. Keep `preview` out of H3
|
||||
Image's pictures too, or the boxes' lines can stay in the picture.
|
||||
|
||||
## Words for a prompt
|
||||
|
||||
Some models make a picture from a prompt alone and have no input for boxes.
|
||||
The `placement` output says your boxes as plain sentences: what goes in each
|
||||
box and where it is in the picture. Add it to your prompt, for example with
|
||||
ComfyUI's Concatenate Text node, and the model puts each thing where you drew
|
||||
it.
|
||||
|
||||
For a text box with the word FRESH in the top left and an orange on the right,
|
||||
it gives:
|
||||
|
||||
> The words "FRESH" in huge bold black sans-serif letters, placed top left,
|
||||
> from 6% to 52% across and 6% to 25% down. One ripe orange with a green
|
||||
> leaf, placed middle right, from 52% to 94% across and 35% to 85% down.
|
||||
|
||||
Write the **Description** of each box the way you would in a prompt. Tried on
|
||||
SenseNova U1.6, which has no box input: these sentences put all the boxes in
|
||||
place on two seeds of two, where `elements` as text put the words in the wrong
|
||||
places.
|
||||
|
||||
## Change the words in a picture
|
||||
|
||||
The `mask` output is white inside every box. Use it to change only one part
|
||||
@@ -149,11 +203,13 @@ removes it. The first color also colors the box on the canvas.
|
||||
| `bboxes` | The boxes in pixels of the canvas (x, y, width, height), for nodes that take bounding boxes. A turned box gives the straight box around it. |
|
||||
| `elements` | The boxes as prompt elements. Wire it to MOSS-Image Layout Prompt. A turned box gives the straight box around it, and a turned text box says its slant in its description. |
|
||||
| `mask` | White inside every box, black elsewhere, to change only those places of a picture. A turned box is white inside its turned shape only. |
|
||||
| `h3_prompt` | The boxes as a prompt for MiniMax H3 Image, in words: where each thing goes and how big it is. Name each person's picture and what they do in the box's description. See **Place people with MiniMax H3 Image**. |
|
||||
| `placement` | The boxes as sentences for a prompt: what goes in each box and where, as parts of the picture. Add it to your prompt for a model that has no box input. See **Words for a prompt**. |
|
||||
|
||||
## In place of Create Bounding Boxes
|
||||
|
||||
Layout Boxes has the same inputs and the same outputs in the same order (and
|
||||
`mask` after them), so the wires move straight over. For the same boxes it
|
||||
`mask`, `h3_prompt` and `placement` after them), so the wires move straight over. For the same boxes it
|
||||
gives the same `bboxes` and `elements`, and MOSS-Image Layout Prompt makes the
|
||||
same prompt from them.
|
||||
|
||||
@@ -209,5 +265,32 @@ run once: they fill the canvas. Then remove the old node.
|
||||
- Like Create Bounding Boxes, it is an output node: it runs with the workflow
|
||||
even when nothing is wired to its outputs, so new boxes on the `bboxes` wire
|
||||
reach the canvas.
|
||||
- `h3_prompt` has an opening sentence (one photograph of the scene in
|
||||
`<Picture 1>`, kept as it is), one sentence per box in box order, and a
|
||||
closing one (the same ground and light for everything). Across, a box is at
|
||||
the far left, left, middle, right or far right by its centre; it is "high"
|
||||
or "low" when its centre is in the top or bottom third and it is less than
|
||||
0.6 of the frame tall. Its height and width are said as a tenth, a quarter,
|
||||
a third, half, two thirds, three quarters or all of the frame. Each object
|
||||
is placed against the object on its left when the two share some height:
|
||||
right beside it (a gap under 5% of the frame), a little to the right (under
|
||||
15%), well to the right, or partly in front of or behind it when they
|
||||
overlap (the later box is in front). Text boxes are placed by the frame
|
||||
only. A turned box is placed by the straight box around it. A text box with
|
||||
no text and no description is left out. No boxes give an empty text.
|
||||
- `placement` has one sentence per box, in box order, joined by spaces. A
|
||||
text box with words gives `The words "TEXT" in DESCRIPTION, placed WHERE.`
|
||||
(`The words "TEXT", placed WHERE.` without a description); any other box
|
||||
gives its description, first letter in upper case, then `, placed WHERE.`
|
||||
A box with no words and no description is left out. The description is
|
||||
the one `elements` carries, so a turned text box says its slant. WHERE is
|
||||
a rough place and then the box's edges in whole percents of the canvas,
|
||||
cut to it: `top left, from 6% to 52% across and 6% to 25% down`. The box
|
||||
is "top" when its bottom edge is above 40%, "bottom" when its top edge is
|
||||
below 60%, else "middle"; "left" when its right edge is left of 55%,
|
||||
"right" when its left edge is right of 45%, else "center"; and the middle
|
||||
of both is said as "center" alone. A turned box is placed by the straight
|
||||
box around it. A box with colors gets ` Colors: #FF3399, #00AABB.` after
|
||||
its sentence. No boxes give an empty text.
|
||||
- The background is saved, shrunk, in ComfyUI's temp folder for the node's
|
||||
face. Nothing else is written.
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
# Load Audio
|
||||
|
||||
Loads a sound file and hands on only the part you pick. Use it for a voice
|
||||
clip, a song or any sound a video model or a save node takes, when you want
|
||||
one part of the file and not the whole thing.
|
||||
|
||||
The node shows the whole file as a wave, so you can see where the loud parts
|
||||
are. The part that comes out is bright. Under the wave are three boxes:
|
||||
**Start**, **Duration** and **Ends at**, in seconds. Drag the left handle to
|
||||
move the start, drag the right handle or type a Duration to change how long
|
||||
the sound is, or drag the bright part to slide it. Click somewhere else on
|
||||
the wave to move it there. Typing **Ends at** sets the Duration for you.
|
||||
|
||||
Press **▶** to hear only the part that comes out. **LOOP** plays it again and
|
||||
again.
|
||||
|
||||
Set the Duration to the length the next step needs, such as the length of
|
||||
the video you are making. An empty Duration runs to the end of the file.
|
||||
|
||||
A box set by another node, such as Float 🆎, shows a **linked** button that
|
||||
jumps to that node, and the wave shows the part that number picks.
|
||||
|
||||
## Clean up
|
||||
|
||||
Turn **Clean up** on for a voice recording you want a video model to say,
|
||||
such as a line recorded on a phone. The sound that comes out:
|
||||
|
||||
- is one channel,
|
||||
- has the quiet bits at the start and end cut off, so the voice starts right
|
||||
away,
|
||||
- has less hum, rumble and hiss,
|
||||
- is at an even volume, never so loud that it clips.
|
||||
|
||||
A model that copies the sound it is given copies its noise too, so a clean
|
||||
recording gives a cleaner result. Clean up works on the part you picked, so
|
||||
the sound can come out a little shorter than the length shown under the wave;
|
||||
`seconds` always gives the real length. Leave it off for music.
|
||||
|
||||
## Controls
|
||||
|
||||
- **Source** (`audio`): a sound file in ComfyUI's input folder. **Upload**
|
||||
adds one. Videos are listed as well, for their sound.
|
||||
- **Start** (`start_seconds`): where the sound starts.
|
||||
- **Duration** (`max_seconds`): how long the sound is, in seconds. Empty, or
|
||||
`0`, runs to the end of the file.
|
||||
- **Ends at**: where the sound stops. Typing it sets the Duration.
|
||||
A workflow saved with an end time (`end_seconds`) keeps it and runs the
|
||||
same.
|
||||
- **Clean up** (`clean_up`): on cleans up a voice recording, as above. Off
|
||||
hands on the sound as it is.
|
||||
|
||||
## Outputs
|
||||
|
||||
- `audio`: the part you picked, for any node that takes `AUDIO`.
|
||||
- `seconds`: how long that sound is.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Only the picked part is decoded: decoding stops once the window is full,
|
||||
so a short pick from a long recording stays quick.
|
||||
- The sound keeps its own sample rate and channels.
|
||||
- A start past the end of the file stops the run with a message that says so.
|
||||
- The wave is drawn in the browser from the file itself; nothing extra is
|
||||
stored with the workflow besides the node's own values.
|
||||
- Clean up runs in this order: the channels are averaged into one; a
|
||||
high-pass at 80 Hz takes out rumble and mains hum; a noise print is
|
||||
taken from the quietest moments and whatever sits close to it is turned
|
||||
down by up to 12 dB (hiss, fans, room tone); quiet ends are cut, keeping
|
||||
0.1 s before the first sound and 0.2 s after the last; then the volume is
|
||||
set to -18 LUFS (the loudness broadcast meters read) with a limiter that
|
||||
keeps every peak under -1 dBFS. The sample rate stays the file's own.
|
||||
@@ -0,0 +1,108 @@
|
||||
# Load Image
|
||||
|
||||
Loads a picture and sets its size in the same node, so a workflow does not
|
||||
need a resize node and a size node after its loader.
|
||||
|
||||
Pick a file in **Source**, press **Load** to upload one, or use the arrows
|
||||
under it to step through the pictures in ComfyUI's input folder. The line
|
||||
beside the arrows shows the size of the file and, when the size changes, the
|
||||
size that comes out:
|
||||
|
||||
`912 × 1632 → 1144 × 2048`
|
||||
|
||||
That is the real output size, worked out before you run.
|
||||
|
||||
Under that line are two small pictures: the file as it goes in, and the
|
||||
picture as it comes out. On the first one the part that is kept is lit and
|
||||
the part that is cut off is dark. Between them the node says the shape
|
||||
(`3:4 → 1:1`) and what happens (`77% size`, `cuts 449 px of height`).
|
||||
|
||||
## Size
|
||||
|
||||
**Size** (`size`) picks how the picture is resized. Each choice shows only
|
||||
the numbers it uses.
|
||||
|
||||
| Choice | What it does | Its number |
|
||||
|---|---|---|
|
||||
| **off** | The picture comes out exactly as the file has it. | none |
|
||||
| **megapixels** | Brings the whole picture to a total size and keeps its shape. | **Megapixels** (`megapixels`): 1.0 is about 1024 × 1024 |
|
||||
| **longest side** | Sets the longer edge; the other edge follows. | **Longest side** (`longest_side`), in pixels |
|
||||
| **scale** | Multiplies both edges. | **Scale** (`scale`): 0.5 is half, 2 is double |
|
||||
| **fit inside** | Makes the picture as big as it can be inside a box, with nothing cut off. | **Width** and **Height** (`width`, `height`) |
|
||||
| **crop to fill** | Covers the box completely and cuts off what sticks out. | **Width** and **Height** |
|
||||
| **crop** | Cuts a piece of that size out of the picture. Nothing is resized. | **Width** and **Height** |
|
||||
| **crop to ratio** | Cuts the largest piece of a shape, such as 16:9, out of the picture. Nothing is resized. | **Ratio** (`ratio`) |
|
||||
|
||||
**Round to** (`multiple`) rounds the new width and height to a multiple of
|
||||
that number. Most models want 8 or 16. Set it to 1 to keep the numbers as
|
||||
they are. It does nothing while Size is off.
|
||||
|
||||
## Which part is kept
|
||||
|
||||
The three crop choices show **Keep** (`crop_from`). It picks the part of the
|
||||
picture that stays: `center` cuts evenly from both sides, `top` keeps the top
|
||||
and cuts from the bottom, `bottom left` keeps that corner, and so on.
|
||||
|
||||
You can also click the first small picture: click its top to keep the top,
|
||||
a corner to keep that corner. The lit part moves so you see what you get.
|
||||
|
||||
In **Ratio**, `width : height` takes the shape from the Width and Height
|
||||
boxes, for a shape that is not in the list (1600 and 900 give 16:9).
|
||||
|
||||
## More
|
||||
|
||||
- **Method** (`method`): how pixels are resampled. `lanczos` is the sharpest
|
||||
for photos. `nearest` keeps pixel art crisp.
|
||||
- **Enlarge** (`enlarge`): on, a small picture is made bigger to reach the
|
||||
size you asked for. Off, a picture is only ever made smaller: one that is
|
||||
already below the target comes out at its own size, and crop to fill cuts
|
||||
the box's shape out of it without growing it.
|
||||
|
||||
## The picture on the node
|
||||
|
||||
The picture under the settings is ComfyUI's own preview, the same one the
|
||||
stock Load Image shows. Drop a file on the node or paste one to upload it,
|
||||
and right-click the node for the mask editor and for copy and paste.
|
||||
|
||||
## Outputs
|
||||
|
||||
- `image`: the picture at its new size.
|
||||
- `mask`: white where the picture is see-through and black where it is
|
||||
solid, as the stock loader gives it. A picture with no transparency gives
|
||||
an all black mask. It is always the same size as `image`.
|
||||
- `width`, `height`: the size that comes out.
|
||||
- `filename`: the file's name without its folder or its ending
|
||||
(`shots/hero.png` gives `hero`), ready for a save node's prefix.
|
||||
- `original_width`, `original_height`: the size of the file before any
|
||||
resize. Use them to bring a result back to the size you started from.
|
||||
|
||||
## Which loader to use
|
||||
|
||||
- **Load Image** (this node): load a picture and set its size.
|
||||
- **Load Image + Pad**: add empty space around a picture for outpainting.
|
||||
- **Image Crop + Rotate + Pad**: turn, crop and pad a picture by hand.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Every frame of an animated file comes through as a batch, all at the same
|
||||
new size. A phone photo is turned the way its EXIF data says.
|
||||
- With Size off the pixels are the file's own, bit for bit, and Round to is
|
||||
not applied.
|
||||
- Rounding moves each edge to the nearest multiple, so the shape can change
|
||||
by up to half a step. Fit inside rounds down instead, so the result never
|
||||
leaves its box.
|
||||
- Crop to fill resizes the picture until it covers the box, then cuts the
|
||||
box out at the side Keep names. The mask goes through the same resize and
|
||||
the same cut.
|
||||
- Crop and crop to ratio only cut. A box larger than the picture is cut down
|
||||
to the picture, and Round to rounds down so the piece stays inside it.
|
||||
Enlarge does not apply to them.
|
||||
- The small pictures are drawn on one scale, so a picture made half as large
|
||||
is drawn half as large.
|
||||
- With Enlarge off, a rounded size is rounded down so it never passes the
|
||||
file's own size.
|
||||
- The size line on the node uses the same arithmetic as the run. The pack's
|
||||
tests hold the two to the same answers over a table of cases.
|
||||
- Files are read only from ComfyUI's input, output and temp folders. A name
|
||||
such as `photo.png [output]` loads a picture ComfyUI made.
|
||||
- The node runs again when the file changes on disk or a setting changes.
|
||||
@@ -41,7 +41,7 @@ padding value unchanged.
|
||||
|
||||
## Controls
|
||||
|
||||
- **Source** (`image`): Choose or upload from ComfyUI's input folder; the list previews the image under the pointer and filters as you type.
|
||||
- **Source** (`image`): Choose or upload from ComfyUI's input folder; the list previews the image under the pointer and filters as you type. A picture ComfyUI made, named like `photo.png [output]`, loads too, as it does in core Load Image.
|
||||
- **source_image** (optional socket): Wire an image from another node here
|
||||
and it is padded instead of the file; the Source row dims while the wire
|
||||
is connected. The canvas can only show a wired picture after a run, so it
|
||||
|
||||
@@ -1,37 +1,33 @@
|
||||
# Load Video
|
||||
|
||||
Loads a video from ComfyUI's input folder as an `IMAGE` frame batch plus its
|
||||
audio. One responsive player shows the source and previews the selected trim.
|
||||
Drag the high-contrast **IN** and **OUT** handles below it, drag the selected
|
||||
range to move the whole window, or type a time into the two fields, in seconds
|
||||
(`95.5`) or as a timecode (`1:35.5`). Click the strip outside the selection to
|
||||
move the window to that spot.
|
||||
The playhead follows each edit, so the frame at either boundary is visible
|
||||
while trimming. In **Source**, the list plays the clip under the pointer, muted, and filters as you type.
|
||||
audio. The player shows the video; the timing card under it picks the part
|
||||
that comes out.
|
||||
|
||||
Playback is constrained to the selected window. **LOOP** repeats it; turn loop
|
||||
off and playback pauses at OUT. The reload button refreshes the source without
|
||||
creating a second preview. The player takes the height you give the node:
|
||||
drag the node taller for a bigger picture. A tall video is shown whole, never
|
||||
cropped.
|
||||
The timing card has three boxes: **Start**, **Duration** and **Ends at**.
|
||||
Drag the left handle on the bar to move the start, drag the right handle or
|
||||
type a Duration to change how long the clip is, or drag the middle of the
|
||||
clip to slide it. **s | fr** switches every box between seconds and frames;
|
||||
it only changes what you see, never a saved value. **Use as start** starts
|
||||
the clip at the frame in the picture, and **Whole video** puts the clip back
|
||||
to the full file. In **Source**, the list plays the clip under the pointer,
|
||||
muted, and filters as you type.
|
||||
|
||||
**FRAME** switches the loader into a frame picker: the trim strip becomes a
|
||||
single scrub rail, and only the frame at the marker loads — a one-image batch,
|
||||
ready for image workflows without a separate frame-select node. Click or drag
|
||||
anywhere on the rail to choose the frame, or type an exact time into the AT
|
||||
field. Playback runs the whole source freely in this mode so you can hunt for
|
||||
the right moment. Picking a frame moves IN to that time. When you toggle back,
|
||||
OUT stays where it was, unless the frame is at or after OUT: then OUT moves to
|
||||
the end of the video.
|
||||
The player takes the height you give the node: drag the node taller for a
|
||||
bigger picture. A tall video is shown whole, never cropped. **LOOP** plays
|
||||
the clip again and again; with it off, playback pauses at the clip's end.
|
||||
The reload button refreshes the source.
|
||||
|
||||
The label between IN and OUT reports what one Run will actually load — e.g.
|
||||
`0:04.0 of 0:10.0 · 48 frames @ 12 fps`, or `1 frame at 0:05.2` while FRAME
|
||||
is on. The preview cannot re-render `every_nth` frame drops or a `max_frames`
|
||||
cap, so it counts them instead: the frame total and playback rate come from
|
||||
the source's real frame rate (probed from the file, since the browser's
|
||||
player never exposes it) with `every_nth` and `max_frames` applied. When a
|
||||
deciding value arrives over a link, or the rate cannot be probed, the count
|
||||
drops out rather than guessing.
|
||||
**FRAME** turns the loader into a frame picker: only the frame at the marker
|
||||
loads, as a one-image batch, ready for image workflows without a separate
|
||||
frame-select node. Drag the bar to choose the frame, or type it into the
|
||||
**FRAME** box. Playback runs the whole video in this mode so you can hunt for
|
||||
the right moment. Picking a frame moves the clip's start there.
|
||||
|
||||
The boxes count real frames: the frame rate and frame count come from the
|
||||
file itself, so a 4.1 s clip at 60 fps reads 247 frames, the same number
|
||||
the run loads. When a box is set by another node it shows a **linked**
|
||||
button that jumps to that node.
|
||||
|
||||
## Drop a video onto the node
|
||||
|
||||
@@ -47,21 +43,22 @@ embedded workflow replaces the whole graph.
|
||||
## Controls
|
||||
|
||||
- **Source** (`video`): A file in the input folder; **Upload** adds new ones.
|
||||
- **IN** (`start_seconds`): Skip everything before this time.
|
||||
- **OUT** (`end_seconds`): Stop at this time; `0` means the source end until a
|
||||
handle is moved.
|
||||
- **Every nth** (`every_nth`): Keep one frame in this many — `2` halves the frame count.
|
||||
The `fps` output divides to match, so the clip still plays at real speed
|
||||
downstream.
|
||||
- **Limit** (`max_frames`): Stop after this many kept frames; `0` loads the
|
||||
whole trim window. Caps memory on long clips — the decode ends early
|
||||
instead of loading and discarding.
|
||||
- **LOOP**: Repeat the selected window during preview. It starts on and is
|
||||
saved with the workflow.
|
||||
- **FRAME** (`single_frame`): Load only the frame at the IN time (the field
|
||||
reads **AT** while FRAME is on) as a one-image batch; `end_seconds`,
|
||||
`every_nth`, and `max_frames` are ignored while it is on.
|
||||
- **↻**: Reload the selected source preview.
|
||||
A video ComfyUI made, named like `clip.mp4 [output]`, loads too.
|
||||
- **Start** (`start_seconds`): Skip everything before this time.
|
||||
- **Duration** (`max_frames`): How many frames the clip keeps. **Whole
|
||||
video** removes the limit, so the clip runs to the end (the widget holds
|
||||
`0`). The decode stops early, so a short clip from a long video stays
|
||||
quick.
|
||||
- **Ends at**: Where the clip stops. Typing it sets the Duration. A
|
||||
workflow saved with an end time (`end_seconds`) keeps it and runs the same.
|
||||
- **Every nth** (`every_nth`): Keep one frame in this many; `2` halves the
|
||||
frame count. The `fps` output divides to match, so the clip still plays at
|
||||
real speed downstream.
|
||||
- **LOOP**: Repeat the clip during preview. It starts on and is saved with
|
||||
the workflow.
|
||||
- **FRAME** (`single_frame`): Load only the frame at the marker as a
|
||||
one-image batch; the Duration and Every nth are ignored while it is on.
|
||||
- **↻**: Reload the source preview.
|
||||
- **Width** / **Height** (`custom_width` / `custom_height`): `0` keeps the
|
||||
source size. Set one side only and the other follows the aspect ratio,
|
||||
rounded to an even number.
|
||||
|
||||
@@ -29,11 +29,12 @@ come out of one socket, ready to wire into a prompt.
|
||||
modified date, and trigger words for that LoRA.
|
||||
|
||||
Right-click a row to insert an empty LoRA above or below it, move, duplicate,
|
||||
or remove it. **Remove this LoRA** is red. **Delete all LoRAs…** is a separate red, trash-marked action
|
||||
or remove it, or to put it in a group (see Groups below). With several rows
|
||||
picked (Ctrl/Cmd-click or Shift-click), **Remove these LoRAs** removes them
|
||||
all. **Remove this LoRA** is red. **Delete all LoRAs…** is a separate red, trash-marked action
|
||||
with confirmation; it clears this node's rows and keeps all files on disk.
|
||||
Cancel or Escape keeps the stack. Inserting keeps the existing rows and their settings in order;
|
||||
the new slot uses the gear menu's default strength (initially 1).
|
||||
The stack holds up to 64 rows.
|
||||
One strength drives both
|
||||
model and CLIP by default; the gear menu's **Separate model / CLIP
|
||||
strength** switch shows a second box per row. The switch is per-node — new
|
||||
@@ -42,6 +43,60 @@ model/CLIP strengths flips it on automatically so the difference stays
|
||||
visible. Turning it back off sets every row's CLIP strength to its model
|
||||
strength.
|
||||
|
||||
## Groups
|
||||
|
||||
Groups keep a long stack tidy, like layer groups in an image editor. A
|
||||
group has a header with its own on/off switch, so you can turn a whole set
|
||||
of LoRAs (all your style LoRAs, say) off and on with one click. Each LoRA
|
||||
in the group keeps its own switch too: turn the group off and back on, and
|
||||
the same LoRAs are on as before.
|
||||
|
||||
- **Make a group:** right-click a row and choose **Group this LoRA**. To
|
||||
group several, hold **Ctrl** (**Cmd** on a Mac) and click each row first,
|
||||
or click one and **Shift**-click another to pick every row between them.
|
||||
Then right-click one of them and choose **Group these LoRAs**. The new
|
||||
group appears where the topmost row was, and you type its name.
|
||||
- **Add to a group:** drag a row by its grip onto the group's name, or
|
||||
between any two of its rows. Right-click → **Move to group** does the
|
||||
same.
|
||||
- **Take out of a group:** drag the row above or below the group, or
|
||||
right-click → **Take out of** the group.
|
||||
- **Fold:** the arrow next to the group's switch hides its rows and makes
|
||||
the node shorter. Folded rows still run.
|
||||
- **Rename:** double-click the group's name.
|
||||
- Right-click a group's header to move the whole group, fold it, turn all
|
||||
its LoRAs on or off, ungroup it (the LoRAs stay), or remove it together
|
||||
with its LoRAs. Drag the header's grip to move the whole group.
|
||||
- **Turn a group on and off from a Workflow Switch:** save the switch once
|
||||
with the group on and once with it off. The group's header then shows a
|
||||
lock, and the switch turns the whole group on and off. The LoRAs inside
|
||||
stay yours to turn on and off. Click the lock to take the group back.
|
||||
|
||||
Right-click the empty space around the rows (or under **+ LoRA**) to add
|
||||
LoRAs, group the rows you picked, fold or open every group at once, or
|
||||
delete all LoRAs.
|
||||
|
||||
A plain click anywhere clears a Ctrl/Shift selection, and so does Escape.
|
||||
The count on a header (`2/3 on`) shows how many of its LoRAs are on. While
|
||||
the group is off it reads `group off`, and its LoRAs are dimmed.
|
||||
|
||||
### Technical details
|
||||
|
||||
LoRAs still apply in the order you see, top to bottom; a group changes
|
||||
nothing about how the stack runs. Groups are one level deep, and a group
|
||||
lasts while it has a LoRA in it. Each row keeps its group's name in the
|
||||
saved stack, so groups travel with templates, undo, and rows shown on a
|
||||
subgraph box. Which groups are folded is saved with the node. A group that
|
||||
is off marks each of its rows with `group_off` in the saved stack: none of
|
||||
them runs, and each keeps its own on/off. A row dragged into an off group
|
||||
goes off with it, and a row taken out runs by its own switch again. A
|
||||
renamed group keeps its on/off and its Workflow Switch. The switch at the
|
||||
top of the node turns every row and every group on. Move up and Move down step a row out of the edge of
|
||||
its group, or into a group next to it, one step at a time. While you drag,
|
||||
the drop line starts indented when the row would join a group. Just below
|
||||
a group's last row is outside the group; to add a row at a group's end,
|
||||
drop it on the group's name.
|
||||
|
||||
## Rows on a subgraph box
|
||||
|
||||
When the loader sits inside a subgraph, its rows can show on the box
|
||||
@@ -75,6 +130,68 @@ over: the switch forgets that row and leaves it alone from then on, and
|
||||
stops reading "changed" because of it. Everything else the switch does
|
||||
stays. A locked row still drags to a new place.
|
||||
|
||||
A group that a switch turns on and off shows the lock on its header
|
||||
instead. The LoRAs in it keep plain grips, so each one is still yours to
|
||||
turn on or off. Click the header's lock to take the group over.
|
||||
|
||||
## A strength set by a wire
|
||||
|
||||
To set one LoRA's strength from somewhere else, such as a slider, a Float
|
||||
node or a sweep, drag that number's wire onto the row and let go. The row
|
||||
under the pointer lights up teal while you aim; anywhere across the row
|
||||
works. The wire runs to that row and its strength box turns dashed teal,
|
||||
showing the number coming in. The bar behind the name follows it.
|
||||
|
||||
- **Click the dashed box** to jump to the node the number comes from.
|
||||
- **Right-click the row → Unlink strength** to take the wire off. The row
|
||||
goes back to the strength it had.
|
||||
- The wire sets the model strength. The CLIP strength keeps the same ratio
|
||||
to it, so a row at 1.0 / 0.5 fed 0.6 runs at 0.6 / 0.3.
|
||||
- Gear menu → **Linked strength wires** shows the wire (the default), shows
|
||||
it only while the pointer is on the loader or the number's node, or hides
|
||||
it.
|
||||
|
||||
### Technical details
|
||||
|
||||
Each linked row has its own input, `strength_<row id>`, which exists only
|
||||
while something is linked to that row. It takes FLOAT or INT. In an API
|
||||
prompt, give a row's input the row's `id` from the `loras` text, for example
|
||||
`"strength_ra1": 0.6`. A name that matches no row is ignored.
|
||||
|
||||
## Strength over the run
|
||||
|
||||
A row can change strength while the picture is made: strong at the start
|
||||
and gone by the end, say, so a style LoRA sets the look and the fine detail
|
||||
at the end comes out clean.
|
||||
|
||||
1. Wire a Strength Curve 🆎 into the loader's `curve` input.
|
||||
2. Each row now shows a small curve mark beside its strength. The first
|
||||
curve you wire marks every row (teal). Click a mark, or right-click the
|
||||
row and pick **Keep a steady strength**, for a row that should stay as
|
||||
it is; its mark turns gray. **Follow the strength curve** in the same
|
||||
menu turns it back on.
|
||||
|
||||
A row that follows the curve runs at its own strength times the curve: a row
|
||||
at 0.8 with a fade out goes from 0.8 down to 0. It works with every model
|
||||
file: full size, fp8, fp8 scaled and int8.
|
||||
|
||||
### Technical details
|
||||
|
||||
The CLIP half of a row is applied as always, since a prompt is encoded once.
|
||||
The model half is loaded in ComfyUI's bypass mode: the LoRA is added to each
|
||||
layer's result as the layer runs, and the model's weights are never
|
||||
rewritten. Before every step the loader sets each following row to its
|
||||
strength times the curve at that step. "Where in the run" is read by the
|
||||
step's noise level, the way ComfyUI reads hook keyframes, so it lines up
|
||||
with Krea 2 Encode's `reference_curve`. In the `loras` text a following row
|
||||
has `"curve": true`; in an API prompt, link `curve` and set that on the rows.
|
||||
|
||||
A moving curve costs a little speed and no memory: on Krea 2 each step ran
|
||||
3 to 8% slower, the same on every model file we tried. A flat curve
|
||||
skips all of this: the rows just run at their strength times its value. The
|
||||
rare parts of a LoRA that are not low-rank (a plain weight or bias
|
||||
difference) cannot change from step to step and stay at the row's strength.
|
||||
|
||||
## Strength bars
|
||||
|
||||
Every named row paints a center-zero bar behind its name: teal grows right
|
||||
@@ -110,8 +227,22 @@ its height on rows, not chrome. Left to right:
|
||||
|
||||
**+ LoRA** opens one list of files grouped by folder. Click a file to add
|
||||
one LoRA, or click a folder name to add all its LoRAs, including nested
|
||||
folders. Use the arrow beside a folder to collapse or expand it without
|
||||
adding anything. Folded folders are remembered in this browser. Search
|
||||
folders. To add several files from different folders, tick the box beside
|
||||
each one (or **Ctrl**-click its name), then click **Add N LoRAs** at the
|
||||
bottom or press **Enter**. **Shift**-click ticks every file between the
|
||||
last one you ticked and the one you click. Ticks stay while you search, so you can
|
||||
gather files from several searches; **Clear** unticks them all. Files that
|
||||
are already in the stack say **in stack** and have no box. With the
|
||||
keyboard, **Ctrl+Enter** ticks the highlighted file and **Shift+Enter**
|
||||
ticks the run up to it. The list opens with every folder folded. Use the
|
||||
arrow beside a folder to open or fold it without adding anything.
|
||||
**Open all** beside the search box opens every folder at once (it then
|
||||
reads **Fold all**), and **Alt**- or **Shift**-click on a folder's arrow
|
||||
opens or folds that folder and every folder inside it. With the keyboard,
|
||||
**Right** opens the highlighted folder and **Left** folds it; **Left** on a
|
||||
file folds the folder it is in and moves up to it. To have the list open
|
||||
the way you left it instead, set **Settings → 🆎 AusBoss → LoRA Loader →
|
||||
Picker folders** to **Remember my folds**. Search
|
||||
reveals matching files; clearing it brings back your folded view. You can
|
||||
also fold folders while searching.
|
||||
|
||||
@@ -122,9 +253,7 @@ their order, strengths and switches. The same filename in different folders
|
||||
counts as separate LoRAs.
|
||||
|
||||
The choice is one undo step. Closing the picker without choosing changes
|
||||
nothing. If a folder would take the stack past 64 rows, nothing is added
|
||||
and a message says how much room is needed. Remove rows or pick a smaller
|
||||
folder. Typing a filename and pressing Enter picks one file; use the arrow
|
||||
nothing. Typing a filename and pressing Enter picks one file; use the arrow
|
||||
keys to highlight a folder before Enter if you want the whole folder.
|
||||
Pointing at a folder with the mouse does not choose it for Enter.
|
||||
Left and Right collapse and expand a highlighted folder.
|
||||
@@ -189,7 +318,7 @@ Details that keep the absorb faithful:
|
||||
rows from a loader without a connected CLIP import with CLIP strength 0
|
||||
- connected auxiliary outputs, such as trigger words, block absorption because
|
||||
bypassing their source would break those connections
|
||||
- linked LoRA settings and stacks beyond the row limit leave the sources active
|
||||
- linked LoRA settings leave the sources active
|
||||
- already-bypassed or muted loaders contribute no rows
|
||||
- a toast summarizes what was imported, bypassed, remapped, and skipped
|
||||
|
||||
@@ -202,6 +331,14 @@ red with advice to re-pick. Thumbnails, the info card, and range lookups
|
||||
all use the resolved name, so a moved file keeps its previews and Civitai
|
||||
data.
|
||||
|
||||
A missing LoRA is also listed in ComfyUI's own missing-models list (the
|
||||
Issues panel, and the "Download all" button) next to the other models the
|
||||
workflow needs, with a Download button when the workflow saved where the
|
||||
file comes from. Rows that are switched off, at zero strength, or whose
|
||||
file moved folders are left off that list, because the run does not need
|
||||
them or finds them anyway. Rows that come into the node over a link are
|
||||
listed by the node that sets them, not here.
|
||||
|
||||
The run side matches: a stale saved path resolves by name at load time
|
||||
(exact → unique case-insensitive path → unique basename, with a one-line
|
||||
console note when it remaps). A LoRA that is genuinely missing **stops the
|
||||
@@ -236,6 +373,24 @@ or the bare `.png` / `.jpg` / `.jpeg` / `.webp`). No sidecar, no thumbnail —
|
||||
nothing appears and nothing shifts. The gear menu's **Preview thumbnails**
|
||||
switch turns the behavior off.
|
||||
|
||||
**Get the pictures from Civitai:** click **Fetch Civitai info** (or
|
||||
**Refresh Civitai info**) in a LoRA's info card. It also saves the LoRA's
|
||||
first picture from Civitai next to the file, and the hover and the info card
|
||||
show it right away. Gear menu → **Civitai picture** picks which pictures:
|
||||
**PG-13** (the default) skips pictures Civitai rates R or above, **any**
|
||||
takes the first picture whatever its rating, and **off** saves none. It never
|
||||
replaces a picture you already have.
|
||||
|
||||
**All of them at once:** click **Fetch all LoRAs** beside that button (or gear
|
||||
menu → **Civitai info for every LoRA**). It looks up every LoRA in the stack that
|
||||
has no Civitai info yet, one after another with a short pause, so Civitai
|
||||
is not asked too fast. The bottom of the node shows how far it is
|
||||
(`Civitai 12 / 44 · Stop`); click it to stop after the LoRA being fetched.
|
||||
A message at the end says how many were found, how many Civitai does not
|
||||
know, and how many already had their info. LoRAs with info are skipped, so
|
||||
running it again only fetches the new ones. It follows the same
|
||||
**Civitai picture** setting and never replaces a picture.
|
||||
|
||||
## Trigger words
|
||||
|
||||
The info card gathers words from three places: the LoRA file's own metadata,
|
||||
@@ -252,10 +407,21 @@ switched on for the old one.
|
||||
- **Fetch Civitai info** looks this one LoRA up on civitai.com. Nothing is
|
||||
sent until you click. Your browser then sends only the file's SHA256
|
||||
fingerprint, and the answer is saved next to the LoRA as
|
||||
`<model>.civitai.info`. After that the button reads **Refresh Civitai
|
||||
`<model>.civitai.info`, with the LoRA's picture as `<model>.preview.jpg`
|
||||
(see "Get the pictures from Civitai" above). After that the button reads **Refresh Civitai
|
||||
info** and the card gets a **View on Civitai** link. A LoRA Civitai does
|
||||
not know (unpublished or hidden) reads **Not found on Civitai**. Gear
|
||||
menu → **Civitai lookup button** removes the button.
|
||||
menu → **Civitai lookup button** removes the button, and **Fetch all LoRAs**
|
||||
with it. When a lookup fails,
|
||||
a message says why. If it always says it could not reach civitai.com,
|
||||
check whether ComfyUI was started with `--disable-api-nodes`: that setting
|
||||
stops the browser from reaching any other site, Civitai included.
|
||||
- **Fetch all LoRAs** runs that same lookup for each LoRA in the stack that has no
|
||||
Civitai info yet, one at a time, about one and a half seconds apart. If
|
||||
Civitai answers "too many requests", it waits 20 seconds and tries that
|
||||
LoRA once more; a second time, it stops and says so. It also stops when
|
||||
civitai.com cannot be reached, or after three failures in a row. Only one
|
||||
Fetch all LoRAs runs at a time on the page.
|
||||
- **Suggested strength**: a lowest and a highest value at the bottom of the
|
||||
card (leave one empty for "any"). It is only a reminder: a row set outside
|
||||
it shows its number in orange, and the tooltip gives the range. Saved per
|
||||
|
||||
@@ -19,8 +19,8 @@ What is lit in teal is what the mask will be. When it is right, press Run
|
||||
for the whole workflow.
|
||||
|
||||
The first time the pointer rests on a picture, the node looks at it. A
|
||||
small button under the picture shows how far along it is, **❚❚ 40/104**,
|
||||
filling up as it goes. The first things light up after a few seconds, and
|
||||
button under the picture shows how far along it is, **❚❚ Pause · looking
|
||||
40/104**, filling up as it goes. The first things light up after a few seconds, and
|
||||
it has seen the whole picture after about 20.
|
||||
|
||||
You do not have to wait for that. Whatever is lit under the pointer can be
|
||||
@@ -28,7 +28,7 @@ picked: a click takes it at once, also while the node is still looking.
|
||||
|
||||
Click that button to pause the looking when what you need is already lit:
|
||||
what is lit stays, and you go on picking and painting. It turns into
|
||||
**▶**; click it to look on from where it stopped. A click on a spot where
|
||||
**▶ Look on**; click it to look on from where it stopped. A click on a spot where
|
||||
nothing is lit yet looks on as well.
|
||||
|
||||
A click on a spot where nothing is lit yet is not lost: a dot marks it, the
|
||||
@@ -50,6 +50,9 @@ at that spot.
|
||||
A stroke across two things, like both shoes, takes both.
|
||||
- Did the thing not light up at all? Type its name into the field under the
|
||||
picture, like "screen" or "earring", and press Enter.
|
||||
- Is something in the mask that should not be, like the face or the hair of
|
||||
a person you picked? Click the **+** in front of that field so it shows
|
||||
**−**, type "face" and press Enter. Or hold Ctrl and click the face.
|
||||
- When nothing fits, switch to **Paint** and paint the area yourself.
|
||||
|
||||
## The whole subject, or the background
|
||||
@@ -59,6 +62,10 @@ click: the person, the animal, the product. **Background** picks everything
|
||||
else. They are picks like any other: click more things to add them, or
|
||||
Ctrl-click a thing to take it away again.
|
||||
|
||||
Ctrl-click takes away the thing under the pointer, where it is in the mask.
|
||||
On a spot where nothing is picked it changes nothing, and the picture says
|
||||
so.
|
||||
|
||||
Both need ComfyUI's background-removal model, see "The model for Fine
|
||||
edges" below.
|
||||
|
||||
@@ -115,11 +122,16 @@ or an area you painted.
|
||||
it.
|
||||
- **all 3** on a chip takes every thing of that name instead of the one you
|
||||
clicked: all five birds, both shoes.
|
||||
- The field at the end, **+ type a name**, picks every thing of the name
|
||||
you type. With Erase chosen it takes them away.
|
||||
- The field at the end picks every thing of the name you type. The sign in
|
||||
front of it says what happens to the name: **+** adds it, **−** takes it
|
||||
away. Click the sign to change it. A name typed with a minus in front,
|
||||
like "-face", is taken away whatever the sign shows. With Erase chosen the
|
||||
sign starts on **−**.
|
||||
|
||||
## The tools on the node
|
||||
|
||||
- **Reload** (the round arrow) shows the picture coming in now: see
|
||||
**Which picture the picks belong to**, below.
|
||||
- **Undo** takes back the last change, or a Clear. Ctrl+Z works as well: it
|
||||
is ComfyUI's own undo, and every change counts.
|
||||
- **Clear** picks nothing.
|
||||
@@ -152,11 +164,15 @@ or an area you painted.
|
||||
- **More → Smooth** (`smooth`): rounds off a ragged outline by this many
|
||||
pixels.
|
||||
- **More → Fill small holes** (`fill_holes`): closes pinholes inside the
|
||||
picked area. Larger openings stay open, like a mug's handle.
|
||||
picked area. Larger openings stay open, like a mug's handle. Off by
|
||||
default, so a hole you pick stays a hole.
|
||||
- **More → Invert** (`invert`): turns the mask round. On, the mask is
|
||||
everything except what you picked.
|
||||
- **More → If nothing** (`if_nothing`): **stop the run** or **empty mask**,
|
||||
see below.
|
||||
- **More → New picture** (`new_picture`): **keep picks** or **start over**,
|
||||
for when a different picture comes in. See "Which picture the picks belong
|
||||
to" below.
|
||||
- **More → Free VRAM** (`free_vram`): takes SAM 3 out of the graphics card's
|
||||
memory right after the search, so the next model has the room. Turn it on
|
||||
in a workflow that loads a big model after this node.
|
||||
@@ -179,6 +195,35 @@ used ComfyUI's Remove Background template, you already have it.
|
||||
A workflow that already has Fine edges on tells ComfyUI which file it needs,
|
||||
so ComfyUI lists it under **Missing Models** with a download button.
|
||||
|
||||
### RMBG-3.0: softer hair, bigger and slower
|
||||
|
||||
Bria's RMBG-3.0 keeps loose strands, fur and lace that BiRefNet cuts into a
|
||||
hard edge. Once its files are in place, **Fine edges** offers **RMBG-3.0**
|
||||
next to **BiRefNet**, and **Subject** and **Background** use the one you pick.
|
||||
Fine edges still starts at **off**, and while it is off, Subject and
|
||||
Background use BiRefNet.
|
||||
|
||||
It costs more: about 14 GB of files, up to about 17 GB of graphics memory (a
|
||||
24 GB card), and
|
||||
about 2 seconds a picture once it is loaded, where BiRefNet takes under one.
|
||||
The first picture also waits while it loads. Its licence
|
||||
is non-commercial (CC BY-NC 4.0): for paid work, Bria sells a licence. Keep
|
||||
BiRefNet for that.
|
||||
|
||||
From the Hugging Face page `briaai/RMBG-3.0-Comfy`:
|
||||
|
||||
1. `diffusion_models/rmbg3_int8_convrot.safetensors` into
|
||||
`ComfyUI/models/diffusion_models`.
|
||||
2. `text_encoders/qwen3vl_4b_int8_convrot.safetensors` into
|
||||
`ComfyUI/models/text_encoders`.
|
||||
3. `vae/flux2-vae.safetensors` into `ComfyUI/models/vae`.
|
||||
4. Press **R**, then set **Fine edges** to **RMBG-3.0**.
|
||||
|
||||
It needs ComfyUI 0.43 or newer. Keep the model's file name starting with
|
||||
`rmbg3`: that is how the node knows it. After moving a file into a
|
||||
subfolder, pick it again under Fine edges. With both of Bria's copies (int8
|
||||
and bf16), Fine edges says which is which.
|
||||
|
||||
Good to know:
|
||||
|
||||
- Fine edges works on the outline of the main subject: a person's hair
|
||||
@@ -206,8 +251,21 @@ nothing instead.
|
||||
|
||||
## Which picture the picks belong to
|
||||
|
||||
Picks belong to the picture they were made on. Load another picture and the
|
||||
node shows it with nothing picked, and says the old picks are not used.
|
||||
Picks belong to the picture they were made on. When a different picture
|
||||
comes in, **New picture** (under More) decides what happens to them:
|
||||
|
||||
- **Keep picks** (the default): your clicks and paint move onto the new
|
||||
picture, in the same places. On a picture of another size they are
|
||||
scaled to fit it. A click finds whatever is at that spot now; paint stays
|
||||
exactly as painted. Press **Clear** to start over.
|
||||
- **Start over**: the node shows the new picture with nothing picked. If the
|
||||
workflow runs before you pick again, the run stops and says the picks
|
||||
were made on another picture. The new picture shows on the node then,
|
||||
ready to pick from.
|
||||
|
||||
- **The reload button** (the round arrow beside Undo) shows the picture
|
||||
coming in now. Use it after you change the picture before this node, for
|
||||
example with an edit. It runs only this node and what comes before it.
|
||||
|
||||
- With a Load Image wired straight in, or through Reroute nodes, the
|
||||
picture shows as soon as you choose a file.
|
||||
@@ -254,6 +312,15 @@ then.
|
||||
|
||||
### How SAM 3 is asked
|
||||
|
||||
- A picture whose long side is over 2048 pixels is asked about on a copy
|
||||
with its long side at 2048. SAM 3 reads every picture at 1008 pixels
|
||||
anyway, and returns each answer at the size it was given, on the graphics
|
||||
card: at 8192 pixels one word with many matches needed over 27 GB. The
|
||||
answer is brought back to the picture's own size, so the mask, the cut-out
|
||||
and your touches stay in pixels of the picture. Paint is never scaled.
|
||||
Measured on a 3840 pixel picture, five words: the new masks share 95 to
|
||||
99.6 % of their area with the old ones, the edge sits a median 0 to 2
|
||||
pixels differently, and a look takes 31 seconds in place of 53.
|
||||
- The search is ComfyUI's own SAM 3: SAM3 Detect, asked about points, or
|
||||
about a word that CLIP Text Encode has read. Both use ComfyUI's own
|
||||
settings (threshold 0.5, two edge passes). The node needs ComfyUI 0.20 or
|
||||
@@ -277,6 +344,8 @@ no browser:
|
||||
]}
|
||||
```
|
||||
|
||||
- `touches` takes no wire, and neither does `ask` (below): the node's
|
||||
picture writes them. From the API, send them as values.
|
||||
- A `paint` touch may carry **`"s"`**, how soft the brush's edge was (1 to
|
||||
100); without it the brush is hard. A soft brush gives a mask with values
|
||||
between 0 and 1 along its edge.
|
||||
@@ -312,7 +381,10 @@ no browser:
|
||||
used.
|
||||
- **`paint`**: exactly the stroke's own area. SAM 3 is not asked.
|
||||
- **`key`** names the picture the picks were made on: its size and a
|
||||
fingerprint of every pixel. Picks made on another picture are ignored.
|
||||
fingerprint of every pixel. Picks made on another picture are moved onto
|
||||
the one that came in, scaled from the size in their key to its size, and
|
||||
the face is sent the moved touches. With `new_picture` set to `start
|
||||
over` they are ignored instead.
|
||||
Leave `key` out when you write `touches` by hand.
|
||||
|
||||
### How an area is tidied
|
||||
@@ -382,6 +454,15 @@ no browser:
|
||||
node, the plain edge is shown instead, with the same line.
|
||||
- **Free VRAM** unloads this model as well.
|
||||
|
||||
With RMBG-3.0 the subject comes from ComfyUI's own nodes, run the way Comfy's
|
||||
RMBG-3.0 template runs them: its fixed matting instruction, 4 steps, cfg 1,
|
||||
euler, simple, seed 42. The picture is stretched (never cropped) to about one
|
||||
megapixel in steps of 16 pixels, and the red channel of what it paints is
|
||||
scaled back to the picture's size, so the matte lines up pixel for pixel. Its
|
||||
model, text reader and VAE are loaded once and kept, and Free VRAM unloads all
|
||||
three. One copy is held at a time, and it is unloaded before BiRefNet runs.
|
||||
Each picture of a batch is worked out once per run, however long the batch.
|
||||
|
||||
### The things that light up
|
||||
|
||||
- The node asks SAM 3 about a picture in this order: the place under the
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# Pause for Shot 🆎
|
||||
|
||||
Stops the run right after the 3D viewer so you can frame your shot on the
|
||||
model it just made. Turn the camera, zoom, spin the model, then press
|
||||
**Continue**, on this node or on the bar over the viewer. The run goes on with
|
||||
the shot exactly as the viewer shows it, and nothing before this node runs
|
||||
again. **Stop** ends the run here.
|
||||
|
||||
## How to wire it
|
||||
|
||||
Put it between a **Preview 3D (Advanced)** viewer and the node that renders
|
||||
the shot (such as Render Mesh): the viewer's `model_3d_info`, `camera_info`,
|
||||
`width` and `height` go in, and the same four come out.
|
||||
|
||||
## A 360 behind the model
|
||||
|
||||
Wire a 360 picture (twice as wide as tall) into `panorama`. While the run
|
||||
waits, the viewer shows it behind the model, and `backdrop` gives the part of
|
||||
it the camera sees, at the shot's size. Put the shot on top of `backdrop` and
|
||||
the model and its background can be treated apart, such as blurring one and
|
||||
not the other.
|
||||
|
||||
**Shadow** on the viewer's Backdrop tab puts a soft shadow on the floor under
|
||||
the model, so it stands on the 360 instead of floating in front of it. The
|
||||
viewer shows it while you frame, and `backdrop` carries the same shadow.
|
||||
|
||||
Take the 360 out of the viewer while the run waits, and `backdrop` comes out
|
||||
plain grey, the same as with no 360 wired in. What you see in the viewer is
|
||||
what you get.
|
||||
|
||||
## Cut the front or back off the model
|
||||
|
||||
**Cut front** and **Cut back** on the viewer's Model tab take away part of
|
||||
the model as the camera sees it: Back the far side, Front the near side, each
|
||||
as a share of the model's depth. Use Back to hide what should sit behind
|
||||
something in the picture, such as the inside of a hat behind the head. The
|
||||
viewer shows the cut as you drag.
|
||||
|
||||
For the shot to be cut too, wire the model's mesh into `mesh` and take `mesh`
|
||||
from this node to Render Mesh. A run that goes straight through uses the cut
|
||||
saved on the viewer.
|
||||
|
||||
## Settings
|
||||
|
||||
- **Pause**: *wait for me* stops every run here. *run through* lets runs go
|
||||
straight on with the camera as it was when you pressed Run, for runs nobody
|
||||
is watching. The viewer's 360 settings and Cut go along as they were then
|
||||
too, and changing one makes the next run redo the shot.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Why it is needed: a run takes the camera from the moment Run is pressed. A
|
||||
camera moved after that never reaches it, so without a pause you would press
|
||||
Run a second time.
|
||||
- Continue sends the viewer's camera, the model's turn and the size as
|
||||
numbers to the pack's own route. Only a node that is waiting accepts it.
|
||||
- A run that goes straight through takes the viewer's 360 settings and Cut
|
||||
from the hidden `view` input, which the page fills from the viewer as Run
|
||||
is pressed. ComfyUI only runs a node again when one of its inputs changes,
|
||||
so they ride in an input rather than in the saved workflow. A prompt sent
|
||||
without the page can fill `view` with the same JSON (`{"sky": {...},
|
||||
"cut": {...}}`) or leave it empty for the defaults.
|
||||
- Cancel in ComfyUI's queue ends a pause too. A page reloaded during a pause
|
||||
shows the Continue bar again.
|
||||
- Every open page gets the model to frame, not only the one that pressed Run:
|
||||
ComfyUI sends a viewer's result only to that page, so the pause sends it
|
||||
again to all of them.
|
||||
- The floor grid and shadow sit at the lowest point the viewer finds. On
|
||||
large models it checks a sample of points. The shadow covers the bottom
|
||||
tenth of the model. Continue sends that patch with
|
||||
the camera, and the backdrop is darkened along the same rays Render Mesh
|
||||
casts, so the shadow lands where the model's feet are drawn.
|
||||
- The cut planes face the camera. The model's depth is how far the box around
|
||||
its own points reaches along the view, measured the same way in the viewer
|
||||
and on the run's mesh. The viewer cuts at the exact plane; the mesh keeps
|
||||
the triangles whose middle lies between the planes, so the edges agree to
|
||||
within a triangle. While a cut is on, the viewer draws both sides of the
|
||||
model, so through the cut you see its inside, the way Render Mesh draws it.
|
||||
@@ -0,0 +1,54 @@
|
||||
# Photo Camera 🆎
|
||||
|
||||
Works out the camera your photo was taken with, so a 3D model of the person
|
||||
lines up with the photo. With it, the 3D viewer opens on your photo's own
|
||||
view: same height, same lens, the person where they stand in the photo. Move
|
||||
the camera from there and the shot starts from something real instead of a
|
||||
guess.
|
||||
|
||||
It is made for **Pixal3D**, the TRELLIS 2 model in ComfyUI that builds the
|
||||
model lined up with the photo.
|
||||
|
||||
## How to wire it
|
||||
|
||||
- `image`: your photo, the one **Crop to Mask** cuts the person from.
|
||||
- `mask`: the person's mask, the same one Crop to Mask uses.
|
||||
- `fov`: how wide the photo is, in degrees. Wire **Get FoV from MoGe**
|
||||
(horizontal, degrees) here, run on the same photo. Without MoGe, 55 suits
|
||||
most phone photos.
|
||||
|
||||
Then:
|
||||
|
||||
- `crop_fov` goes into **Pixal3D Conditioning**'s `fov`.
|
||||
- `camera_info` goes into the 3D viewer's `camera_info`
|
||||
(**Preview 3D (Advanced)**). The viewer opens on the photo's view.
|
||||
- `strip_width`, `strip_x` and `strip_y` say where the photo goes on the 360
|
||||
canvas: its width (into an Image Scale) and its left and top edges (into
|
||||
the Image Composite that lays it on the canvas). The 360 then lines up
|
||||
with the camera. Turn the 360 by 90 on the viewer's Angle tab so its middle
|
||||
sits behind the model.
|
||||
|
||||
## Settings
|
||||
|
||||
- **Lens**: the photo's field of view across, in degrees.
|
||||
- **Crop margin** (under **More**): the margin Crop to Mask adds around the person.
|
||||
Keep it the same as Crop to Mask's `pad_factor`.
|
||||
- **360 width** (under **More**): the width of the 360 canvas.
|
||||
|
||||
## Technical details
|
||||
|
||||
- Pixal3D builds from a square crop around the person and the crop's field of
|
||||
view. Its model comes out with +Y up, and with the crop's camera on +Z
|
||||
looking at the middle from 0.5 / tan(crop_fov / 2) away.
|
||||
- The whole photo was taken from the same point. Its centre is off the crop's
|
||||
middle, so the photo's camera is the crop's camera turned towards the
|
||||
photo's centre, with no roll. Render Mesh and the viewer can show a turn
|
||||
but not a shifted sensor, which is what a crop really is. A person near the
|
||||
middle lands to the pixel. A fifth of the frame off centre, the model's far
|
||||
edges move by up to 3% of the frame's width; up in a corner with a wide
|
||||
lens, up to 8%.
|
||||
- The crop box is the one Crop to Mask cuts: the node asks ComfyUI's own crop
|
||||
helper for it, and measures it the same way itself on a ComfyUI without
|
||||
that helper.
|
||||
- The photo is laid on the 360 canvas flat, at its own width in degrees, with
|
||||
its centre where the camera's axis meets the canvas.
|
||||
@@ -0,0 +1,54 @@
|
||||
# Prompt Variations
|
||||
|
||||
A prompt box that changes on every run. Write choices in curly brackets and
|
||||
the node picks one from each set:
|
||||
|
||||
```text
|
||||
A woman in a {plain|striped|patterned} {tank top|sweater|button-up shirt}
|
||||
and {jeans|a pleated skirt|cargo shorts}, {standing|sitting on a stool|leaning on the wall}.
|
||||
```
|
||||
|
||||
One run might give "A woman in a striped sweater and jeans, sitting on a
|
||||
stool." The next gives another mix.
|
||||
|
||||
Use it to make many different pictures in one go. Wire in the seed, set the
|
||||
Seed node to **randomize**, and set the number of runs next to the Run
|
||||
button to 50. Each run gets a new seed, so each picture gets new choices.
|
||||
|
||||
## Controls
|
||||
|
||||
- The text box (`text`): your prompt. Put each set of choices in curly
|
||||
brackets and split the choices with `|`. Write as many sets as you like,
|
||||
each with as many choices as you like.
|
||||
- `seed` (a socket): the seed your sampler uses. A new seed picks new
|
||||
choices. The same seed picks the same ones again, so a picture you like
|
||||
can be made again from its seed.
|
||||
|
||||
## Output
|
||||
|
||||
- **prompt**: your text with one choice picked from each set. Wire it to
|
||||
Show Text to see what was picked.
|
||||
|
||||
## Tips
|
||||
|
||||
- An empty choice lets a part come and go: `a {|striped} shirt` gives "a
|
||||
shirt" or "a striped shirt".
|
||||
- Sets can go inside sets: `{a {red|blue} hat|a scarf}`.
|
||||
- Text without curly brackets comes out exactly as typed.
|
||||
- To make one choice come up more often, write it more than once:
|
||||
`{jeans|jeans|skirt}`.
|
||||
|
||||
## Technical details
|
||||
|
||||
Only brackets that hold a `|` are choices. Brackets without one are left as
|
||||
they are, so a JSON prompt such as `{"light": "soft"}` passes through
|
||||
unchanged. A `|` inside JSON brackets still counts as a choice.
|
||||
|
||||
The innermost sets are picked first, from left to right, with Python's
|
||||
`random.Random(seed)`. The same text and seed always give the same prompt,
|
||||
on any machine. Spaces around each choice are trimmed, and an empty pick
|
||||
also drops the one space in front of it.
|
||||
|
||||
The picks happen when the prompt runs, on the server, not in the browser.
|
||||
ComfyUI's own `{a|b}` choices in some text boxes are picked by the browser
|
||||
when you queue, with no seed; this node does not use them.
|
||||
@@ -31,8 +31,8 @@ names from here on; how it measures may still improve.
|
||||
moved a boat keeps the boat where it drew it, so the result lines up
|
||||
closely, not pixel for pixel.
|
||||
- **Leaves alone:** a picture it can't measure, or a zoom bigger than
|
||||
**Max zoom**. That picture only comes out resized, and the report says
|
||||
why.
|
||||
**Max zoom** after allowing for padded reframing. That picture only
|
||||
comes out resized, and the report says why.
|
||||
|
||||
## Controls
|
||||
|
||||
@@ -50,8 +50,10 @@ names from here on; how it measures may still improve.
|
||||
with nothing in it. `edge` (the default) stretches the nearest pixels
|
||||
into it, `source` fills it from the original, `gray` fills it flat gray
|
||||
for inpainting. With a big enough margin there is no strip.
|
||||
- **Max zoom**: the biggest zoom it will undo, in percent (20 by default).
|
||||
Anything bigger is treated as a change you meant and left alone.
|
||||
- **Max zoom**: the zoom limit in percent (20 by default). For a padded
|
||||
picture, zooming in to fill the padding gets an extra allowance; the
|
||||
setting limits zoom beyond that. Zooming out still uses the stated limit.
|
||||
Anything beyond those limits is treated as a change you meant and left alone.
|
||||
|
||||
## Outputs
|
||||
|
||||
@@ -121,6 +123,10 @@ new cloud, are left out. It trusts the fit when at least 10 blocks, and at
|
||||
least a quarter of them, agree. With a stitcher, the blocks tile the
|
||||
picture's area only.
|
||||
|
||||
For padded reframing, the extra zoom-in allowance on each axis is the
|
||||
canvas size divided by the source picture's size, minus one. It is added
|
||||
to **Max zoom**; zooming out gets no extra allowance.
|
||||
|
||||
It runs on the CPU in a fraction of a second per 1 MP frame. No new
|
||||
dependencies, and no model.
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ quick brush before the mask goes to an inpainter. It can also snap the edge
|
||||
to a guide image and adjust the mask's levels. Both the refined mask and its
|
||||
inverse are returned, so no separate invert node is needed.
|
||||
|
||||
You can run it on its own, with nothing wired after it, to check the mask
|
||||
before the rest of the graph runs.
|
||||
|
||||
The panel shows the refined mask itself once the node has run, so the effect
|
||||
of a setting is visible without wiring a preview node beside it. With a batch
|
||||
or a video it shows the first mask. The small
|
||||
@@ -58,12 +61,19 @@ run the workflow again. The switch is the node's optional `preview` input.
|
||||
- **Edge** (`edge_refine`): `off`, **guided** (`guided filter`), or
|
||||
`matting`. Both refinements snap the mask edge to the connected
|
||||
**guide_image** and run per frame, so video batches stay interruptible:
|
||||
- `guided filter` — fast edge-aware filtering of the soft mask against the
|
||||
guide image. The filter radius scales with **Expand**.
|
||||
- `matting` — closed-form alpha matting: the binarized mask eroded by the
|
||||
edge radius counts as definite foreground, the dilation marks where
|
||||
definite background begins, and the band between is solved against the
|
||||
guide image. Pair it with the levels remap to tidy the solved alpha.
|
||||
- `guided filter` — fast. Pulls the mask's edge onto the edges in the
|
||||
guide image, which picks up thin parts and loose strands a rough mask
|
||||
missed. **Detail range** sets how far it looks.
|
||||
- `matting` — slower and finer. Softens the mask's edge over a wide band
|
||||
and works out the real edge inside it from the guide image. Pair it
|
||||
with the levels remap to tidy the result.
|
||||
- **Detail range** (`detail_range`): How far from the mask's edge to look
|
||||
for the real edge, `12` by default. Raise it for hair or a loose mask,
|
||||
lower it for a small subject. Used only while **Edge** is on.
|
||||
- **Fix threshold** (`fix_threshold`): How much of the softened edge
|
||||
matting may rework. The default, `0.01`, lets it fix the whole edge;
|
||||
higher values trim the mask inward. Used only while **Edge** is
|
||||
`matting`.
|
||||
- **guide_image** (optional input): RGB frames the mask belongs to, matching
|
||||
the mask's size; one frame is broadcast across a mask batch. Required when
|
||||
`edge_refine` is not `off`.
|
||||
|
||||
@@ -2,12 +2,21 @@
|
||||
|
||||
Pick a picture size by shape and megapixels, or by dragging. Use it in place of an Empty Latent node: it gives you the width, the height and a blank latent of that size.
|
||||
|
||||
- **Shape:** the left button selects landscape or portrait. Ratio chips follow that choice; square retains it for the next selection. Clicking a chip uses its generated size near one megapixel. Enable **Chips keep current budget** in the gear to retain the current area.
|
||||
- **Shape:** the left button selects landscape or portrait. Ratio chips follow that choice; square retains it for the next selection. Clicking a chip changes the shape and keeps your current megapixels. To have a chip jump to its size near one megapixel instead, turn off **Chips keep current budget** in the gear.
|
||||
- **Canvas:** drag a side to change one dimension; drag the corner to scale both. Shift frees the corner ratio, Alt removes snapping, and Escape cancels the drag. The bright readout shows the size, megapixels and ratio; an amber dot means the size is off the snap grid, which a typed size can be. Arrow keys nudge the focused canvas by the snap step, or by 8 px with Shift.
|
||||
- **Size & budget:** scrub or type W, H, or MP. Typed dimensions are preserved exactly. The swap button exchanges dimensions. The **Sizes** chips are ready-made sizes for the current ratio, small to large. They show while the shape is one of the ratio chips; any other shape shows one greyed-out "custom" chip.
|
||||
- **Gear:** set the **Snap step**, edit the **Ratio rail**, choose the **Latent family** (`latent`) and **Batch size** (`batch_size`), and hide the **Dot grid** or **MP cost curves**. **Snap step** (8, 16, 32 or 64; starts at 32) is the grid that drags, arrow keys and chips land on. The **Ratio rail** is the list of ratio chips, typed as `1:1, 21:9`. The display options apply to every Latent Size node in this browser; latent family and batch size (1 to 64) belong to this node.
|
||||
- **Gear:** set the **Snap step**, edit the **Ratio chips**, choose the **Latent family** (`latent`) and **Batch size** (`batch_size`), and hide the **Dot grid** or **MP cost curves**. **Snap step** (8, 16, 32 or 64; starts at 32) is the grid that drags, arrow keys and chips land on. The display options apply to every Latent Size node in this browser; latent family and batch size (1 to 64) belong to this node.
|
||||
- **Ratio chips:** in the gear, **Ratio chips → Edit list** shows every ratio with its size near one megapixel. Tick a ratio to show it as a chip, untick it to hide it, × removes it, and the box at the bottom adds your own, such as `21:9`. 5:4 and 21:9 come in the list switched off. **Reset to defaults** brings back the shipped list. Add a ratio once: the flip button turns it portrait.
|
||||
- **Node size:** drag the node's corner to make it wider or taller, so it lines up with the nodes around it. The controls stretch with it, and the canvas preview takes any extra height. It can be as narrow as 320 pixels.
|
||||
|
||||
## Workflow resolutions
|
||||
|
||||
In the gear, choose **This workflow → Workflow resolutions → Edit list**. Enter one exact width × height per line, up to 24. The list belongs to this node and travels with the saved workflow. An empty list leaves the normal editor unchanged.
|
||||
|
||||
- **Recommendations:** leave **Limit choices to this list** off. The Sizes row shows your quick picks, and users can still type, drag or choose another shape.
|
||||
- **Strict model sizes:** turn the limit on. The Shape row shows only the exact ratios in the list. Select a ratio to see its allowed sizes. For example, 576×1024 and 720×1280 share 9:16; 480×864 is a separate 5:9 option. Landscape is available only if you list a landscape size. The canvas stays visible, but it cannot be stretched. The swap button works only if the exact reverse size is listed.
|
||||
- On enabling the limit, an unlinked size stays selected if allowed; otherwise the first listed size is selected. A linked width or height is checked at run time, before the latent is allocated. An unsupported pair produces an error naming the allowed sizes. For video workflows, connect these width and height outputs to the video latent node.
|
||||
|
||||
## Outputs and links
|
||||
|
||||
Outputs are **width**, **height**, and **latent**, in that order. The node has four input sockets above the panel: width, height, latent and batch_size. Linking width or height locks the controls that would change both dimensions; the other dimension remains editable. Linking latent or batch_size sets the latent family or batch size from another node, and the gear then shows that setting as linked. A linked value is read when the workflow runs, so the preview keeps showing the size stored on the node.
|
||||
|
||||
@@ -41,17 +41,49 @@ file's name. A caption on the `caption_text` input writes the paired `.txt`.
|
||||
workflow in EXIF. **JXL** (`jxl lossless`, lossless JPEG XL) is the most
|
||||
compact; it needs the optional `pillow-jxl-plugin` in ComfyUI's python
|
||||
(also the pack's `jxl` extra) and few browsers preview it.
|
||||
- **Embed workflow** (`save_metadata`): **yes** stores the prompt and
|
||||
- **Embed** (`save_metadata`, `civitai_info`): **On** stores the prompt and
|
||||
workflow in the file (PNG text chunks, EXIF in webp and jxl) so it drags
|
||||
back into ComfyUI; **no** writes a clean file for sharing or datasets.
|
||||
back into ComfyUI; **Off** writes a clean file for sharing or datasets.
|
||||
`--disable-metadata` on the server wins.
|
||||
- **Civitai** (the Embed switch's third choice, `civitai_info` on): stores
|
||||
the workflow and also the prompt, the sampler settings and the
|
||||
fingerprints of the model and LoRAs in the form civitai.com reads, so an
|
||||
upload shows its prompt and lists its resources. Not the default: Civitai
|
||||
then shows these settings instead of the ComfyUI workflow, though the
|
||||
workflow stays in the file and still drags back into ComfyUI. The first save with a new model
|
||||
takes a moment while its file is fingerprinted; after that it is
|
||||
remembered. See "Uploading to Civitai" below.
|
||||
- **Preview** (`preview`): the small switch under the card shows the saved
|
||||
image on the node. Off, the picture's box goes away and the node is
|
||||
shorter; on again, the node returns to its height with the last saved
|
||||
image. It is display only: the file is saved either way and the queue
|
||||
still lists it. When a run saves more than one image (a batch, or a list
|
||||
such as a folder of images), arrows beside the switch (‹ 2 / 5 ›) step
|
||||
through them.
|
||||
such as a folder of images), they all show side by side. The arrows
|
||||
beside the switch (‹ all 5 ›) go on to each one by itself (‹ 2 / 5 ›) and
|
||||
back round to all of them. A run of more than 48 shows one at a time.
|
||||
The node shows a small copy of each picture (up to 2048 pixels on the
|
||||
long side), so a big file shows at once on a slow connection too. The
|
||||
saved file is always full size. The copies are in ComfyUI's temp folder.
|
||||
- **Auto save** (`autosave`, on by default): on, every run saves its
|
||||
pictures. Off, a run only shows them here and saves nothing. A row over
|
||||
the picture then says **Not saved yet**, with a **Save picture** button.
|
||||
With several pictures it reads **Save all 4**, and with the arrows on one
|
||||
picture, **Save this one**. After a save the row says what is saved.
|
||||
Use it to make a batch, look, and keep only the good ones. The pictures
|
||||
are saved under the name and folder set above, in the format picked,
|
||||
with the workflow inside if **Embed workflow** is on. They wait in
|
||||
ComfyUI's temp folder, which is emptied when ComfyUI restarts, so save
|
||||
what you want before that. The Save button works for the last 256 runs.
|
||||
- **Preview steps** (`step_preview`, off by default): the switch left of
|
||||
**preview** shows the picture while it is being made, one step at a time,
|
||||
where the saved image goes, with a **STOP** button on the bar. Stop a run
|
||||
that is going wrong after the first steps instead of waiting for the end;
|
||||
a stopped run saves nothing and says so on the picture. Once the image is
|
||||
saved it replaces the steps. With several samplers, the node shows the one
|
||||
that feeds it. During an upscale in tiles it keeps the whole picture and
|
||||
says "upscaling in tiles" instead of showing each tile. Display only: the
|
||||
saved file is the same with it on or off.
|
||||
The [Step Preview](AUSBOSS_NODES_StepPreview.md) page has the details.
|
||||
|
||||
## Inputs
|
||||
|
||||
@@ -91,6 +123,44 @@ be, apart from the size, which only a run knows.
|
||||
and is not read for tokens.
|
||||
- Other text between percent signs stays as typed.
|
||||
|
||||
## Uploading to Civitai
|
||||
|
||||
civitai.com reads a ComfyUI picture's prompt from the embedded graph, but
|
||||
only from nodes it knows. A prompt typed into Krea 2 Encode 🆎, core's Qwen
|
||||
Image 2.1 encoder or a node inside a subgraph reads as no prompt, and the
|
||||
upload is flagged "Unable to Verify AI Generation". Civitai also finds a
|
||||
picture's models only by their file fingerprints, which a ComfyUI graph does
|
||||
not hold, so a plain ComfyUI picture always says no resources were found.
|
||||
Pick **Civitai** in the Embed switch before saving pictures you mean to
|
||||
upload.
|
||||
|
||||
### Technical details
|
||||
|
||||
- The line is the one A1111 writes (`parameters` text in PNG, EXIF
|
||||
UserComment in WebP and JPEG XL): prompt, `Negative prompt:`, then
|
||||
`Steps`, `Sampler`, `Schedule type`, `CFG scale`, `Seed`, `Size`,
|
||||
`Model hash`, `Model`, `Lora hashes` and a `Hashes` JSON block. Civitai
|
||||
reads it before the ComfyUI graph.
|
||||
- It ends with `engine: ComfyUI`, which tags the post with the ComfyUI tool,
|
||||
and `process: txt2img` or `img2img`, which picks its technique. A sampler
|
||||
that starts from an encoded picture, an inpaint node, or a denoise under 1
|
||||
counts as img2img.
|
||||
- Civitai does not keep the ComfyUI graph from a picture that carries this
|
||||
line, so its page shows no workflow to copy. The workflow is still in the
|
||||
file for anyone who downloads it.
|
||||
- It is built from the run's own graph, walking up from this node to the
|
||||
nearest sampler (KSampler, KSamplerAdvanced, SamplerCustom and
|
||||
SamplerCustomAdvanced), its prompt encoder, and the checkpoint or
|
||||
diffusion model and LoRAs on its model input. LoRA Loader 🆎 rows that are
|
||||
off or at strength 0 are left out. A graph with no sampler gets no line.
|
||||
- Fingerprints are AutoV2 hashes (the first ten hex digits of the file's
|
||||
SHA256), cached in `user/ausboss/` by file size and date. Text encoders and
|
||||
VAEs are not listed; Civitai does not credit a picture to them.
|
||||
- A prompt made while the graph runs (Prompt Variations 🆎) is written as
|
||||
the text typed into its node.
|
||||
- Videos cannot carry it: Civitai reads only the `prompt` and `workflow`
|
||||
tags of an mp4 or webm.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **file_path**: absolute path of the first file saved this run (empty when
|
||||
|
||||
@@ -9,6 +9,14 @@ duration, shows a tall video whole, and has a **LOOP** control. `gif` and
|
||||
`webp` are shown as pictures with just the file name, since a video player
|
||||
cannot play either.
|
||||
|
||||
**Preview steps** above the player (`step_preview`, off by default) shows the clip in
|
||||
the player while it is being made: after each step, about one frame per
|
||||
second of the clip plays in a loop, with a **STOP** button on the player.
|
||||
You see the motion take shape, not only the first frame. Stop a clip that is going wrong after the first steps
|
||||
instead of waiting for the end; a stopped run saves nothing. The saved
|
||||
video replaces the steps. The [Step Preview](AUSBOSS_NODES_StepPreview.md)
|
||||
page has the details.
|
||||
|
||||
## Controls
|
||||
|
||||
- **frames**: BHWC frame batch to encode. For the subsampled formats, odd
|
||||
@@ -30,7 +38,7 @@ cannot play either.
|
||||
- **Ping-pong** (`pingpong`): Plays the clip forward then backward so it loops seamlessly.
|
||||
Roughly doubles the frame count and the encode time. The first and last
|
||||
frames are not repeated at the turnaround, so the loop does not hitch.
|
||||
- **Metadata** (`save_metadata`): On by default. Turn it off to share a file
|
||||
- **Embed workflow** (`save_metadata`): On by default. Turn it off to share a file
|
||||
without your prompt and node graph embedded in it. If ComfyUI was started
|
||||
with `--disable-metadata`, nothing is embedded whatever this says.
|
||||
- **audio** (optional): A track to mux into the file, e.g. Load Video's
|
||||
@@ -70,13 +78,14 @@ a software format to use instead rather than failing with a driver stack
|
||||
trace.
|
||||
|
||||
`gif` and `webp` have no streaming encoder, so every frame is held in memory
|
||||
before the first byte is written — keep those to short clips. Neither carries
|
||||
metadata, so an embedded workflow is not available for them.
|
||||
before the first byte is written — keep those to short clips. `webp` carries
|
||||
the embedded workflow the same way ComfyUI's own animated WebP does; `gif` has
|
||||
no place for it.
|
||||
|
||||
The node's face follows the table: widgets the chosen format ignores are
|
||||
hidden rather than left to look meaningful. The CRF field leaves the
|
||||
**FPS · CRF** row for `mov prores`, `mkv ffv1` and `gif` (their rows read
|
||||
*ignored* above), and the **Metadata** row disappears for `gif` and `webp`,
|
||||
*ignored* above), and the **Embed workflow** row disappears for `gif`,
|
||||
which cannot carry it. Hidden is not removed:
|
||||
the widget keeps its position and its value, saved workflows store and restore
|
||||
it exactly as before, and switching the format back brings it back with the
|
||||
|
||||
@@ -27,6 +27,15 @@ needs.
|
||||
- The line underneath shows the last run's seed. The history saves with the
|
||||
workflow.
|
||||
|
||||
## Compact look
|
||||
|
||||
The **gear** beside the number picks the look. **Compact** is one short
|
||||
row: the number, a mode chip and a dice. Tap the chip to go Random → Fixed →
|
||||
+1 → −1. The dice rolls a new seed and pins it. A long seed shrinks to fit.
|
||||
Hover the number to see the last run's seed. The look is saved on the node,
|
||||
and new Seed nodes start in the look you picked last. **Full** brings back
|
||||
the whole card, with the seeds it ran with.
|
||||
|
||||
## Output
|
||||
|
||||
- **seed**: The seed, unchanged.
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
# Step Preview
|
||||
|
||||
Shows the picture while it is being made, one step at a time, with a
|
||||
**Stop** button. If the picture is going wrong (the pose, the framing, an
|
||||
extra arm) you can see it after the first few steps and stop the run,
|
||||
instead of waiting for the last step.
|
||||
|
||||
Put it anywhere on the canvas. It needs no wires: it shows whichever sampler
|
||||
in the workflow is making a picture right now, and the caption under the
|
||||
picture says how far it is ("step 3 of 8").
|
||||
|
||||
For a video, the picture moves: after each step a few frames of the clip,
|
||||
about one per second, play in a loop, so you can see the motion form and
|
||||
stop a clip that is going wrong.
|
||||
|
||||
## The buttons
|
||||
|
||||
- **STOP**: stops this run now. Nothing after the sampler runs, so nothing
|
||||
is saved. The next run in the queue still starts.
|
||||
- **STOP ALL · N**: shows when more runs are waiting in the queue. It
|
||||
empties the queue and stops this run.
|
||||
|
||||
As soon as the run saves the picture, the finished picture replaces the
|
||||
blurry last step, and it stays on the node until the next run starts. The
|
||||
word at the right of the bar says how the run ended: done, stopped or
|
||||
failed. A stopped run keeps the last step it reached.
|
||||
|
||||
An upscale in tiles works on one small piece of the picture at a time.
|
||||
Those pieces are not shown as the picture: the node keeps the last whole
|
||||
picture and says "upscaling in tiles", with the steps of the piece being
|
||||
worked on.
|
||||
|
||||
## Save Image and Save Video can do it too
|
||||
|
||||
Save Image 🆎 and Save Video 🆎 have a **steps** switch of their own (off by
|
||||
default). On, the picture area of the save node shows the steps of the
|
||||
picture it is about to save, with the same Stop button. Use the save node's
|
||||
switch when you look at the result anyway, and this node when you want a
|
||||
bigger view, or one view for a workflow with several samplers.
|
||||
|
||||
## Sharper step pictures
|
||||
|
||||
The step pictures are small and blurry. That is enough to judge the pose
|
||||
and the layout. Some models have a small preview decoder (a TAESD file)
|
||||
that makes them sharper: put it in ComfyUI's `models/vae_approx` folder and
|
||||
ComfyUI uses it.
|
||||
|
||||
## Technical details
|
||||
|
||||
- ComfyUI only makes step pictures when its preview method is something
|
||||
other than `none`, and a fresh install starts with `none`. When a queued
|
||||
workflow holds this node, or a Save Image or Save Video with its steps
|
||||
switch on, the pack asks for the `auto` method for that one run.
|
||||
- It never overrides a choice you made: if you picked a method in
|
||||
ComfyUI's **Live preview method** setting, or started ComfyUI with
|
||||
`--preview-method`, that one is used. `--preview-method none` on the
|
||||
command line is treated as "not chosen", since it is the default.
|
||||
- `auto` uses the model's TAESD decoder from `models/vae_approx` when it is
|
||||
installed, and a quick color estimate (latent2rgb) otherwise. Some models
|
||||
have neither (SeedVR2, for one), and then no step pictures come.
|
||||
- The pictures are at most 512 px on their long side (`--preview-size`).
|
||||
They do not change the result: the same seed makes the same picture with
|
||||
the steps shown or not.
|
||||
- They cost next to nothing. Measured with Qwen Image 2.1 on one desktop:
|
||||
8.50 s with the steps off and 8.40 s on for 8 steps, 17.62 s and 17.64 s
|
||||
for 25 steps, the same picture every time.
|
||||
- While previews are on, a ComfyUI sampler that sits on the top level of
|
||||
the workflow (not inside a box) shows the steps on its own face too, as
|
||||
it does whenever previews are turned on in ComfyUI. The node grows to
|
||||
hold the picture and keeps the last step after the run.
|
||||
- Runs queued from another workflow tab are not shown here.
|
||||
- With a video model (H3, Wan, LTX and others), the step picture moves:
|
||||
after each step the pack also sends about one frame per second of the
|
||||
clip (16 at most), and they play in a loop at the clip's own pace. Each
|
||||
frame is made by the same preview ComfyUI uses for the first frame, one
|
||||
frame at a time, so it needs no extra memory and no extra files.
|
||||
- Measured with MiniMax H3 (Pika, 6 steps, a 5 second clip) on one
|
||||
desktop: 6.22 s a step with no step pictures, 6.35 s with the moving
|
||||
ones; 53.6 s and 53.8 s for the whole run. With the quick preview the 7
|
||||
frames of a step take about 1 ms to make, and each step sends about 20 KB.
|
||||
- With the tiny video decoder (TAESD chosen and `taeh3` in
|
||||
`models/vae_approx`) the frames are sharper and take longer, about 60 ms
|
||||
each at 720p on that desktop. The frames never take more than a tenth of
|
||||
the run's time: on a slower card some steps keep the frames they have
|
||||
instead of making new ones.
|
||||
@@ -7,6 +7,59 @@ from **Crop For Inpaint 🆎**, **Load Image + Pad 🆎** or any
|
||||
result, it is resized to fit first, then joined to your picture the way
|
||||
**Seam** says.
|
||||
|
||||
## Follow changes
|
||||
|
||||
Turn on **Follow changes** when the model draws past your box and the paste
|
||||
cuts it off: a boot that ends at the box's edge, half a plate rim, a collar
|
||||
sliced flat. Edit models that redraw the whole crop they are given, such as
|
||||
MiniMax H3 Image, do this often.
|
||||
|
||||
With it on, the paste is no longer just the box. It takes the box plus every
|
||||
change the model made that touches the box, and fades out before the edge
|
||||
of the crop that went to the model. Before that, it undoes the small zoom or
|
||||
shift such a model can draw, so the wall, tiles or table around the edit line
|
||||
up with your picture again.
|
||||
|
||||
When the model changed nearly everything around the box, there is no single
|
||||
new thing to follow, and the paste stays the box. The console says what was
|
||||
done on each run. Follow changes works on a Crop For Inpaint stitcher with
|
||||
the classic seam; an outpaint has no picture under its new area to compare
|
||||
against, so it pastes as before.
|
||||
|
||||
### Technical details
|
||||
|
||||
- The model's crop is lined up with the picture's own crop by the zoom and
|
||||
shift Realign to Source measures (up to 20% zoom). An unreliable
|
||||
measurement leaves the crop as it came back.
|
||||
- A pixel counts as changed when the lined-up crop differs from your
|
||||
picture by more than 0.10 (on 0 to 1, averaged over red, green and blue,
|
||||
after a 4 px blur). Changes are joined to the box when they come within
|
||||
8 px of it, then closed by 6 px, filled, widened by 10 px and softened by
|
||||
10 px.
|
||||
- The paste fades to nothing over 24 px before each crop edge that lies
|
||||
inside your picture, and runs to the picture's own edge where the crop
|
||||
reaches it.
|
||||
- When the changes outside the box cover more than half of the crop outside
|
||||
the box, the paste stays the box.
|
||||
- The work runs at most 768 px on the long side and takes under a second
|
||||
on a 4 MP crop.
|
||||
|
||||
## Paste onto: crop or original
|
||||
|
||||
**Paste onto** picks what you get back. It lives in the gear menu, next to
|
||||
Seam.
|
||||
|
||||
- **crop** (the default) gives back the picture you framed.
|
||||
- **original** puts the edit on your whole picture, at its full size. Use it
|
||||
after you crop by hand in **Image Crop + Rotate + Pad 🆎**: the model works
|
||||
on the crop, and everything you did not paint stays exactly as it was. It
|
||||
also works when you turned or resized the crop.
|
||||
|
||||
Padding has no place on your picture, so anything painted in added space is
|
||||
left out. With **Crop For Inpaint** and **Load Image + Pad** the result is
|
||||
your whole picture either way. The video nodes don't have this yet: their
|
||||
result stays on the crop, and the console says so once.
|
||||
|
||||
## Seam: classic or blend in
|
||||
|
||||
**Seam** picks how the new area joins your picture. It lives in the gear
|
||||
@@ -51,15 +104,28 @@ are in the model's own picture.
|
||||
Tone match 0 the new area is bit-identical to what the model painted, and
|
||||
the whole stitch is the 2.4.0 blend in, pixel for pixel.
|
||||
- With the classic seam, feeding the crop back unchanged reproduces the
|
||||
original image exactly (with `fix_edge_halo` off; the fix rewrites the
|
||||
feathered band on purpose). Blend in does not promise this: it keeps the
|
||||
model's version of the thin strip at your picture's edge.
|
||||
original image exactly only when there is no resizing in either direction,
|
||||
with Tone match at 0 and `fix_edge_halo` off. Resizing can lose detail even
|
||||
when the crop comes back unchanged; the halo fix rewrites the feathered
|
||||
band on purpose. Blend in does not promise this: it keeps the model's
|
||||
version of the thin strip at your picture's edge.
|
||||
- A stitcher built from one image broadcasts over any number of inpainted
|
||||
frames. A stitcher built from **more** frames than came back is trimmed to
|
||||
the leading ones with a console note - video models keep 8n+1 (LTX) or
|
||||
4n+1 (Wan) frames and drop the tail - so a long run is never thrown away
|
||||
over the count. More inpainted frames than source frames is still an error.
|
||||
|
||||
## Pictures with see-through parts
|
||||
|
||||
A picture with a clear background, such as a cut-out, keeps it. Most
|
||||
models paint colour only, so the new area takes your picture's own
|
||||
see-through parts where it lands: what was clear stays clear, and the edit
|
||||
shows where your picture is solid. A model that paints see-through parts
|
||||
of its own (Qwen Image 2.1 can) has them blended in like the colours.
|
||||
|
||||
So with a colour-only model, new things painted into a clear area stay
|
||||
hidden. Fill that area in first if the edit needs it.
|
||||
|
||||
## Controls
|
||||
|
||||
- **stitcher**: The stitcher from one of the nodes above. It carries the
|
||||
@@ -70,6 +136,8 @@ are in the model's own picture.
|
||||
- **Seam** (`seam`, in the gear menu): `classic` (the default) or
|
||||
`blend in`. Read "Seam: classic or blend in" above. It has no socket,
|
||||
so a link cannot drive it.
|
||||
- **Paste onto** (`paste_onto`, in the gear menu): `crop` (the default) or
|
||||
`original`. Read "Paste onto: crop or original" above. It has no socket.
|
||||
- **Fix edge halo** (`fix_edge_halo`, classic seam only): Off by default. Recovers the true
|
||||
color under the feathered seam before pasting, so half-transparent edge
|
||||
pixels stop blending their background in a second time. It costs real
|
||||
@@ -124,9 +192,25 @@ correction turns the corner without a crease.
|
||||
The shift is subtracted from the pasted region before the blend. In the
|
||||
padding that is the whole shift; inside the feathered band the paste
|
||||
alpha scales it, which is exactly the share of each band pixel the
|
||||
sampler painted. Source pixels stay bit-identical. A crop stitcher, which
|
||||
has no source rectangle, gets a single global shift measured in its
|
||||
blend band instead.
|
||||
sampler painted. Source pixels stay bit-identical.
|
||||
|
||||
A Crop For Inpaint crop has no source rectangle, so it gets one shift for
|
||||
the whole painted area. That shift is read inside the painted area, in the
|
||||
32 pixels next to its edge: the same pixels before and after, taking the
|
||||
middle value. Those 32 pixels are counted at the size the model painted, so
|
||||
a large picture is read the same way and takes no longer. Most inpaint workflows let the model paint a little wider
|
||||
than the paste, so the soft edge itself comes back close to your picture
|
||||
and shows only a fraction of the drift. When the painted area holds
|
||||
something new (less than half of that rim agrees, or the change is larger
|
||||
than 20 LAB units, such as a black jacket over skin), it is not drift: the
|
||||
old pixels in that place show something else. The new part is then
|
||||
compared with your untouched picture right beside it, each side averaged
|
||||
within 48 pixels of the seam. Where the two sides look alike (within 20
|
||||
LAB units, on at least a quarter of the seam, such as new skin next to
|
||||
skin), the gap between them is taken off. Where they do not, such as a
|
||||
jacket next to skin, Tone match leaves that picture as painted. Before,
|
||||
the soft edge was read there instead, and a model that repaints the edge
|
||||
too could tint the whole patch: a yellow swimsuit over skin came back blue.
|
||||
|
||||
On a Crop + Rotate + Pad canvas the source rectangle is the crop, so it
|
||||
can also hold the rotation's empty corners and any transparency. The
|
||||
@@ -207,6 +291,8 @@ you brighten it first.
|
||||
## Outputs
|
||||
|
||||
- **image**: The original-size image with the inpainted region blended in.
|
||||
After a crop in a Crop + Rotate + Pad node, that means the crop's size,
|
||||
unless **Paste onto** is on original.
|
||||
- **blend_mask**: The feathered paste mask in the stitched image's own
|
||||
coordinates — white where the inpaint blended in, zero where the original
|
||||
survived untouched. Wire it into a color-match or compositing node to
|
||||
@@ -222,6 +308,16 @@ you brighten it first.
|
||||
The rest of this page is for people who want to know how blend in works
|
||||
and how it was tested.
|
||||
|
||||
### How Paste onto original works
|
||||
|
||||
Image Crop + Rotate + Pad's stitcher carries your picture and the crop's
|
||||
position. A straight crop at its own size is a plain paste, so every pixel
|
||||
the mask does not touch is bit-identical. A turned or resized crop is sampled
|
||||
back (bicubic) once per picture pixel, so the edit in those cases is as soft
|
||||
as the canvas it was painted on. Untouched pixels stay bit-identical there
|
||||
too, and in the feathered band your full-size picture replaces the canvas's
|
||||
softer copy of it.
|
||||
|
||||
### How the empty check works
|
||||
|
||||
The new area is cut into 16 px blocks, and only blocks fully inside it are
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
# Strength Curve
|
||||
|
||||
Draw how strong something should be over a run, from the first step to the
|
||||
last, and wire the curve into a node that follows it step by step.
|
||||
|
||||
- **LoRA Loader 🆎**: wire the curve into its `curve` input and click the
|
||||
curve mark on each row that should follow it. Fade a style LoRA out so
|
||||
the fine detail at the end comes out clean, or bring a detail LoRA in
|
||||
late.
|
||||
- **Krea 2 Encode 🆎**: wire the curve into `reference_curve`. The picture
|
||||
follows your reference as strongly as the curve says: hold the layout
|
||||
early and let go late, or the other way round.
|
||||
|
||||
## Using it
|
||||
|
||||
1. Pick a preset (flat, fade out, fade in, ease out, ease in) or drag the
|
||||
points. Double-click the curve box to add a point, right-click a point to
|
||||
remove it.
|
||||
2. Click a point to pick it, then type or scrub **Point at** (where in the
|
||||
run, in %) and **value** for exact numbers.
|
||||
3. Set **Top** (`high`) and **Bottom** (`low`): the strength at the top and
|
||||
the bottom of the curve box. A fade from 1 to 0.3 is a fade out with
|
||||
Bottom at 0.3.
|
||||
|
||||
Left is the start of the run, where the picture is still noise; right is
|
||||
the end, where only fine detail changes. Hover the curve to read the value at
|
||||
any point.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **curve**: the strength over the run, as a list of numbers from start to
|
||||
end (ComfyUI's `FLOATS` type).
|
||||
|
||||
## Tips
|
||||
|
||||
- On a LoRA row, the curve multiplies the row's own strength. A row at 0.8
|
||||
with a fade out goes from 0.8 to 0.
|
||||
- It works with every model file: full size, fp8, fp8 scaled and int8.
|
||||
- A curve that moves makes each step a little slower (about 5% on Krea 2)
|
||||
and needs no extra memory. A flat line costs nothing.
|
||||
|
||||
## Technical details
|
||||
|
||||
- The points are saved in the hidden `points` input as `[where, value]`
|
||||
pairs from 0 to 1, so a workflow run through the API gives the same
|
||||
curve with no editor open. The line between points is a monotone cubic
|
||||
(Fritsch and Carlson), so it never swings past a point.
|
||||
- The output is 101 values spread evenly from start to end, Bottom to Top.
|
||||
It is the same reading ComfyUI's own **Create Hook Keyframes From
|
||||
Floats** gives a list, so the curve also feeds ComfyUI's hook nodes, and a
|
||||
list of numbers from another node feeds our inputs.
|
||||
- Both nodes read "where in the run" the way ComfyUI's hook keyframes do:
|
||||
ComfyUI's percent of the run, measured by noise level. With
|
||||
the `simple` and `normal` schedulers that matches the step count; other
|
||||
schedulers spend more steps at some noise levels. A second sampler that
|
||||
carries on from the first (a refiner pass, a denoise below 1) reads only
|
||||
the part of the curve it covers.
|
||||
- LoRA Loader adds a following row to each layer's result as the layer
|
||||
runs (ComfyUI's bypass mode), so the model's weights are never rewritten
|
||||
and no second copy of them is kept. Krea 2 Encode scales the reference
|
||||
inside attention.
|
||||
@@ -0,0 +1,60 @@
|
||||
# Text Lines
|
||||
|
||||
Runs what comes after once for each line of your text. Type five prompts,
|
||||
one on each line, press Run once, and you get five pictures.
|
||||
|
||||
Use it for a list of prompts you typed, or for a list another node wrote,
|
||||
such as a text model asked for "five different poses".
|
||||
|
||||
## How to use it
|
||||
|
||||
1. Type your lines in the box, or wire text into **text**.
|
||||
2. Wire **line** to where one prompt would go, such as a text encoder's
|
||||
prompt.
|
||||
3. Run. Every node after it runs once for each line, and a Save Image at the
|
||||
end saves one picture for each.
|
||||
|
||||
Empty lines are skipped. Models and pictures that do not depend on the line
|
||||
are loaded once, not once for each line.
|
||||
|
||||
## Controls
|
||||
|
||||
- The text box (`text`): One line for each run.
|
||||
- **Split at** (`split`): **each line** makes every line its own run.
|
||||
**blank line** keeps lines together and starts the next run at an empty
|
||||
line. Pick it when one prompt is several lines long.
|
||||
- **Numbering** (`remove_numbering`): **remove** takes a number or bullet
|
||||
off the start of each line, such as `1.`, `2)`, `-` or `[prompt 3]`.
|
||||
Lists a text model writes usually have them. **keep** leaves every line
|
||||
as written.
|
||||
- **Limit** (`limit`): The most lines to run. 0 runs them all. Set it when
|
||||
a text model might write more lines than you asked for.
|
||||
|
||||
## Outputs
|
||||
|
||||
- **line**: Each line, one at a time.
|
||||
- **number**: The line's place in the list, starting at 1. Add it to a seed
|
||||
with Math Expression (`a + b`) to give each line its own seed.
|
||||
- **count**: How many lines run.
|
||||
|
||||
## Notes
|
||||
|
||||
- With no lines at all, the run stops at this node and says so.
|
||||
- Every run uses the same seed unless you add **number** to it. Different
|
||||
prompts still give different pictures.
|
||||
- A line such as "2 women on a beach" or "1.5x zoom" keeps its number: only
|
||||
a number followed by a period, bracket or colon counts as numbering.
|
||||
|
||||
## Technical details
|
||||
|
||||
**line** and **number** are ComfyUI lists (`OUTPUT_IS_LIST`), the same way
|
||||
Image Folder hands out pictures. ComfyUI runs each later node once for each
|
||||
item and keeps the results in order. A node that takes a whole list at once,
|
||||
such as core Rebatch Images, gets all of them together.
|
||||
|
||||
Numbering that is removed: a number in square, round or CJK brackets with an
|
||||
optional word before it (`[prompt 1]`, `(2)`), a word and a number followed by
|
||||
a colon, period, bracket or dash (`Shot 3:`), a bare number followed by a
|
||||
period, bracket or colon that has no digit right after it, and the bullets
|
||||
`-`, `*` and `•` followed by a space. Only one marker is removed from each
|
||||
line.
|
||||
@@ -11,21 +11,22 @@ generated-area `mask`, a `stitcher` for Stitch Inpaint, the selected
|
||||
|
||||
## Source and frame
|
||||
|
||||
- **Uploads**: Pick an input video (the list plays the clip under the pointer, muted, and filters as you type), click **Upload** in the compact source card, or
|
||||
- **Inputs**: Pick an input video (the list plays the clip under the pointer, muted, and filters as you type), click **Load** in the compact source card, or
|
||||
drop a video file onto the node. Picking another video keeps Fill, Feather,
|
||||
**Divisible by**, the Resize settings and the lit ratio button (the new frame is
|
||||
**Align**, the Resize settings and the lit ratio button (the new frame is
|
||||
fitted to it the way **Fit** is set); rotation, crop, padding and the playhead
|
||||
start over.
|
||||
- **Canvas row** under the Fit row: fill swatch, feather amount and the Resize off | on switch on the node face; turning Resize on opens the megapixel budget and its Step. The line under the picture names each step that sets the output size, as on the image node.
|
||||
- **Upload** streams to the input folder, so videos larger than the buffered image-upload limit can be selected here or dropped onto the node.
|
||||
- **Uploads** / **Outputs** (`source_mode`: `input folder` / `local path`): the source card's switch. Uploads lists ComfyUI's input folder. Outputs lists the videos in ComfyUI's output folder, newest first, so a video you just rendered can be picked without uploading it again. Both lists preview the video under the pointer.
|
||||
- **Load** streams to the input folder, so videos larger than the buffered image-upload limit can be selected here or dropped onto the node.
|
||||
- **Inputs** / **Outputs** (`source_mode`: `input folder` / `local path`): the source card's switch. Inputs lists ComfyUI's input folder. Outputs lists the videos in ComfyUI's output folder, newest first, so a video you just rendered can be picked without uploading it again. Both lists preview the video under the pointer.
|
||||
- **local_path**: The video picked in the Outputs list, named the way ComfyUI names a file
|
||||
in its output folder: `clip.mp4 [output]`, `video/take 3.mov [output]`. It is read in
|
||||
place, without an upload copy. A whole path such as `/home/me/ComfyUI/output/clip.mp4`
|
||||
is not read, for queued runs and the editor's live preview alike.
|
||||
- **Playhead**: The rail under the node's preview is the timeline: press or drag it to
|
||||
- **Play / Pause** beside the scrubber previews the video. Pause on the frame you want to output.
|
||||
- **Playhead**: The rail directly under the node's preview is the timeline: press or drag it to
|
||||
scrub, or type a frame in the **FRAME** box; the frame on the stage is the frame the
|
||||
node outputs (`frame_index`, with `frame_time` kept in step).
|
||||
- **Crop, pad & resize** (collapsible group under the timeline): folds the ratio buttons, **Fit to ratio**, **Align** and **Center**, **Fill** and **Feather**, and the **Resize** off | on switch, megapixel budget and **Step** into one drawer, showing the fill swatch and a live summary on its header when closed. The line under the picture names each step that sets the output size, as on the image node.
|
||||
- **seek_mode / frame_time**: Time-based seeking for graphs that drive the position by
|
||||
link; the editor itself always works in frames.
|
||||
|
||||
@@ -33,19 +34,19 @@ The editor has the same rail full width, plus first/last, ±1, ±25, ±50, ±100
|
||||
|
||||
## Transform and outputs
|
||||
|
||||
Rotation, crop, padding, feathering, fill, **Divisible by**, the megapixel resize, gestures, `image`, and `mask` match the image node. The output batch contains one frame.
|
||||
Rotation, crop, padding, feathering, fill, **Align**, the megapixel resize, gestures, `image`, and `mask` match the image node. The output batch contains one frame.
|
||||
|
||||
The handles work on both the node and the editor. Drag an orange corner to make
|
||||
the canvas bigger or smaller in its own shape (hold **Alt**, Option on a Mac, to
|
||||
change all four sides at once), and press **Center** next to Fill and Feather to
|
||||
put the frame in the middle, side to side or top to bottom. Both work as on the
|
||||
center the crop and balance any padding, side to side or top to bottom. Both work as on the
|
||||
image node. The ratio buttons, **Fit**,
|
||||
the padlock and the orientation button work as on the image node: a tap pads (or,
|
||||
with Fit on crop, crops) the frame to a ratio, a lit ratio is the shape the canvas
|
||||
has now, and the padlock keeps that shape while you drag (the row says **Held**).
|
||||
**Reset crop** restores the full crop while keeping rotation and padding. **Reset**
|
||||
clears rotation, crop and padding and turns the padlock off; fill, feather,
|
||||
**Divisible by** and the playhead stay. **Divisible by** makes the width and
|
||||
**Align** and the playhead stay. **Align** makes the width and
|
||||
height divide evenly by the number you pick: padding grows by a few pixels, and
|
||||
a side with no padding is trimmed by a few instead. Some models need sizes
|
||||
divisible by 8, 16 or 32; 1 turns it off.
|
||||
|
||||
@@ -9,66 +9,105 @@ fill-color bands around it for a **video outpaint**: the `mask` output marks the
|
||||
bands (and rotation corners), ready for Crop For Inpaint or an in-context video
|
||||
model that paints black regions.
|
||||
|
||||
## Clip window for App mode
|
||||
|
||||
In an App-mode form, this node can show a **clip window** instead of its whole
|
||||
editor: the video, playing only the part that gets used on a loop, over a strip
|
||||
of pictures from the video with a box over that part. Click the video to pause it. Drag
|
||||
the box to pick where the clip starts; drag one of its edges to make it shorter
|
||||
or longer. A line under it says what you picked, such as "8.0 s used, starting at
|
||||
0:03". To put it in a form, list the field `clip_window` of this node, next to
|
||||
its `video` field. On the graph the node looks the same as before: the clip
|
||||
window only shows inside the form.
|
||||
|
||||
**Min seconds** and **max seconds** (`min_seconds`, `max_seconds`) keep the clip
|
||||
inside a range, for example 5 to 8 seconds for a model that is only reliable
|
||||
there. The edges stop at those lengths, in the form and on the node's own
|
||||
timeline, and a run keeps to them too:
|
||||
|
||||
- a longer pick, or the whole video, is cut to the max;
|
||||
- a shorter pick grows to the min, and where the video ends first the start
|
||||
moves back instead;
|
||||
- a video shorter than the min is used whole, with no error.
|
||||
|
||||
Set them in the **Clip length limits** fold, under Crop, pad & resize. It starts
|
||||
closed; its header shows the limits (`5 – 8 s`, `from 5 s`, `up to 8 s`, or `off`).
|
||||
Open it for **Shortest** and **Longest**. 0 means no limit, and both are 0 by
|
||||
default, so older workflows run as before. Typing a Shortest above the Longest
|
||||
moves the Longest up with it, and the other way round. An exact **Fixed frames**
|
||||
count wins over them.
|
||||
|
||||
## Source and window
|
||||
|
||||
- **Uploads**: Pick an existing input video (the list plays the clip under the pointer, muted, and filters as you type), click **Upload**, or drop a video file
|
||||
- **Inputs**: Pick an existing input video (the list plays the clip under the pointer, muted, and filters as you type), click **Load**, or drop a video file
|
||||
onto the node. The old source widgets remain compatible with saved workflows, but
|
||||
are now driven by this compact card. Choosing another video keeps the canvas
|
||||
settings - Fill, Feather, **Divisible by**, Resize, Every nth, Frames for, Length - and
|
||||
settings - Fill, Feather, **Align**, Resize, Every nth, Frames for, Duration - and
|
||||
fits the new clip to the lit ratio button, the way **Fit** is set. Rotation, crop,
|
||||
padding, IN/OUT and the playhead start over.
|
||||
- **Canvas row** (under the Fit row): the fill swatch, the feather amount and
|
||||
the Resize off | on switch, right on the node; turning Resize on opens the megapixel
|
||||
budget and its **Step**. These are what a video outpaint model keys on - the LTX IC-LoRA paints
|
||||
**pure black** at sizes rounded to 32 - so a wrong value shows here before a
|
||||
render is wasted. Feather only softens the mask and the stitch; the frames always
|
||||
meet the fill with a hard edge. The line under the picture names each step that
|
||||
sets the size (`576×1024 → pad 1821×1024 → resize 1280×704`) and warns in amber
|
||||
when the Step stretches the picture by more than 1% (`2.2% wider: each side rounds
|
||||
to 32 px`); the tooltip names a Step that avoids it, and in pad mode **Even out**
|
||||
adds a few pixels of padding so nothing stretches. While you drag, that amber
|
||||
line keeps still and comes back for the new size when you let go. The bands are drawn in the real
|
||||
fill colour with a faint hatch, so black bands show on the black stage. A fresh clip node starts
|
||||
with black and feather 0 and the editor's **Reset transform** returns to them;
|
||||
the image nodes keep their grey fill and feathered mask.
|
||||
padding, the clip's timing and the playhead start over.
|
||||
- **Outputs** (`source_mode` / `local_path`): Pick a video from ComfyUI's output folder,
|
||||
such as one you just rendered. The list shows the newest first and previews the video
|
||||
under the pointer. The video is read in place, without an upload copy. In an API prompt
|
||||
it is named the way ComfyUI names a file there: `clip.mp4 [output]`. A whole path such
|
||||
as `/home/me/ComfyUI/output/clip.mp4` is not read, for queued runs and the editor's live
|
||||
preview alike.
|
||||
- **Timeline**: The rail on the node and in the editor is one timeline. Press or
|
||||
drag anywhere on it to scrub the **playhead**, with Length on or off; the stage shows
|
||||
that frame. Drag the **IN** or **OUT** handle to trim: the playhead rides on the handle, so what you see
|
||||
is the first (IN) or last (OUT) frame the run keeps, and it stays there when you let
|
||||
go. IN and OUT are frames, snapped to the source's frame grid; the boxes under the
|
||||
rail take a frame number, and `start_seconds` / `end_seconds` are derived from them
|
||||
(OUT is exclusive, 0 means the end of the source). Arrow keys on a handle move one
|
||||
second, Shift one frame. **OUT always sits on the last frame the run outputs**, so
|
||||
the handle and the bright bar end together; with Every nth or Frames for it steps to the
|
||||
frames the run keeps, and a dim tail marks frames the window holds but the run
|
||||
drops. In the editor, **Set IN** / **Set OUT** (or the **I** / **O** keys) put a
|
||||
trim point at the playhead, and **Full clip** resets the window. The editor also
|
||||
- **Play / Pause** beside the timeline plays the clip from its start and stops at its end. Pause and Play again to carry on from where you stopped.
|
||||
- **Timeline** (right under the picture): Press or drag anywhere on it to look at
|
||||
another frame; the picture shows it. Point at the bar to see where you are, the
|
||||
clip in words and the source's frame rate. Drag the **start** handle to move the
|
||||
clip (its Duration stays), and the **end** handle to change the Duration. The
|
||||
start stops where the whole Duration still fits, and a short note says so.
|
||||
**Use as start** starts the clip at the frame on the picture.
|
||||
- **Start / Duration / Ends at**: the clip in three boxes. Start and Ends at are
|
||||
places in the source video; Duration is how long the clip is. Type any of them,
|
||||
or drag over a box to scrub it. The small **s | fr** switch shows them in seconds
|
||||
or frames: Start and Ends at count source frames, Duration counts the frames the
|
||||
clip sends on, at the output rate. Point at a box for the other unit and what it
|
||||
covers. Typing a Start that leaves too little video is allowed: an amber note says
|
||||
how many frames still fit and offers to shorten the clip or move the start.
|
||||
- **Linked timing**: when another node feeds `start_frame`, `end_frame`,
|
||||
`frame_load_cap` or `fixed_frames`, that box is locked and its label shows a small
|
||||
**linked** button that jumps to the node. `fixed_frames` is an exact count;
|
||||
`frame_load_cap` is only a limit, so when the video ends first the note says how
|
||||
many frames you get. A count only worked out when the graph runs (a Math
|
||||
Expression, say) shows as **at run time**, and the timeline shows striped room
|
||||
after the start instead of a clip. A rate typed inside a subgraph counts as known.
|
||||
- **Technical details**: `start_seconds` / `end_seconds` are derived from the frames
|
||||
(the end is exclusive, 0 means the end of the source), and the Duration is stored
|
||||
as `max_frames`. Arrow keys on a handle move one second, Shift one frame. With
|
||||
Every nth or Frames for the end steps to the frames the run keeps, and a dim tail
|
||||
marks frames the window holds but the run drops.
|
||||
In the editor, **Set IN** / **Set OUT** (or the **I** / **O** keys) put a
|
||||
trim point at the playhead, and **Whole video** resets the clip. The editor also
|
||||
has buttons for the first and last frame, steps of 1, 25, 50 and 100 frames, and
|
||||
**Play**. Arrow keys step one frame (10 with Shift), Home and End jump to the
|
||||
ends, and Space plays or pauses. **Save & close** keeps your edits; **Cancel** or
|
||||
Escape puts everything back, and asks first if anything changed.
|
||||
- **Length** (`max_frames`): the one other way to set how long the clip is. **Off**
|
||||
(the default): OUT ends the clip. **On**: a number of output frames from IN; OUT
|
||||
sits that many frames after IN and follows it when you drag IN, and dragging OUT or
|
||||
typing the number changes the Length. To move the whole clip, drag IN or the small
|
||||
grip in the middle of the kept part (the grip also slides a trimmed window with
|
||||
Length off). When the Length is the whole clip there is nowhere to move it, and the
|
||||
row says so: "= the whole clip. Shorten it to move IN." The Length stays when you
|
||||
swap the video, so a workflow built for 97 frames keeps taking 97. Turning it on or
|
||||
off never moves anything: the count becomes the OUT, or the OUT the count. If the
|
||||
source ends first, the footer says how many frames are left. **To start** moves IN
|
||||
to the start of the source.
|
||||
- **Crop, pad & resize** (collapsible group under the timeline): folds the ratio
|
||||
buttons, **Fit to ratio**, **Align** and **Center**, **Fill** and **Feather**, and
|
||||
the **Resize** switch, megapixel budget and **Step** into one drawer. While closed,
|
||||
its header bar shows the fill colour swatch and a live summary of the active
|
||||
ratio, feather, alignment and resize settings. These are what a video outpaint model keys on - the LTX IC-LoRA paints
|
||||
**pure black** at sizes rounded to 32 - so a wrong value shows here before a
|
||||
render is wasted. Feather only softens the mask and the stitch; the frames always
|
||||
meet the fill with a hard edge. The line under the picture names each step that
|
||||
sets the size (`576×1024 → pad 1821×1024 → resize 1280×704`) and warns in amber
|
||||
when the Step stretches the picture by more than 1% (`Resize makes the picture 2.2% wider`); the tooltip names a Step that avoids it, and in pad mode **Pad to keep shape**
|
||||
adds a few pixels of padding so nothing stretches. While you drag, that amber
|
||||
line keeps still and comes back for the new size when you let go. The bands are drawn in the real
|
||||
fill colour with a faint hatch, so black bands show on the black stage. A fresh clip node starts
|
||||
with black and feather 0 and the editor's **Reset transform** returns to them;
|
||||
the image nodes keep their grey fill and feathered mask.
|
||||
- **Whole video / To start** (bottom right of the timing card): **Whole video**
|
||||
uses the whole source, with no Duration limit. When the length is linked, the
|
||||
button reads **To start** and moves the start to the beginning instead. The
|
||||
Duration stays when you swap the video, so a workflow built for 97 frames keeps
|
||||
taking 97.
|
||||
- **Every nth** (`every_nth`): Thin the batch. The `fps` output divides to match
|
||||
every_nth, so the clip keeps real-time downstream; a Length counts the frames kept.
|
||||
every_nth, so the clip keeps real-time downstream; a Duration counts the frames kept.
|
||||
- **Frames for** (`frame_snap`): Keep a frame count a video model takes:
|
||||
**LTX (8n+1)** (49, 97, 121) or **Wan (4n+1)**. **any** keeps every frame in the window.
|
||||
OUT drags and the Length step through those counts.
|
||||
Dragging the end and typing a Duration step through those counts.
|
||||
With it on, `frame_count`, `duration`, the audio window and the stitcher all match the
|
||||
clip the sampler hands back, so wiring `frame_count` into the empty latent's length
|
||||
never leaves the stitch with more source frames than generated ones.
|
||||
@@ -80,8 +119,8 @@ Crop squares, padding diamonds, the orange corners and the rotation handle also
|
||||
work directly on the node preview. A corner makes the canvas bigger or smaller in
|
||||
its own shape, for example to zoom out evenly before a video outpaint; hold **Alt**
|
||||
(Option on a Mac) to change all four sides at once. **Center**, next to Fill and
|
||||
Feather, puts the clip in the middle of the canvas side to side or top to bottom
|
||||
without changing the canvas size. The graph still owns wheel zoom and middle-button
|
||||
Feather, centers the crop on the source and balances any padding on the selected axis.
|
||||
The generated mask follows the crop and padding. The graph still owns wheel zoom and middle-button
|
||||
pan. Tap a ratio
|
||||
to pad the clip to it (or crop it, with **Fit** on crop); tap the lit ratio again to
|
||||
go back to the whole frame. A lit ratio is the shape the canvas has now: drag a
|
||||
@@ -92,31 +131,31 @@ ratio or turn it"); otherwise it names the lit ratio where it acted (`pad to 16:
|
||||
1821×1024`). The padlock keeps the shape while
|
||||
you drag, with new bands split evenly, and the row says **Held**; Reset and tapping
|
||||
the lit ratio turn it off, and it does nothing on the untouched clip. **Fit** is
|
||||
dimmed until a ratio is lit. The orientation button turns the shape on its side
|
||||
ready to set before picking a ratio. The orientation button turns the shape on its side
|
||||
(16:9 to 9:16), and dragging the picture itself moves it inside its padding: the
|
||||
cursor and small arrows show which ways it can go.
|
||||
**Reset crop** restores the full crop without changing rotation, padding or trim;
|
||||
with the padlock on it also takes away the bands the lock added.
|
||||
**Reset** on the node clears rotation, crop and padding and turns the padlock off;
|
||||
fill, feather, **Divisible by** and the timeline stay.
|
||||
fill, feather, **Align** and the timeline stay.
|
||||
**Reset transform** in the editor resets rotation, crop, padding, fill, feather and
|
||||
**Divisible by**; it keeps the source, current frame, trim, Length, resize and stitch
|
||||
settings. **Divisible by** makes the width and height divide evenly by the number
|
||||
**Align**; it keeps the source, current frame, trim, Duration, resize and stitch
|
||||
settings. **Align** makes the width and height divide evenly by the number
|
||||
you pick: padding grows by a few pixels, and a side with no padding is trimmed by
|
||||
a few instead. Some models need sizes divisible by 8, 16 or 32; 1 turns it off.
|
||||
|
||||
Video Upload and file drop use a streaming route into ComfyUI's input folder,
|
||||
The **Load** button and file drop use a streaming route into ComfyUI's input folder,
|
||||
so the buffered image-upload size limit does not prevent long-video uploads.
|
||||
|
||||
The editor's sidebar uses the node's own ratio row, padlock and **Fit** switch, and
|
||||
the rotation is a number box (Shift for 0.1°). A ratio replaces the old crop and
|
||||
padding, keeping rotation and resize settings.
|
||||
Pixel rounding can differ by one pixel between opposite bands. **Divisible by** and
|
||||
Pixel rounding can differ by one pixel between opposite bands. **Align** and
|
||||
the resize **Step** can slightly change the final aspect ratio.
|
||||
|
||||
## Transform and outputs
|
||||
|
||||
Rotation, crop, padding, feathering, fill, **Divisible by**, and the editor's handles
|
||||
Rotation, crop, padding, feathering, fill, **Align**, and the editor's handles
|
||||
match the image node. **Resize output** in the editor scales the finished frames to a
|
||||
megapixel budget with a resolution step (32 keeps LTX and Wan sizes), the same trio as
|
||||
the core Scale Image to Total Pixels node. The frames are resized by themselves and the
|
||||
@@ -153,15 +192,17 @@ The node performs no remote network requests and does not rewrite the source vid
|
||||
|
||||
## Connected timing inputs
|
||||
|
||||
Five optional sockets sit on the left, above the editor:
|
||||
Optional timing inputs:
|
||||
|
||||
| Input | Meaning |
|
||||
| --- | --- |
|
||||
| `force_rate` | Sample at this fps before Every nth. 0 keeps the source rate. Drops or repeats frames to keep playback speed. Accepts FLOAT or INT. |
|
||||
| `start_frame` | Zero-based source start frame. Overrides timeline IN. |
|
||||
| `end_frame` | Exclusive source end frame. 0 means the end of the source. Overrides timeline OUT. |
|
||||
| `fixed_frames` | Exact output frames from IN; the source must be long enough. Connected, it sets the length: OUT, Length and Frames for step aside. |
|
||||
| `frame_load_cap` | Maximum frames after rate conversion and Every nth, before Frames for. 0 means unlimited. Connected, it sets the length in place of Length. |
|
||||
| `fixed_frames` | Exact output frames from IN; the source must be long enough. Connected, it sets the length: Duration, Ends at and Frames for step aside. |
|
||||
| `frame_load_cap` | Maximum frames after rate conversion and Every nth, before Frames for. 0 means unlimited. Connected, it sets the length in place of Duration. When the count is known, dragging the start stops at the last start that fits the kept frames. |
|
||||
| `last_seconds` | Load only this many seconds from the end of the clip, or of the part before OUT. 0 loads all of it. Use it to carry on from a clip: a long clip then costs no more memory than a short one. |
|
||||
| `min_seconds` / `max_seconds` | The shortest and longest the clip may be, in seconds; 0 is no limit. Applied after the window is worked out, so the start, Duration and the other inputs set the clip and these keep its length in range (see Clip window for App mode). |
|
||||
|
||||
Frame bounds use the source's frame-rate grid, independent of `force_rate`.
|
||||
The footer labels **Source fps** separately from **Output fps**. A direct
|
||||
@@ -174,17 +215,17 @@ For example, start 24 and end 72 select two seconds from a 24 fps source.
|
||||
A 12 fps forced rate returns 24 frames; a cap of 10 then keeps only the first
|
||||
10 of those. Audio and duration follow the returned batch.
|
||||
|
||||
A connected start or end locks that handle and its IN/OUT field on both
|
||||
A connected start or end locks that handle and its box on both
|
||||
the node and fullscreen editor. Hover to see why. Disconnect to restore
|
||||
local control. While timing inputs are connected, the preview shows the local
|
||||
trim as a reference and avoids claiming an output count before the linked
|
||||
values are evaluated at run time.
|
||||
|
||||
**A connected length input takes over the length.** Connect a count to
|
||||
`fixed_frames` (exact) or `frame_load_cap` (at most) and the OUT handle goes
|
||||
away, OUT and Length grey out, and only IN is left to set: the clip starts at
|
||||
IN and the input decides where it ends. Literal Integer/Float nodes (including
|
||||
`fixed_frames` (exact) or `frame_load_cap` (at most) and the end handle goes
|
||||
away, Duration and Ends at lock, and only Start is left to set: the clip starts
|
||||
there and the input decides where it ends. Literal Integer/Float nodes (including
|
||||
AusBoss cards and reroutes) show the resulting frames on the rail before
|
||||
running; calculated counts show "at run time". An older workflow that saved a
|
||||
Fixed frames number without a connection reads as a Length; the first change
|
||||
Fixed frames number without a connection reads as a Duration; the first change
|
||||
here turns it into one.
|
||||
|
||||
@@ -18,14 +18,37 @@ Nothing runs: the node has no outputs, so ComfyUI never executes it.
|
||||
- **Title / Subtitle / Author** make the banner. **Layout → Banner** shows
|
||||
only that top block (the title, plus the subtitle and author if you filled
|
||||
them in), so the same node doubles as a label for a stage or column.
|
||||
- **Layout → Info tile** puts a single button on the canvas. Click the tile to read the full note, including models and links. A book marks a guide and a download arrow marks a model list. Click its pencil to edit, or press **Edit** inside the opened note. Drag the visible bottom-right grip to resize the tile without moving it. Focus the grip and use arrow keys for keyboard resizing; **Shift** makes smaller changes.
|
||||
- **Accent color** tints the banner bar, dots and buttons; empty keeps the
|
||||
pack teal. It takes a six-digit hex such as `#00b4aa`.
|
||||
- **How-to** is Markdown-lite: `#`/`##`/`###` headings, `**bold**`,
|
||||
`*italic*`, `` `code` ``, `[links](https://…)`, `-` and `1.` lists, `---`
|
||||
rules, fenced code. Only `http(s)` links become clickable.
|
||||
|
||||
## Formatting a how-to
|
||||
|
||||
Select a phrase in the How-to field and click **Teal**, **Green**, **Amber** or **Glow**. Click **Table** to insert an editable Markdown table. Open **Preview formatting** while you write. Use headings to break up steps and a pipe table for settings or file locations. Keep each row the same length. Use `\|` for a literal pipe inside a cell.
|
||||
|
||||
```markdown
|
||||
## Choose a size
|
||||
|
||||
| Size | When to use it |
|
||||
| --- | --- |
|
||||
| 480 × 864 | [teal]First run[/teal] |
|
||||
| 576 × 1024 | A larger portrait |
|
||||
|
||||
[green]Ready[/green] means the model was found.
|
||||
[amber]Missing[/amber] means you still need the file.
|
||||
```
|
||||
|
||||
For a short highlight, write `[glow]Preview the result[/glow]`. The glow is static. These four tags are AusBoss additions to Markdown. They style the enclosed plain text. Headings, lists, table cells and paragraphs can all contain them. Fenced code displays the original characters.
|
||||
|
||||
## Models
|
||||
|
||||
To give downloads their own button, choose **Layout → Info tile**, set the title to **Download models**, and add files under **Models**. To keep them with your instructions, add those same rows to the **How to use** note. Switching an existing card to an info tile keeps its model rows and links.
|
||||
|
||||
[Download the Krea 2 model tile example](https://raw.githubusercontent.com/ausboss/ComfyUI-AusBoss/main/js/docs/examples/model-download-tile.json) and open it as a workflow. Copy the tile into your graph and edit its rows.
|
||||
|
||||
Each row is a file, the model folder it belongs in, an optional size, a
|
||||
download URL, and an optional note that shows in grey under the file name.
|
||||
Rows group under a `📂 ComfyUI/models/<folder>` heading so the
|
||||
@@ -37,12 +60,20 @@ answered on the same line as the button.
|
||||
- A found file swaps its Download button for an **✓ installed** pill; hovering
|
||||
the pill shows where it was found. A file that lives in a subfolder still
|
||||
counts. When a loader in the workflow still asks for the bare file name,
|
||||
which ComfyUI cannot find there (it marks that loader red), the row says
|
||||
where the file is instead (**in LTXV 2.3/**) and **Use it** points those
|
||||
loaders at the copy it found. The check only asks the ComfyUI server for its
|
||||
own model lists.
|
||||
which ComfyUI cannot find there (it marks that loader red), the note points
|
||||
that loader at your copy by itself and says so in a short message. If you
|
||||
have two copies in different subfolders, the row says where one is
|
||||
(**in LTXV 2.3/**) and **Use it** picks it. To always choose yourself, turn
|
||||
off Settings, 🆎 AusBoss, Models, **Pick found files**. The check only asks
|
||||
the ComfyUI server for its own model lists.
|
||||
- **↻ check files** re-runs the check after you move files in. ComfyUI's own
|
||||
**R** refresh triggers it as well.
|
||||
- Launchers such as Stability Matrix keep models in shared folders of their
|
||||
own, for example `Data/Models/Lora`. Files there count, and the card names
|
||||
such a folder under the usual heading ("also read from ..."), so you can
|
||||
see where your files are found and put new ones there. The old folder
|
||||
names `clip` and `unet` are checked as `text_encoders` and
|
||||
`diffusion_models`, the names ComfyUI uses for them.
|
||||
- Folder `input` is for a sample image or clip shipped with the workflow: it
|
||||
is looked for in `ComfyUI/input`.
|
||||
- Clicking a file name copies it — handy for searching a loader's picker.
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Workflow Note Tile
|
||||
|
||||
A compact help button that opens a full note. Click to read the instructions and model links; click the pencil to edit. Drag its visible corner to resize.
|
||||
|
||||
It uses the same note content as [Workflow Note](AUSBOSS_NODES_WorkflowNote.md). Choose **Card** or **Banner** in the editor to show the note directly on the canvas. Nothing runs and it has no outputs.
|
||||
|
||||
Tiles save with their own node type. If ComfyUI reports this node missing, install or update **ComfyUI-AusBoss**, restart ComfyUI, and reload the workflow. An older pack cannot draw the tile correctly. Keep the missing node so its instructions and settings are preserved.
|
||||
@@ -14,13 +14,43 @@ an upscale at the end.
|
||||
2. Press **+ Switch from 2 selected** on the card.
|
||||
3. Type a name and press Enter.
|
||||
|
||||
One click on its pill now turns every node you picked off, and the next click
|
||||
turns them on again.
|
||||
Click **off** to skip every node you picked, or **on** to run them again.
|
||||
Clicking the selected half leaves it selected.
|
||||
|
||||
Groups work too. Every group on the canvas gets a switch of its own, unless
|
||||
you change that under **Settings**. A group can also be part of a switch you
|
||||
make: select it together with the nodes.
|
||||
|
||||
## Pick between saved settings
|
||||
|
||||
Use this when the same node should be set one of a few ways and you want to
|
||||
pick by name: 8 steps or 20 steps, or which branch to run.
|
||||
|
||||
1. Set the node the way the first choice should be, and select it.
|
||||
2. Press **+ Choice**, type a name and press Enter.
|
||||
3. Set the node the second way and press **+ Choice** again. You don't need
|
||||
to select it this time.
|
||||
|
||||
The card is now one pill with your choices. Click one and the node goes back
|
||||
to how you saved it. Only the settings that differ between your choices are
|
||||
changed, so the rest stay yours. Add a third the same way.
|
||||
|
||||
To run one of two branches, wire both into ComfyUI's **If/Else Switch**, where
|
||||
they meet, and make one choice with its switch at true and one at false. Only
|
||||
the branch you pick runs. Both branches must end in the same type.
|
||||
|
||||
A missing model or picture stops the run even in the branch you didn't pick,
|
||||
because ComfyUI checks every node that is on. To avoid that, select the nodes
|
||||
only one choice needs, open that choice's three dots and pick **The selected
|
||||
run only with this choice**. They switch off while another choice is picked.
|
||||
Do this for each branch, and leave out any node both branches use.
|
||||
|
||||
A card holds either choices or switches, so **+ Choice** shows on a card with
|
||||
no switches yet, once a node is selected. To have both, use two cards.
|
||||
|
||||
To change a choice later, set the node, open the choice's three dots and pick
|
||||
**Save how it is set now**.
|
||||
|
||||
## A switch that changes settings
|
||||
|
||||
A switch can also change values instead of turning nodes off. One click can
|
||||
@@ -45,8 +75,13 @@ does not change keep whatever you give them. The same works for the LoRA
|
||||
rows on a subgraph box (LoRA Loader's gear, **Rows on the box**): select the
|
||||
box itself and save its on and off.
|
||||
|
||||
A LoRA row a switch sets shows a lock in the LoRA Loader. Click the lock to
|
||||
take that row over: this switch then leaves the row alone.
|
||||
A LoRA Loader group works the same way. Save the switch once with the group
|
||||
on and once with it off, and the switch turns the whole group on and off.
|
||||
Each LoRA in the group keeps its own on/off, so you can still leave one out
|
||||
by hand, and a LoRA added to the group later goes with it.
|
||||
|
||||
A LoRA row or group a switch sets shows a lock in the LoRA Loader. Click the
|
||||
lock to take it over: this switch then leaves it alone.
|
||||
|
||||
## A switch with two sides
|
||||
|
||||
@@ -125,8 +160,9 @@ the models only that part needs.
|
||||
|
||||
## The edit view
|
||||
|
||||
- **off | on**: click anywhere on the pill to flip the switch. Off turns off
|
||||
every node of the row, on sets them all to run. It is one undo step.
|
||||
- **off | on**: click **off** to turn off every node of the row, or **on** to
|
||||
set them all to run. Clicking the selected half leaves it selected. A change
|
||||
is one undo step.
|
||||
- **Mixed**: when only some of a row's nodes run (one bypassed by hand, say)
|
||||
the pill is striped and a count shows how many run, such as **1/2**. Click
|
||||
the half you want, off or on, to set them all. A settings switch reads **changed** when one of
|
||||
@@ -161,11 +197,19 @@ Open **Settings** at the bottom of the edit view.
|
||||
from the left and top to bottom inside a column. **title** sorts by title,
|
||||
with numbers in numeric order (*2 · …* before *10 · …*).
|
||||
- **One at a time**: switching a row on switches the other rows off. Use it
|
||||
for alternatives, such as two upscalers.
|
||||
for alternatives, such as two upscalers. Turn it on while several rows are
|
||||
on and the top one stays on. A new switch starts off while another row is
|
||||
on.
|
||||
- **Show as** (there while One at a time is on): **rows** gives every switch
|
||||
a row with its own off | on. **one pill** shows them as one pill to pick
|
||||
from, see above.
|
||||
|
||||
## Have an AI agent set it up
|
||||
|
||||
An AI agent can add switches for you by writing them into the workflow file.
|
||||
Point it at `js/docs/agents/workflow_switches.md` in the pack's folder. That
|
||||
page tells it what to write.
|
||||
|
||||
## Technical details
|
||||
|
||||
- **What bypass passes on.** A bypassed node, or box, hands on its first
|
||||
@@ -174,8 +218,14 @@ Open **Settings** at the bottom of the edit view.
|
||||
no input of that kind (a decode: latent in, picture out) passes nothing,
|
||||
so the nodes that read it belong in the same switch.
|
||||
- **A switch finds its nodes by id.** A deleted node drops out of its
|
||||
switch. A copy of a node is not in the switch, and a pasted copy of the
|
||||
card switches the same nodes as the original.
|
||||
switch. A copy of a node is not in the switch. A card copied together with
|
||||
its nodes and groups switches the copies, so a whole workflow pasted into
|
||||
a new tab keeps working switches. A card copied on its own switches the
|
||||
same nodes as the original.
|
||||
- **"empty" next to a switch** means none of its nodes are in this workflow,
|
||||
so there is nothing to turn on. A workflow pasted and saved on a version
|
||||
before 2.20.3 stays this way. Open the original file again, or add nodes
|
||||
from the switch's menu in the edit view.
|
||||
- **A node in two switches** is changed by either. The other row then reads
|
||||
mixed. A node that two parts share needs no switch: ComfyUI only runs what
|
||||
a result needs.
|
||||
@@ -212,6 +262,22 @@ Open **Settings** at the bottom of the edit view.
|
||||
- **One at a time** switches the other rows off, which runs their off sides.
|
||||
A node that one row runs and another switches off ends up running, and the
|
||||
row you switch on has the last word.
|
||||
- **What a choice stores.** One saved value set, with no off side. A choice
|
||||
changes the settings it holds differently from another choice on its card,
|
||||
so a third value on one control needs nothing extra. Picking one writes only
|
||||
its own values, and a node it does not hold stays as it was. A choice can
|
||||
also hold nodes, the way a switch does: they run while it is picked and are
|
||||
off otherwise. The node a choice sets can't be one of them, because switching
|
||||
it off would undo the choice. A value set by
|
||||
hand that matches no choice leaves none picked. A card with choices keeps
|
||||
One at a time on, shows one pill and lists no groups, so its Settings are
|
||||
hidden.
|
||||
- **When a card settles by itself.** Turning One at a time on, or making a
|
||||
switch while it is on, leaves one row on when more than one is. A row that
|
||||
is fully on goes before one that is partly on, then the top row. A new
|
||||
switch gives way to the rows that were there. Rows that a change to
|
||||
**Groups** or **Match** adds are left as they are, because the words typed
|
||||
into Match should not stop nodes. A click on a row settles those.
|
||||
- **A pill or a list.** Two to four rows are a pill when their names fit on
|
||||
a card no wider than 400 px. More rows, or longer names, are a list. With
|
||||
one row the card stays in the row view. Groups listed on the card are
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
# AusBoss nodes: a guide for AI agents
|
||||
|
||||
Give this page to an AI agent and it can pick the right AusBoss node for a job,
|
||||
wire it into a workflow, and find the help for every input. It ships with the
|
||||
pack, so it is also in your ComfyUI install, under
|
||||
`custom_nodes/<this pack>/js/docs/agents/`.
|
||||
|
||||
**If you are the agent:** find the job in the table below, then read that
|
||||
node's help page before you wire it. Each help page is
|
||||
`js/docs/<node id>.md` in this pack. ComfyUI shows the same page in its node
|
||||
help panel.
|
||||
|
||||
## Which node for which job
|
||||
|
||||
| The job | Node (id) |
|
||||
|---|---|
|
||||
| Pick a picture size by shape and megapixels, in place of Empty Latent | Latent Size (`AUSBOSS_NODES_Resolution`) |
|
||||
| Resize a picture, or snap its size to a multiple | Image Resize (`AUSBOSS_NODES_ImageResize`), Align Image (`AUSBOSS_NODES_AlignImage`) |
|
||||
| Read a picture's width and height | Image Size (`AUSBOSS_NODES_ImageSize`) |
|
||||
| Load a picture and set its size or crop it (megapixels, longest side, a box, a ratio) in one node | Load Image (`AUSBOSS_NODES_LoadImage`) |
|
||||
| Outpaint: load a picture and add empty space around it | Load Image + Pad (`AUSBOSS_NODES_LoadImagePad`) |
|
||||
| Turn, crop and pad a picture in one node | Image Crop + Rotate + Pad (`AUSBOSS_NODES_ImageCropRotatePad`) |
|
||||
| Inpaint only the masked part, then put it back | Crop For Inpaint (`AUSBOSS_NODES_CropForInpaint`) then Stitch Inpaint (`AUSBOSS_NODES_StitchInpaint`) |
|
||||
| Remove a watermark or an object with no prompt | LaMa Inpaint (`AUSBOSS_NODES_LaMaInpaint`) |
|
||||
| Get a mask by typing what to find | Mask by Name (`AUSBOSS_NODES_MaskByName`) |
|
||||
| Get a mask by clicking the thing | Mask by Touch (`AUSBOSS_NODES_MaskByTouch`) |
|
||||
| Grow, shrink, fill or smooth a mask | Mask Refine (`AUSBOSS_NODES_RefineMask`) |
|
||||
| Keep the untouched parts of a picture exactly as they were while an edit model edits it | Edit Lock (`AUSBOSS_NODES_EditLock`) then Edit Lock Restore (`AUSBOSS_NODES_EditLockRestore`) |
|
||||
| Line an edited picture back up with the original | Realign to Source (`AUSBOSS_NODES_RealignToSource`, experimental) |
|
||||
| Match one picture's colors to another | Color Match (`AUSBOSS_NODES_ColorMatch`) |
|
||||
| Add film grain to a picture or a video, or copy another picture's grain | Film Grain (`AUSBOSS_NODES_FilmGrain`) |
|
||||
| Turn a picture and a mask into a transparent cut-out with clean edges | Cut Out (`AUSBOSS_NODES_CutOut`) |
|
||||
| Put the original's fine detail back on a smoothed edit | Keep Detail (`AUSBOSS_NODES_KeepDetail`) |
|
||||
| Upscale big pictures in tiles | Tiled Upscale (`AUSBOSS_NODES_TiledUpscale`) then Tiled Upscale Stitch (`AUSBOSS_NODES_TiledUpscaleStitch`) |
|
||||
| Compare two pictures | Image Compare A/B (`AUSBOSS_NODES_Compare`) |
|
||||
| Save pictures (PNG, lossless WebP or JPEG XL) | Save Image (`AUSBOSS_NODES_SaveImage`) |
|
||||
| Run a workflow on each picture in a folder | Image Folder (`AUSBOSS_NODES_ImageFolder`) |
|
||||
| Apply a stack of LoRAs | LoRA Loader (`AUSBOSS_NODES_LoraLoader`) |
|
||||
| Change a LoRA row's or a Krea 2 reference's strength over the steps of a run | Strength Curve (`AUSBOSS_NODES_StrengthCurve`) into LoRA Loader's `curve` or Krea 2 Encode's `reference_curve` |
|
||||
| Write a MiniMax H3 or Pika H3 Flex prompt from plain words | H3 Prompt Writer (`AUSBOSS_NODES_H3PromptWriter`): [node help](../AUSBOSS_NODES_H3PromptWriter.md) |
|
||||
| Krea 2 prompt, and Krea 2 outpainting | Krea 2 Encode (`AUSBOSS_NODES_Krea2Encode`), Krea 2 Outpaint Model Patch (`AUSBOSS_NODES_Krea2OutpaintModelPatch`) |
|
||||
| Load or save a video | Load Video (`AUSBOSS_NODES_LoadVideo`), Save Video (`AUSBOSS_NODES_SaveVideo`) |
|
||||
| Load a sound file and keep only part of it, up to a set length | Load Audio (`AUSBOSS_NODES_LoadAudio`) |
|
||||
| Turn, crop and pad a video: one frame, or the whole clip | Video Crop + Rotate + Pad → Frame (`AUSBOSS_NODES_VideoCropRotatePad`), → Clip (`AUSBOSS_NODES_VideoCropRotatePadClip`) |
|
||||
| Change a clip's frame rate | Frame Interpolate (`AUSBOSS_NODES_FrameInterpolate`) |
|
||||
| Make a clip larger and sharper | FlashVSR Upscale (`AUSBOSS_NODES_FlashVSRUpscale`) |
|
||||
| Work with frame batches | Select Frame, Select Every Nth, Split Batch, Merge Batches (`AUSBOSS_NODES_SelectFrame`, `_SelectEveryNth`, `_SplitBatch`, `_MergeBatches`) |
|
||||
| Run a workflow once for each line of text, such as a list of prompts | Text Lines (`AUSBOSS_NODES_TextLines`) |
|
||||
| One shared seed, number or text | Seed, Integer, Float, Text (`AUSBOSS_NODES_Seed`, `_Integer`, `_Float`, `_Text`) |
|
||||
| A prompt that picks from `{a\|b\|c}` choices on each run, by seed | Prompt Variations (`AUSBOSS_NODES_PromptVariations`) |
|
||||
| Do maths on numbers | Math Expression (`AUSBOSS_NODES_MathExpression`) |
|
||||
| Show text on the node, or the picture while it is made | Show Text (`AUSBOSS_NODES_ShowText`), Step Preview (`AUSBOSS_NODES_StepPreview`) |
|
||||
| Stop a run after the 3D viewer to frame the shot on the new model, with a 360 behind it | Pause for Shot (`AUSBOSS_NODES_PauseShot`): [node help](../AUSBOSS_NODES_PauseShot.md) |
|
||||
| Line a 3D model (Pixal3D) up with the photo: the photo's camera for the viewer, the crop's lens, the photo's place on a 360 | Photo Camera (`AUSBOSS_NODES_PhotoCamera`): [node help](../AUSBOSS_NODES_PhotoCamera.md) |
|
||||
| Free graphics memory between steps | Free Memory (`AUSBOSS_NODES_FreeMemory`) |
|
||||
| Time the whole run | Run Timer (`AUSBOSS_NODES_RunTimer`) |
|
||||
| Turn parts of a workflow off and on | Workflow Switches (`AUSBOSS_NODES_WorkflowSwitches`): [its own agent guide](workflow_switches.md) |
|
||||
| Explain a shared workflow on the canvas | Workflow Note (`AUSBOSS_NODES_WorkflowNote`), Callout (`AUSBOSS_NODES_Callout`) |
|
||||
| Add compact help or colored link buttons | Workflow Note Tile (`AUSBOSS_NODES_WorkflowNoteTile`), Callout Tile (`AUSBOSS_NODES_CalloutTile`) |
|
||||
| Lay out boxes of things and words on a canvas | Layout Boxes (`AUSBOSS_NODES_LayoutBoxes`) |
|
||||
|
||||
Every node's display name ends in 🆎 and sits under `🆎 AusBoss/<group>` in
|
||||
the node menu. In a workflow file and in the API, a node is named by its id,
|
||||
the `AUSBOSS_NODES_...` key above.
|
||||
|
||||
## Before you edit a workflow
|
||||
|
||||
- **Read settings by name.** A saved workflow keeps each node's settings
|
||||
twice: by position in `widgets_values`, and by name in
|
||||
`widgets_values_named`. Read and write by name, and keep both copies in
|
||||
step.
|
||||
- **Look at a node's inputs and outputs** in the running ComfyUI:
|
||||
`GET /object_info/<node id>` lists them with their types and defaults.
|
||||
- **Inputs never get renamed or reordered** after a release, so a workflow
|
||||
that worked keeps working.
|
||||
- **Media loaders start blank** in the example workflows. Put in the file the
|
||||
person wants to use before you queue.
|
||||
|
||||
## H3 swaps and clip duration
|
||||
|
||||
For a swap, keep the target selector on its own line. An optional separate line,
|
||||
`@1 looks like a woman with blonde hair and a black hoodie.`, describes the
|
||||
connected replacement person in Picture 1; use its actual picture number. This
|
||||
can help express appearance but does not guarantee identity. Do not add it to
|
||||
other jobs. Existing scripts without it keep their previous behavior.
|
||||
|
||||
An active video sets the duration for **swap the person**, **change something**
|
||||
and **new voice**. The card says **From the clip** and hides numeric timeline
|
||||
retiming; trim or limit the upstream clip instead. Do not infer the final frame
|
||||
count from raw source metadata: upstream processing and H3 frame rounding apply.
|
||||
Other jobs and video OFF still use **Length** normally.
|
||||
|
||||
## Example workflows
|
||||
|
||||
`example_workflows/` in this pack holds complete workflows, each with a
|
||||
picture of what it makes. Each one starts with a Workflow Note that lists the
|
||||
model files it needs and where they go. Start from the closest one rather
|
||||
than building from nothing.
|
||||
|
||||
## When something goes wrong
|
||||
|
||||
- Read the node's help page again, including its "Technical details" or "Notes" part when it has one.
|
||||
- Search the pack's GitHub issues: https://github.com/ausboss/ComfyUI-AusBoss/issues
|
||||
- A new bug report should name the ComfyUI version, the pack version from
|
||||
the console banner, the node, and the smallest workflow that shows it.
|
||||
@@ -0,0 +1,191 @@
|
||||
# Workflow Switches: a guide for AI agents
|
||||
|
||||
Give this page to an AI agent and it can add switches to a ComfyUI workflow
|
||||
for you. Nobody has to click through menus: the agent writes the card straight
|
||||
into the workflow file.
|
||||
|
||||
**If you are the agent:** the card is one node in the workflow file. It has no
|
||||
wires. It lists which nodes each switch controls, in one property. Pick the
|
||||
recipe below that fits, add the card, and set the nodes' starting state.
|
||||
|
||||
## Before you start
|
||||
|
||||
- **Edit the file ComfyUI saves with Save**, the one with a `nodes` list. The
|
||||
card never reaches a run, so it has no place in the API format. For an API
|
||||
prompt, leave out what should not run.
|
||||
- **Use the `id` of each node** in `nodes`, and of each box in `groups`.
|
||||
- **Stay on one level.** The card controls nodes on its own level of the
|
||||
graph. From the main graph it can switch a whole subgraph node, or change a
|
||||
control that subgraph node shows, but not reach a node inside it.
|
||||
- **Read a control's name** from the node's `widgets_values_named` in the file,
|
||||
or from `/object_info/<node type>` on the ComfyUI server.
|
||||
|
||||
## Add the card
|
||||
|
||||
Add this to `nodes`. Give it an `id` no other node has, and raise
|
||||
`last_node_id` if it is lower than that `id`. Pick a free `pos` so it covers
|
||||
nothing, and the next free number for `order`.
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 50,
|
||||
"type": "AUSBOSS_NODES_WorkflowSwitches",
|
||||
"pos": [0, 0],
|
||||
"size": [320, 100],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Workflow Switches",
|
||||
"properties": {
|
||||
"cnr_id": "ausboss-nodes",
|
||||
"ausboss_show_edit": false,
|
||||
"ausboss_workflow_switches": {
|
||||
"off": "bypass",
|
||||
"groups": "none",
|
||||
"exclusive": false,
|
||||
"show": "rows",
|
||||
"switches": []
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
}
|
||||
```
|
||||
|
||||
Then fill `switches` from a recipe. Keep `"groups": "none"`: the default,
|
||||
`"all"`, gives every group on the canvas a row of its own.
|
||||
|
||||
`show` is `"rows"`, one off | on row per switch, or `"pill"`, one pill to pick
|
||||
from. A row's `id` is a whole number from 1, new on its card only. A workflow
|
||||
can have several cards.
|
||||
|
||||
## Set the starting state
|
||||
|
||||
The card remembers nothing about what is on. It reads each node's own `mode`,
|
||||
so the file decides how the workflow opens.
|
||||
|
||||
| `mode` | What the node does |
|
||||
| --- | --- |
|
||||
| `0` | Runs |
|
||||
| `4` | Bypassed: passes its input on, and ComfyUI doesn't check it |
|
||||
| `2` | Muted: passes nothing on, and ComfyUI doesn't check it |
|
||||
|
||||
For a part that opens switched off, set `"mode": 4` on its nodes, Save Image
|
||||
nodes included. With `"off": "mute"` on the card, use `2`.
|
||||
|
||||
To change a value in the file, change it in both `widgets_values` and
|
||||
`widgets_values_named`. The two have to agree.
|
||||
|
||||
## Recipes
|
||||
|
||||
### An optional part
|
||||
|
||||
One row that turns some nodes off and on: an upscale at the end, say.
|
||||
|
||||
```json
|
||||
"switches": [
|
||||
{ "id": 1, "title": "Upscale", "nodes": [12, 13], "groups": [] }
|
||||
]
|
||||
```
|
||||
|
||||
To switch a whole group of nodes, put the group's `id` in `groups`.
|
||||
|
||||
### Pick one part
|
||||
|
||||
One pill: picking a name turns its nodes on and the other rows' nodes off. Open
|
||||
it with one row's nodes at `0` and the rest at `4`. Up to 4 names sit in a
|
||||
pill, more become a list.
|
||||
|
||||
```json
|
||||
"exclusive": true,
|
||||
"show": "pill",
|
||||
"switches": [
|
||||
{ "id": 1, "title": "Photo", "nodes": [20, 21], "groups": [] },
|
||||
{ "id": 2, "title": "Drawing", "nodes": [22], "groups": [] }
|
||||
]
|
||||
```
|
||||
|
||||
A node both parts use goes in neither row.
|
||||
|
||||
### One switch that changes settings
|
||||
|
||||
The row sets values instead of turning nodes off. `on` and `off` are keyed by
|
||||
node id, as text, then by control name. Give every node both sides.
|
||||
|
||||
```json
|
||||
"switches": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Fast",
|
||||
"nodes": [],
|
||||
"groups": [],
|
||||
"on": { "5": { "steps": 8 } },
|
||||
"off": { "5": { "steps": 20 } }
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
Only values that differ between the two sides change. Values are text, numbers
|
||||
or true/false.
|
||||
|
||||
A LoRA Loader 🆎 keeps its rows in one text value, `loras`. Save the whole text
|
||||
on both sides with only the row's `enabled` different, and the switch moves
|
||||
that row alone.
|
||||
|
||||
### Named choices
|
||||
|
||||
The simplest way to pick between settings, and to run one of two branches. Each
|
||||
choice is one way of setting a node, so it has `on` and no `off`. A card of
|
||||
choices is always one pill, so give other switches a card of their own.
|
||||
|
||||
To run one of two branches, wire both into ComfyUI's If/Else Switch (type
|
||||
`ComfySwitchNode`, control `switch`, inputs `on_true` and `on_false`):
|
||||
|
||||
```json
|
||||
"exclusive": true,
|
||||
"show": "pill",
|
||||
"switches": [
|
||||
{ "id": 1, "title": "Soft", "choice": true, "nodes": [3], "groups": [], "on": { "6": { "switch": true } } },
|
||||
{ "id": 2, "title": "Big", "choice": true, "nodes": [4, 5], "groups": [], "on": { "6": { "switch": false } } }
|
||||
]
|
||||
```
|
||||
|
||||
Here node 6 is the If/Else, and each choice's `nodes` are the nodes only that
|
||||
branch needs. Open the file with the If/Else set to the picked choice, that
|
||||
choice's nodes at `0` and the others' at `4`.
|
||||
|
||||
List a branch's nodes every time. ComfyUI checks every node that is on before
|
||||
it runs anything, so a missing model in the branch nobody picked stops the run
|
||||
unless its nodes are off.
|
||||
|
||||
Keep these out of a choice's `nodes`: the node the choice sets, because
|
||||
switching it off would undo the choice, and any node both branches use. Both
|
||||
branches must end in the same type, such as a picture.
|
||||
|
||||
### A row with two sides
|
||||
|
||||
`nodes_off` holds nodes that run only while the row is off. Use it when turning
|
||||
one thing on should turn another off.
|
||||
|
||||
```json
|
||||
{ "id": 1, "title": "Edit a picture", "nodes": [7], "groups": [], "nodes_off": [8] }
|
||||
```
|
||||
|
||||
Open it with one side at `0` and the other at `4`.
|
||||
|
||||
## Check your work
|
||||
|
||||
Open the workflow in ComfyUI, then:
|
||||
|
||||
- **A row says "empty":** none of its ids match a node on the card's level.
|
||||
- **A row says "mixed", or a pill shows no pick:** the saved `mode`s or values
|
||||
don't match any one row. Fix the starting state.
|
||||
- **A row does nothing:** a value's control name is wrong, or both sides hold
|
||||
the same value.
|
||||
- **A choice says "needs one more":** no other choice differs from it.
|
||||
|
||||
## Limits
|
||||
|
||||
A card holds up to 40 rows. A title is up to 60 characters, and a row up to
|
||||
400 nodes. A row can set values on up to 40 nodes.
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"id": "27945e9e-3e7b-49c5-bcb7-434d5de9e689",
|
||||
"revision": 0,
|
||||
"last_node_id": 1,
|
||||
"last_link_id": 0,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "AUSBOSS_NODES_WorkflowNoteTile",
|
||||
"pos": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"size": [
|
||||
300,
|
||||
88
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"title": "Download models",
|
||||
"properties": {
|
||||
"Node name for S&R": "AUSBOSS_NODES_WorkflowNoteTile"
|
||||
},
|
||||
"widgets_values": [
|
||||
"{\"v\": 1, \"title\": \"Download models\", \"subtitle\": \"Krea 2 Outpaint\", \"author\": \"\", \"layout\": \"tile\", \"accent\": \"\", \"body\": \"Get the four files below and put each one in its listed folder. Click **check files** after adding them.\", \"models\": [{\"name\": \"krea2_turbo_fp8_scaled.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"13.1 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_4b_fp8_scaled.safetensors\", \"dir\": \"text_encoders\", \"size\": \"5.2 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_vae.safetensors\", \"dir\": \"vae\", \"size\": \"254 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors\", \"note\": \"\"}, {\"name\": \"krea2_anypaint_rank32.safetensors\", \"dir\": \"loras\", \"size\": \"229 MB\", \"url\": \"https://huggingface.co/yijunwang2/krea2-anypaint/resolve/main/krea2_anypaint_rank32.safetensors\", \"note\": \"by yijunwang2\"}], \"packs\": [], \"links\": []}"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"note": "{\"v\": 1, \"title\": \"Download models\", \"subtitle\": \"Krea 2 Outpaint\", \"author\": \"\", \"layout\": \"tile\", \"accent\": \"\", \"body\": \"Get the four files below and put each one in its listed folder. Click **check files** after adding them.\", \"models\": [{\"name\": \"krea2_turbo_fp8_scaled.safetensors\", \"dir\": \"diffusion_models\", \"size\": \"13.1 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors\", \"note\": \"\"}, {\"name\": \"qwen3vl_4b_fp8_scaled.safetensors\", \"dir\": \"text_encoders\", \"size\": \"5.2 GB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors\", \"note\": \"\"}, {\"name\": \"qwen_image_vae.safetensors\", \"dir\": \"vae\", \"size\": \"254 MB\", \"url\": \"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors\", \"note\": \"\"}, {\"name\": \"krea2_anypaint_rank32.safetensors\", \"dir\": \"loras\", \"size\": \"229 MB\", \"url\": \"https://huggingface.co/yijunwang2/krea2-anypaint/resolve/main/krea2_anypaint_rank32.safetensors\", \"note\": \"by yijunwang2\"}], \"packs\": [], \"links\": []}"
|
||||
},
|
||||
"color": "#14424d",
|
||||
"bgcolor": "#161f21"
|
||||
}
|
||||
],
|
||||
"links": [],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 0.9,
|
||||
"offset": [
|
||||
150,
|
||||
115
|
||||
]
|
||||
},
|
||||
"frontendVersion": "1.53.6"
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { app } from "/scripts/app.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { showToast } from "../shared/index.mjs";
|
||||
import { openTransformEditorForNode } from "../shared/transform_editor.mjs";
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// hand-over waits one microtask, so the frontend has rebuilt the whole graph
|
||||
// before any panel moves.
|
||||
|
||||
import { app } from "/scripts/app.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { chainCallback, isAusbossNode } from "../shared/index.mjs";
|
||||
import { createFaceHandover } from "../shared/face_handover.mjs";
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
// Film Grain's Auto, on the node's face: keeps what Auto picks for the
|
||||
// picture on hand up to date for the card's "= 0.27" notes
|
||||
// (js/shared/grain_auto.mjs).
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { chainCallback } from "../shared/index.mjs";
|
||||
import { isForeignRun } from "../shared/prompt_scope.mjs";
|
||||
import { keepMatch, matchFromRun, refreshAuto } from "../shared/grain_auto.mjs";
|
||||
import { outputLocatorId, sourceFileWidget, upstreamNode } from "../shared/input_preview.mjs";
|
||||
|
||||
const NODE_CLASS = "AUSBOSS_NODES_FilmGrain";
|
||||
const viewUrl = (query) => api.apiURL(`/view?${query}`);
|
||||
|
||||
// One hook on a Load Image's file box, with every Film Grain it feeds listed
|
||||
// under it, so a picked file refreshes them all and a removed node leaves.
|
||||
// Both pictures are watched: the one getting grain, and grain_from's.
|
||||
const watched = new WeakMap();
|
||||
const WATCHED_INPUTS = ["image", "grain_from"];
|
||||
function unwatch(node) {
|
||||
for (const entry of node.__ausbossGrainWatch ?? []) entry.nodes.delete(node);
|
||||
node.__ausbossGrainWatch = [];
|
||||
}
|
||||
function watchFile(node) {
|
||||
const widgets = WATCHED_INPUTS.map((name) => sourceFileWidget(upstreamNode(node, name))).filter(Boolean);
|
||||
const now = node.__ausbossGrainWatch ?? [];
|
||||
if (now.length === widgets.length && now.every((entry, i) => entry.widget === widgets[i])) return;
|
||||
unwatch(node);
|
||||
for (const widget of widgets) {
|
||||
let entry = watched.get(widget);
|
||||
if (!entry) {
|
||||
const nodes = new Set();
|
||||
entry = { widget, nodes };
|
||||
chainCallback(widget, "callback", () => { for (const item of nodes) update(item); });
|
||||
watched.set(widget, entry);
|
||||
}
|
||||
entry.nodes.add(node);
|
||||
node.__ausbossGrainWatch.push(entry);
|
||||
}
|
||||
}
|
||||
|
||||
function update(node) {
|
||||
if (!node?.graph) return;
|
||||
watchFile(node);
|
||||
const record = app.nodeOutputs?.[outputLocatorId(node)] ?? null;
|
||||
refreshAuto(node, { viewUrl, record });
|
||||
}
|
||||
|
||||
const later = (node) => queueMicrotask(() => update(node));
|
||||
|
||||
app.registerExtension({
|
||||
name: "ausboss.film_grain",
|
||||
beforeRegisterNodeDef(nodeType, nodeData) {
|
||||
if (nodeData?.name !== NODE_CLASS) return;
|
||||
chainCallback(nodeType.prototype, "onNodeCreated", function () { later(this); });
|
||||
chainCallback(nodeType.prototype, "onConfigure", function () { later(this); });
|
||||
chainCallback(nodeType.prototype, "onConnectionsChange", function () { later(this); });
|
||||
chainCallback(nodeType.prototype, "onExecuted", function (output) {
|
||||
if (isForeignRun()) return;
|
||||
keepMatch(this, matchFromRun(output));
|
||||
later(this);
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onRemoved", function () { unwatch(this); });
|
||||
},
|
||||
// A reopened workflow restores every node's last output at once.
|
||||
onNodeOutputsUpdated() {
|
||||
for (const node of app.graph?._nodes ?? []) if (node.type === NODE_CLASS) later(node);
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,177 @@
|
||||
// H3 Prompt Writer 🆎 draws only the sockets in use.
|
||||
//
|
||||
// The node keeps every socket in its lists: a wire is saved by its socket's
|
||||
// number, so taking one out would send the wrong output. A socket that is
|
||||
// not in use is only left out of the drawing. The rule is in
|
||||
// js/shared/h3_sockets.mjs.
|
||||
//
|
||||
// classic a hidden socket gets a position of its own, which takes it
|
||||
// out of the stacked rows, and draws nothing.
|
||||
// Nodes 2.0 one style rule hides the socket's row by its data-slot-key.
|
||||
//
|
||||
// If either lever is missing in the running frontend, every socket shows,
|
||||
// as it always did.
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { chainCallback } from "../shared/index.mjs";
|
||||
import { lookupLink } from "../shared/graph_links.mjs";
|
||||
import { SHOW_ALL, dropTarget, hiddenRowsRule, setSocketHidden, socketsToShow } from "../shared/h3_sockets.mjs";
|
||||
|
||||
const NODE_CLASS = "AUSBOSS_NODES_H3PromptWriter";
|
||||
const STYLE_ID = "ausboss-h3-sockets";
|
||||
|
||||
const showAll = () => Boolean(app.extensionManager?.setting?.get?.(SHOW_ALL));
|
||||
|
||||
let warned = false;
|
||||
// Nothing here may stop a node from loading: on a throw the sockets show.
|
||||
function safely(run) {
|
||||
return function (...args) {
|
||||
try { return run.apply(this, args); } catch (error) {
|
||||
if (!warned) console.warn("[AusBoss] H3 Prompt Writer shows every socket:", error);
|
||||
warned = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const plainInputs = (node) => (node.inputs ?? []).filter((slot) => !slot.widget);
|
||||
const outputWired = (slot) => (slot.links?.length ?? 0) > 0;
|
||||
const shownRows = (node) => Math.max(
|
||||
plainInputs(node).filter((slot) => !slot._ausbossHidden).length,
|
||||
(node.outputs ?? []).filter((slot) => !slot._ausbossHidden).length,
|
||||
1,
|
||||
);
|
||||
const hiddenRows = (node) => Math.max(plainInputs(node).length, (node.outputs ?? []).length, 1) - shownRows(node);
|
||||
const rowHeight = () => globalThis.LiteGraph?.NODE_SLOT_HEIGHT ?? 20;
|
||||
|
||||
function writerNodes(graph = app.graph, found = []) {
|
||||
for (const node of graph?._nodes ?? []) {
|
||||
if (node.type === NODE_CLASS) found.push(node);
|
||||
if (node.subgraph) writerNodes(node.subgraph, found);
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
// Nodes 2.0 draws a row for every socket of the list. One style sheet for
|
||||
// the page holds each node's hidden rows.
|
||||
function writeStyleRules() {
|
||||
const rules = writerNodes().map((node) => node._ausbossSocketRule ?? "").filter(Boolean).join("\n");
|
||||
let sheet = document.getElementById(STYLE_ID);
|
||||
if (!sheet && !rules) return;
|
||||
sheet ??= document.head.appendChild(Object.assign(document.createElement("style"), { id: STYLE_ID }));
|
||||
if (sheet.textContent !== rules) sheet.textContent = rules;
|
||||
}
|
||||
|
||||
export function applySockets(node) {
|
||||
if (!node?.inputs || !node?.outputs) return;
|
||||
// The rows as this node last had them. Not counted from the sockets: a
|
||||
// paste or a copy gives the node new socket objects, with no marks.
|
||||
const rowsBefore = node._ausbossSocketRows;
|
||||
const show = socketsToShow({
|
||||
wiredInputs: plainInputs(node).filter((slot) => slot.link != null).map((slot) => slot.name),
|
||||
wiredOutputs: node.outputs.filter(outputWired).map((slot) => slot.name),
|
||||
showAll: showAll(),
|
||||
inputNames: plainInputs(node).map((slot) => slot.name),
|
||||
outputNames: node.outputs.map((slot) => slot.name),
|
||||
});
|
||||
const hiddenKeys = [];
|
||||
node.inputs.forEach((slot, index) => {
|
||||
if (slot.widget) return;
|
||||
const hide = !show.inputs.has(slot.name);
|
||||
if (setSocketHidden(slot, hide) && hide) hiddenKeys.push(`in-${index}`);
|
||||
});
|
||||
node.outputs.forEach((slot, index) => {
|
||||
const hide = !show.outputs.has(slot.name);
|
||||
if (setSocketHidden(slot, hide) && hide) hiddenKeys.push(`out-${index}`);
|
||||
});
|
||||
// When the hidden rows change, the nudge flips, so Nodes 2.0 measures the
|
||||
// sockets again and every wire ends on its dot.
|
||||
const hiddenNow = hiddenKeys.join(",");
|
||||
if (node._ausbossHiddenRows !== undefined && node._ausbossHiddenRows !== hiddenNow) node._ausbossNudge = !node._ausbossNudge;
|
||||
node._ausbossHiddenRows = hiddenNow;
|
||||
node._ausbossSocketRule = hiddenRowsRule(node.id, hiddenKeys, Boolean(node._ausbossNudge));
|
||||
writeStyleRules();
|
||||
|
||||
// The node gets a row taller or shorter with its sockets, so the panel
|
||||
// keeps its size. A workflow that is loading keeps the size it was saved at.
|
||||
const rows = shownRows(node);
|
||||
if (rowsBefore != null && rows !== rowsBefore && !app.configuringGraph && node.size) {
|
||||
node.setSize([node.size[0], node.size[1] + (rows - rowsBefore) * rowHeight()]);
|
||||
}
|
||||
node._ausbossSocketRows = rows;
|
||||
node.setDirtyCanvas?.(true, true);
|
||||
}
|
||||
|
||||
// A wire dropped on the node's body goes to the socket the frontend finds
|
||||
// for its kind, and the first free one can be one nobody can see (an audio
|
||||
// wire finds video_sound before voice). Nodes 2.0 then makes no wire at
|
||||
// all, as a hidden row has no place to snap to. So the node answers with
|
||||
// the first shown socket of that kind that can take the wire. The same goes
|
||||
// for a wire pulled from another node's input, which lands on an output.
|
||||
function shownSocketFor(node, found, outputs) {
|
||||
if (!found?.slot?._ausbossHidden) return found;
|
||||
const slots = outputs ? node.outputs : node.inputs;
|
||||
const target = dropTarget(slots.map((slot) => ({
|
||||
name: slot.name,
|
||||
type: slot.type,
|
||||
// A wire that is being dragged away leaves its socket free.
|
||||
wired: outputs ? outputWired(slot) : slot.link != null && !lookupLink(node.graph, slot.link)?._dragging,
|
||||
shown: !slot.widget && !slot._ausbossHidden,
|
||||
})), found.index, { shared: outputs });
|
||||
return target === found.index ? found : { index: target, slot: slots[target] };
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: "AusBoss.H3Sockets",
|
||||
settings: [
|
||||
{
|
||||
id: SHOW_ALL,
|
||||
name: "Show every socket on H3 Prompt Writer",
|
||||
type: "boolean",
|
||||
defaultValue: false,
|
||||
category: ["🆎 AusBoss", "H3 Prompt Writer", "Show every socket"],
|
||||
tooltip:
|
||||
"H3 Prompt Writer shows only the sockets and picture chips you are using. "
|
||||
+ "Turn this on to see all of them all the time.",
|
||||
// The card redraws too: its row of picture chips follows the setting.
|
||||
onChange: safely(() => writerNodes().forEach((node) => { applySockets(node); node.__ausbossCard?.refresh?.(); })),
|
||||
},
|
||||
],
|
||||
beforeRegisterNodeDef(nodeType, nodeData) {
|
||||
if (nodeData.name !== NODE_CLASS) return;
|
||||
const proto = nodeType.prototype;
|
||||
|
||||
// The least height counts only the rows that are drawn.
|
||||
const computeSize = proto.computeSize;
|
||||
proto.computeSize = function (...args) {
|
||||
const size = computeSize.apply(this, args);
|
||||
try { size[1] -= hiddenRows(this) * rowHeight(); } catch { /* the full height is a safe answer */ }
|
||||
return size;
|
||||
};
|
||||
|
||||
for (const [name, outputs] of [["findInputByType", false], ["findOutputByType", true]]) {
|
||||
const find = proto[name];
|
||||
if (typeof find !== "function") continue;
|
||||
proto[name] = function (...args) {
|
||||
const found = find.apply(this, args);
|
||||
try { return shownSocketFor(this, found, outputs); } catch { return found; }
|
||||
};
|
||||
}
|
||||
|
||||
const apply = safely(function () { applySockets(this); });
|
||||
chainCallback(proto, "onNodeCreated", apply);
|
||||
chainCallback(proto, "onAdded", apply);
|
||||
// A node that takes a saved state (a load, a paste, a copy) keeps the
|
||||
// size that came with it.
|
||||
chainCallback(proto, "onConfigure", safely(function () { this._ausbossSocketRows = null; applySockets(this); }));
|
||||
chainCallback(proto, "onConnectionsChange", apply);
|
||||
chainCallback(proto, "onRemoved", safely(function () {
|
||||
this._ausbossSocketRule = "";
|
||||
// The node is still in the graph's list while it is being removed.
|
||||
queueMicrotask(safely(writeStyleRules));
|
||||
}));
|
||||
// The saved node is what it always was: no parked position in it.
|
||||
chainCallback(proto, "onSerialize", safely(function (saved) {
|
||||
(saved.inputs ?? []).forEach((slot, index) => { if (this.inputs?.[index]?._ausbossHidden) delete slot.pos; });
|
||||
(saved.outputs ?? []).forEach((slot, index) => { if (this.outputs?.[index]?._ausbossHidden) delete slot.pos; });
|
||||
}));
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
// On a Chinese ComfyUI (Settings > Language), the pack's own node faces show
|
||||
// Chinese. js/shared/i18n.mjs holds the rules, js/shared/i18n_zh.mjs the words.
|
||||
// The language is read when the page loads, so a change in Settings shows
|
||||
// after a reload.
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { chineseActive, followFaces, useLocaleSource } from "../shared/i18n.mjs";
|
||||
|
||||
app.registerExtension({
|
||||
name: "ausboss.i18n",
|
||||
async setup() {
|
||||
useLocaleSource(() => app.ui?.settings?.getSettingValue?.("Comfy.Locale"));
|
||||
if (chineseActive()) followFaces(document.body);
|
||||
},
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function mountTransformPanel(node, panel) {
|
||||
fillNodeHeight(widget, {
|
||||
minWidth: PANEL_MIN_WIDTH,
|
||||
minHeight: () => transformPanelFloor(node),
|
||||
minNodeSize: [PANEL_MIN_WIDTH, 470],
|
||||
minNodeSize: [PANEL_MIN_WIDTH, 396],
|
||||
exactMinWidth: true,
|
||||
});
|
||||
return widget;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
// files to this site?"). A page can neither word that question nor skip it,
|
||||
// so the node says what it means here while the file explorer is open.
|
||||
|
||||
import { api } from "/scripts/api.js";
|
||||
import { app } from "/scripts/app.js";
|
||||
import { api } from "../../../scripts/api.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { BRAND, chainCallback, chainHandler, keepDomWidgetWidthAuto, notifyAusbossChange, showToast } from "../shared/index.mjs";
|
||||
import { fillNodeHeight } from "../shared/panel_layout.mjs";
|
||||
import { isForeignRun } from "../shared/prompt_scope.mjs";
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
childOf,
|
||||
countLine,
|
||||
foldersAddress,
|
||||
folderContext,
|
||||
isPicked,
|
||||
listAddress,
|
||||
nameAt,
|
||||
@@ -274,6 +275,7 @@ async function refresh(state) {
|
||||
}
|
||||
|
||||
function scheduleRefresh(state, delay = 160) {
|
||||
++state.token;
|
||||
clearTimeout(state.timer);
|
||||
state.timer = setTimeout(() => refresh(state), delay);
|
||||
}
|
||||
@@ -342,6 +344,7 @@ async function upload(file, subfolder, overwrite) {
|
||||
|
||||
// Loose pictures go into the folder the node shows.
|
||||
async function addFiles(state, files) {
|
||||
if (!state.alive) return false;
|
||||
const now = settings(state.node);
|
||||
const images = [...(files ?? [])].filter(isPicture);
|
||||
if (!images.length) return false;
|
||||
@@ -352,10 +355,13 @@ async function addFiles(state, files) {
|
||||
const added = [];
|
||||
let failed = 0;
|
||||
for (const file of images) {
|
||||
if (!state.alive) return true;
|
||||
const name = await upload(file, now.folder, false);
|
||||
if (!state.alive) return true;
|
||||
if (name) added.push(name); else failed += 1;
|
||||
}
|
||||
await refresh(state);
|
||||
if (!state.alive) return true;
|
||||
// A hand-made pick takes the new pictures in: they were just put there to be used.
|
||||
const picked = parsePicked(settings(state.node).pictures);
|
||||
if (picked !== null && added.length) setPicked(state, [...picked, ...added.filter((name) => state.names.includes(name))]);
|
||||
@@ -388,6 +394,7 @@ function closeAsk(answer = false) {
|
||||
}
|
||||
|
||||
function askBig(state, name, pictures) {
|
||||
if (!state.alive) return Promise.resolve(false);
|
||||
const bytes = pictures.reduce((sum, item) => sum + (Number(item.file?.size) || 0), 0);
|
||||
if (pictures.length <= BIG_COUNT && bytes <= BIG_BYTES) return Promise.resolve(true);
|
||||
closeAsk(false);
|
||||
@@ -404,7 +411,7 @@ function askBig(state, name, pictures) {
|
||||
foot.append(cancel, go);
|
||||
root.append(foot);
|
||||
const abort = new AbortController();
|
||||
openAsk = { root, abort, done };
|
||||
openAsk = { root, abort, done, state };
|
||||
cancel.addEventListener("click", () => closeAsk(false));
|
||||
go.addEventListener("click", () => closeAsk(true));
|
||||
document.body.append(root);
|
||||
@@ -420,7 +427,17 @@ function askBig(state, name, pictures) {
|
||||
// input/<its name>, folders inside it too, and the node moves there. Copying
|
||||
// the same folder again writes over its copies instead of piling up doubles.
|
||||
async function copyFolder(state, name, pictures) {
|
||||
if (!(await askBig(state, name, pictures)) || !state.alive) return;
|
||||
if (!state.alive || state.copyLocked) return;
|
||||
state.copyLocked = true;
|
||||
try {
|
||||
if (!(await askBig(state, name, pictures)) || !state.alive) return;
|
||||
await copyPictures(state, name, pictures);
|
||||
} finally {
|
||||
state.copyLocked = false;
|
||||
}
|
||||
}
|
||||
|
||||
async function copyPictures(state, name, pictures) {
|
||||
const target = folderName(name);
|
||||
const queue = pictures.slice(0, COPY_LIMIT);
|
||||
state.copying = { done: 0, total: queue.length, name, target };
|
||||
@@ -431,7 +448,9 @@ async function copyFolder(state, name, pictures) {
|
||||
for (;;) {
|
||||
const next = queue.shift();
|
||||
if (!next || !state.alive) return;
|
||||
if (await upload(next.file, next.folder ? `${target}/${next.folder}` : target, true)) copied += 1;
|
||||
const added = await upload(next.file, next.folder ? `${target}/${next.folder}` : target, true);
|
||||
if (!state.alive) return;
|
||||
if (added) copied += 1;
|
||||
state.copying.done += 1;
|
||||
paint(state);
|
||||
cover(state);
|
||||
@@ -444,6 +463,7 @@ async function copyFolder(state, name, pictures) {
|
||||
if (!state.alive) return;
|
||||
const moved = write(state.node, "source", "input") | write(state.node, "folder", target);
|
||||
if (moved) notifyAusbossChange(); else await refresh(state);
|
||||
if (!state.alive) return;
|
||||
paint(state);
|
||||
showToast({ detail: `Copied ${copied} picture${copied === 1 ? "" : "s"} from "${name}" into your ComfyUI input folder (input/${target}).` });
|
||||
if (copied < total) showToast({ severity: "warn", detail: `${total - copied} could not be copied.` });
|
||||
@@ -506,7 +526,7 @@ function addMenu(state, anchor) {
|
||||
closeMenu();
|
||||
const root = el("div", "ausboss-if-menu");
|
||||
const abort = new AbortController();
|
||||
openMenu = { root, abort };
|
||||
openMenu = { root, abort, state };
|
||||
const row = (text, title, run) => {
|
||||
const button = el("button", "ausboss-if-browse-row", text);
|
||||
button.type = "button"; button.title = title;
|
||||
@@ -545,19 +565,25 @@ async function browse(state, anchor) {
|
||||
foot.append(cancel, use);
|
||||
root.append(path, list, foot);
|
||||
const abort = new AbortController();
|
||||
openBrowse = { root, abort };
|
||||
openBrowse = { root, abort, state };
|
||||
let at = now.folder;
|
||||
let source = now.source;
|
||||
let navigation = 0;
|
||||
|
||||
const show = async (folder) => {
|
||||
const token = ++navigation;
|
||||
use.disabled = true;
|
||||
let data = null;
|
||||
try {
|
||||
const response = await api.fetchApi(foldersAddress({ source: now.source, folder }));
|
||||
const response = await api.fetchApi(foldersAddress({ source, folder }));
|
||||
if (response.ok) data = await response.json();
|
||||
} catch { /* shown as an empty list below */ }
|
||||
if (openBrowse?.root !== root) return;
|
||||
if (openBrowse?.root !== root || token !== navigation || !state.alive) return;
|
||||
if (!data && folder) return show(""); // a folder that is gone: start at the top
|
||||
at = data?.folder ?? "";
|
||||
path.replaceChildren(document.createTextNode(`${now.source} / `), el("b", "", at || "(the folder itself)"));
|
||||
source = data?.source ?? source;
|
||||
use.disabled = false;
|
||||
path.replaceChildren(document.createTextNode(`${source} / `), el("b", "", at || "(the folder itself)"));
|
||||
list.replaceChildren();
|
||||
if (at) {
|
||||
const up = el("button", "ausboss-if-browse-row up", "↑ up");
|
||||
@@ -582,7 +608,9 @@ async function browse(state, anchor) {
|
||||
};
|
||||
|
||||
use.addEventListener("click", () => {
|
||||
if (write(state.node, "folder", at)) notifyAusbossChange();
|
||||
if (use.disabled || !state.alive) return;
|
||||
const moved = write(state.node, "source", source) | write(state.node, "folder", at);
|
||||
if (moved) notifyAusbossChange();
|
||||
closeBrowse();
|
||||
});
|
||||
cancel.addEventListener("click", closeBrowse);
|
||||
@@ -706,6 +734,12 @@ function buildPanel(node) {
|
||||
const now = settings(node);
|
||||
const key = `${now.source}|${now.folder}|${now.subfolders}|${now.sort}`;
|
||||
if (key === state.key) { paint(state); return; }
|
||||
const context = folderContext(now);
|
||||
if (context !== state.context) {
|
||||
state.done.clear();
|
||||
state.loadedLine = "";
|
||||
state.context = context;
|
||||
}
|
||||
// Another folder holds other names: a pick made in the old one means nothing there.
|
||||
const moved = state.key && (now.source !== state.shown.source || now.folder !== state.shown.folder || now.subfolders !== state.shown.subfolders);
|
||||
state.key = key;
|
||||
@@ -725,7 +759,9 @@ function buildPanel(node) {
|
||||
const now = settings(node);
|
||||
if (now.run !== "one per run" || isLinked(node, "position")) return;
|
||||
const count = pickedNames(parsePicked(now.pictures), state.names).length;
|
||||
const next = nextPosition(now.position, count, now.afterRun);
|
||||
// The folder can change on disk or arrive through a link. Only the
|
||||
// backend knows where it ends; a cached gallery must not cap "next".
|
||||
const next = nextPosition(now.position, now.afterRun === "next" ? null : count, now.afterRun, now.atTheEnd);
|
||||
if (next !== now.position) { position.value = next; position.callback?.(next); }
|
||||
});
|
||||
}
|
||||
@@ -748,6 +784,7 @@ function buildPanel(node) {
|
||||
});
|
||||
|
||||
const now = settings(node);
|
||||
state.context = folderContext(now);
|
||||
state.key = `${now.source}|${now.folder}|${now.subfolders}|${now.sort}`;
|
||||
rebuild(state);
|
||||
scheduleRefresh(state, 60);
|
||||
@@ -773,12 +810,18 @@ app.registerExtension({
|
||||
});
|
||||
chainCallback(nodeType.prototype, "onConfigure", function (info) {
|
||||
const state = buildPanel(this);
|
||||
++state.token;
|
||||
clearTimeout(state.timer);
|
||||
state.done.clear();
|
||||
state.loadedLine = "";
|
||||
// A node that comes with a size keeps it, the smallest one too.
|
||||
if (info?.size) state.sized = true;
|
||||
// A loaded workflow brings its own folder and its own pick.
|
||||
state.restoring = true;
|
||||
queueMicrotask(() => {
|
||||
if (!state.alive) return;
|
||||
const now = settings(this);
|
||||
state.context = folderContext(now);
|
||||
state.key = `${now.source}|${now.folder}|${now.subfolders}|${now.sort}`;
|
||||
state.restoring = false;
|
||||
scheduleRefresh(state, 30);
|
||||
@@ -789,6 +832,7 @@ app.registerExtension({
|
||||
const state = this.__ausbossImageFolder;
|
||||
const note = output?.ausboss_image_folder?.[0];
|
||||
if (!state?.alive || !note) return;
|
||||
if (!note.context || folderContext(note.context) !== folderContext(settings(this))) return;
|
||||
for (const name of note.names ?? []) state.done.add(name);
|
||||
const loaded = note.loaded ?? [];
|
||||
state.loadedLine = loaded.length === 1
|
||||
@@ -805,9 +849,9 @@ app.registerExtension({
|
||||
state.abort.abort();
|
||||
state.choosing?.abort();
|
||||
clearTimeout(state.dropTimer);
|
||||
if (openBrowse) closeBrowse();
|
||||
if (openMenu) closeMenu();
|
||||
if (openAsk?.root && state.grid.isConnected === false) closeAsk(false);
|
||||
if (openBrowse?.state === state) closeBrowse();
|
||||
if (openMenu?.state === state) closeMenu();
|
||||
if (openAsk?.state === state) closeAsk(false);
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// last text. The labels themselves are never saved, so an older version of
|
||||
// the pack shows the plain names.
|
||||
|
||||
import { app } from "/scripts/app.js";
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { isForeignRun } from "../shared/prompt_scope.mjs";
|
||||
import { chainCallback } from "../shared/index.mjs";
|
||||
import { savedLabel, sizeLabel, sizesFromExecuted } from "../shared/image_size.mjs";
|
||||
|
||||