46 Commits (2ba5cc8b867bc1aabe59fdaf0a8489e65012d603)

Author SHA1 Message Date
Extraltodeus f1a01c2c7e
Add sampler_pre_cfg_function (#3979)
* Update samplers.py

* Update model_patcher.py
8 months ago
comfyanonymous 73ca780019 Add SamplerEulerCFG++ node.
This node should match the DDIM implementation of CFG++ when "regular" is
selected.

"alternative" is a slightly different take on CFG++
8 months ago
comfyanonymous 028a583bef Fix issue with full diffusers SD3 loras. 8 months ago
comfyanonymous 0e06b370db Print key names for easier debugging. 8 months ago
comfyanonymous 37a08a41b3 Support setting weight offsets in weight patcher. 8 months ago
comfyanonymous 809cc85a8e Remove useless code. 9 months ago
comfyanonymous ffc4b7c30e Fix DORA strength.
This is a different version of #3298 with more correct behavior.
9 months ago
comfyanonymous efa5a711b2 Reduce memory usage when applying DORA: #3557 9 months ago
Chenlei Hu 7718ada4ed
Add type annotation UnetWrapperFunction (#3531)
* Add type annotation UnetWrapperFunction

* nit

* Add types.py
9 months ago
comfyanonymous 2d41642716 Fix lowvram dora issue. 9 months ago
comfyanonymous fa6dd7e5bb Fix lowvram issue with saving checkpoints.
The previous fix didn't cover the case where the model was loaded in
lowvram mode right before.
10 months ago
comfyanonymous e1489ad257 Fix issue with lowvram mode breaking model saving. 10 months ago
comfyanonymous 719fb2c81d Add basic PAG node. 10 months ago
kk-89 38ed2da2dd
Fix typo in lowvram patcher (#3209) 11 months ago
comfyanonymous 41ed7e85ea Fix object_patches_backup not being the same object across clones. 11 months ago
comfyanonymous 1f4fc9ea0c Fix issue with get_model_object on patched model. 11 months ago
comfyanonymous 1a0486bb96 Fix model needing to be loaded on GPU to generate the sigmas. 11 months ago
comfyanonymous ae77590b4e dora_scale support for lora file. 11 months ago
comfyanonymous c18a203a8a Don't unload model weights for non weight patches. 11 months ago
comfyanonymous db8b59ecff Lower memory usage for loras in lowvram mode at the cost of perf. 12 months ago
comfyanonymous 65397ce601 Replace prints with logging and add --verbose argument. 12 months ago
comfyanonymous 12c1080ebc Simplify differential diffusion code. 12 months ago
comfyanonymous 1abf8374ec utils.set_attr can now be used to set any attribute.
The old set_attr has been renamed to set_attr_param.
12 months ago
comfyanonymous 9f71e4b62d Let model patches patch sub objects. 12 months ago
comfyanonymous ef4f6037cb Fix model patches not working in custom sampling scheduler nodes. 1 year ago
comfyanonymous 12e822c6c8 Use function to calculate model size in model patcher. 1 year ago
comfyanonymous 571ea8cdcc Fix SAG not working with cfg 1.0 1 year ago
comfyanonymous ba04a87d10 Refactor and improve the sag node.
Moved all the sag related code to comfy_extras/nodes_sag.py
1 year ago
comfyanonymous 614b7e731f Implement GLora. 1 year ago
comfyanonymous cb63e230b4 Make lora code a bit cleaner. 1 year ago
comfyanonymous 7e3fe3ad28 Make deep shrink behave like it should. 1 year ago
comfyanonymous 9f00a18095 Fix potential issues. 1 year ago
comfyanonymous 94cc718e9c Add a way to add patches to the input block. 1 year ago
comfyanonymous dd4ba68b6e Allow different models to estimate memory usage differently. 1 year ago
comfyanonymous 248aa3e563 Fix bug. 1 year ago
comfyanonymous 4a8a839b40 Add option to use in place weight updating in ModelPatcher. 1 year ago
comfyanonymous 3e0033ef30 Fix model merge bug.
Unload models before getting weights for model patching.
1 year ago
comfyanonymous fe40109b57 Fix issue with object patches not being copied with patcher. 1 year ago
comfyanonymous 844dbf97a7 Add: advanced->model->ModelSamplingDiscrete node.
This allows changing the sampling parameters of the model (eps or vpred)
or set the model to use zsnr.
1 year ago
gameltb 7e455adc07 fix unet_wrapper_function name in ModelPatcher 1 year ago
comfyanonymous 8cc75c64ff Let unet wrapper functions have .to attributes. 1 year ago
comfyanonymous afa2399f79 Add a way to set output block patches to modify the h and hsp. 1 year ago
comfyanonymous 1cdfb3dba4 Only do the cast on the device if the device supports it. 1 year ago
comfyanonymous b92bf8196e Do lora cast on GPU instead of CPU for higher performance. 1 year ago
Simon Lui 18617967e5
Fix error message in model_patcher.py
Found while tinkering.
2 years ago
comfyanonymous f92074b84f Move ModelPatcher to model_patcher.py 2 years ago