A SwarmUI extension that adds parameters for MythicalChu's ComfyUI-APG_ImYourCFGNow custom node to the generate tab. Retain the quality-boosting advantages of CFG while enabling the use of higher guidance scales without oversaturation.
11 March 2025
- Added parameters for Guidance Limiter (Thanks to derrian-distro), described in the APG repo as:
Added "Guidance Limiter" : https://arxiv.org/abs/2404.07724 It drops the cfg (also, APG's functions) outside the specified range (ideally at the early steps and the later ones) improving variability and combating oversaturation. Starting and ending parameters set as per the paper suggestion, but may need further tweaking depending on model and other conditions.
16 November 2024
- Initial Release
- Update SwarmUI first, if you have an old version this extension may not work
- In SwarmUI go to the Server/Extensions tab
- Find AdaptiveProjectedGuidance in the list and click the 'Install' button
- Refresh the page and go back to the generate tab, if you see the parameters then the required ComfyUI dependencies are installed and you can start using the extension, otherwise continue below.
- If the
ComfyUI-APG_ImYourCFGNowcustom node is not installed in the backend an install button will be shown in the parameter group, install it and follow the prompts - Now the parameters should appear and you are good to go
- Update SwarmUI first, if you have an old version this extension may not work
- Shutdown SwarmUI
- Open a cmd/terminal window in
SwarmUI\src\Extensions - Run
git clone https://github.com/Quaggles/SwarmUI-AdaptiveProjectedGuidance.git - Run
SwarmUI\update-windows.batorSwarmUI\update-linuxmac.shto recompile SwarmUI - Launch SwarmUI and follow on from Step 4 of Installation (Simple)
- Update SwarmUI first, if you have an old version this extension may not work
- In SwarmUI go to the Server/Extensions tab
- Click the update button for 'AdaptiveProjectedGuidanceExtension'
I'd recommend first experimenting by comparing a generation with and without the Adaptive Projected Guidance, then experiment with turning up your CFG Scale to 8-12 and decreasing Momentum and Norm Threshold params to control the saturation/burn.
