Includes algorithm comparison, node wiring, and parameter guide diagrams. SVGs use <picture> tags for GitHub compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
84 lines
6.2 KiB
XML
84 lines
6.2 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 860 440">
|
|
<defs>
|
|
<linearGradient id="pbg" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" style="stop-color:#0d1117"/>
|
|
<stop offset="100%" style="stop-color:#161b22"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect width="860" height="440" rx="12" fill="url(#pbg)"/>
|
|
|
|
<text x="430" y="35" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="20" font-weight="700" fill="#e6edf3" text-anchor="middle">Parameter Guide</text>
|
|
|
|
<!-- Lambda -->
|
|
<rect x="30" y="55" width="390" height="165" rx="10" fill="#1c2333" stroke="#d2a8ff" stroke-width="1.5"/>
|
|
<text x="50" y="82" font-family="monospace" font-size="15" font-weight="700" fill="#d2a8ff">smc_cfg_lambda</text>
|
|
<text x="380" y="82" font-family="monospace" font-size="13" fill="#7ee787" text-anchor="end">default: 5.0</text>
|
|
|
|
<text x="50" y="108" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">Sliding surface coefficient. Controls how aggressively the</text>
|
|
<text x="50" y="124" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">controller corrects accumulated guidance errors.</text>
|
|
|
|
<!-- Lambda scale -->
|
|
<rect x="50" y="145" width="350" height="8" rx="4" fill="#21262d"/>
|
|
<rect x="50" y="145" width="35" height="8" rx="4" fill="#56d364"/>
|
|
<rect x="85" y="145" width="140" height="8" fill="#f0883e"/>
|
|
<rect x="225" y="145" width="175" height="8" rx="0 4 4 0" fill="#f85149"/>
|
|
<text x="50" y="170" font-family="monospace" font-size="10" fill="#56d364">0</text>
|
|
<text x="155" y="170" font-family="monospace" font-size="10" fill="#f0883e" text-anchor="middle">5.0 (sweet spot)</text>
|
|
<text x="400" y="170" font-family="monospace" font-size="10" fill="#f85149" text-anchor="end">50</text>
|
|
|
|
<text x="50" y="195" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#7ee787">Low: gentle, preserves original CFG behavior</text>
|
|
<text x="50" y="210" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#f85149">High: aggressive correction, may over-constrain</text>
|
|
|
|
<!-- K -->
|
|
<rect x="440" y="55" width="390" height="165" rx="10" fill="#1c2333" stroke="#79c0ff" stroke-width="1.5"/>
|
|
<text x="460" y="82" font-family="monospace" font-size="15" font-weight="700" fill="#79c0ff">smc_cfg_K</text>
|
|
<text x="790" y="82" font-family="monospace" font-size="13" fill="#7ee787" text-anchor="end">default: 0.2</text>
|
|
|
|
<text x="460" y="108" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">Switching gain. Bounds the per-element correction</text>
|
|
<text x="460" y="124" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">magnitude to [-K, +K]. Think of it as a safety clamp.</text>
|
|
|
|
<!-- K scale -->
|
|
<rect x="460" y="145" width="350" height="8" rx="4" fill="#21262d"/>
|
|
<rect x="460" y="145" width="15" height="8" rx="4" fill="#56d364"/>
|
|
<rect x="475" y="145" width="90" height="8" fill="#f0883e"/>
|
|
<rect x="565" y="145" width="245" height="8" rx="0 4 4 0" fill="#f85149"/>
|
|
<text x="460" y="170" font-family="monospace" font-size="10" fill="#56d364">0</text>
|
|
<text x="505" y="170" font-family="monospace" font-size="10" fill="#f0883e" text-anchor="middle">0.2</text>
|
|
<text x="810" y="170" font-family="monospace" font-size="10" fill="#f85149" text-anchor="end">5.0</text>
|
|
|
|
<text x="460" y="195" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#7ee787">Low: subtle correction, smooth results</text>
|
|
<text x="460" y="210" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#f85149">High: strong correction, may cause chattering</text>
|
|
|
|
<!-- Warmup -->
|
|
<rect x="30" y="240" width="390" height="175" rx="10" fill="#1c2333" stroke="#f0883e" stroke-width="1.5"/>
|
|
<text x="50" y="267" font-family="monospace" font-size="15" font-weight="700" fill="#f0883e">warmup_steps</text>
|
|
<text x="380" y="267" font-family="monospace" font-size="13" fill="#7ee787" text-anchor="end">default: 0</text>
|
|
|
|
<text x="50" y="293" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">Initial denoising steps with NO guidance at all.</text>
|
|
<text x="50" y="309" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">Pure conditional prediction. Lets the model establish</text>
|
|
<text x="50" y="325" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="12" fill="#8b949e">rough structure before guidance corrects direction.</text>
|
|
|
|
<!-- Timeline -->
|
|
<rect x="50" y="350" width="350" height="20" rx="4" fill="#21262d"/>
|
|
<rect x="50" y="350" width="70" height="20" rx="4" fill="#2d333b" stroke="#f0883e" stroke-width="1"/>
|
|
<rect x="120" y="350" width="280" height="20" rx="0 4 4 0" fill="#0d2818" stroke="#238636" stroke-width="1"/>
|
|
<text x="85" y="364" font-family="monospace" font-size="9" fill="#f0883e" text-anchor="middle">warmup</text>
|
|
<text x="260" y="364" font-family="monospace" font-size="9" fill="#7ee787" text-anchor="middle">SMC-CFG active</text>
|
|
|
|
<text x="50" y="393" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#8b949e">Typical: 0-5 steps. Try 2-3 for more diverse compositions.</text>
|
|
|
|
<!-- CFG Scale recommendations -->
|
|
<rect x="440" y="240" width="390" height="175" rx="10" fill="#1c2333" stroke="#7ee787" stroke-width="1.5"/>
|
|
<text x="460" y="267" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="15" font-weight="700" fill="#7ee787">Recommended CFG Scales</text>
|
|
|
|
<text x="460" y="295" font-family="monospace" font-size="12" fill="#c9d1d9">Model CFG Scale</text>
|
|
<rect x="460" y="302" width="350" height="1" fill="#30363d"/>
|
|
|
|
<text x="460" y="322" font-family="monospace" font-size="12" fill="#79c0ff">SD 1.5 / SDXL 7.0 - 12.0</text>
|
|
<text x="460" y="344" font-family="monospace" font-size="12" fill="#79c0ff">SD3 / SD3.5 7.5</text>
|
|
<text x="460" y="366" font-family="monospace" font-size="12" fill="#79c0ff">FLUX.1-dev 2.0 - 3.0</text>
|
|
<text x="460" y="388" font-family="monospace" font-size="12" fill="#79c0ff">Wan 2.1/2.2 5.0</text>
|
|
|
|
<text x="460" y="408" font-family="Segoe UI, Helvetica, Arial, sans-serif" font-size="11" fill="#8b949e">SMC-CFG lets you push CFG higher than usual</text>
|
|
</svg>
|