Commit Graph
49 Commits
Author SHA1 Message Date
Jedrzej Kosinski b9c53b79c9 Fix from_vanilla call for ControlNetAdvanced so it does not break ComfyUI memory management system; parent model patcher has to be tracked properly now 2024-11-14 11:49:56 -06:00
Jedrzej Kosinski 7f84e973d6 Converted sampler_sample_wrapper to a outer_sample_wrapper so that controlnet prerun can be ran properly 2024-11-14 10:53:59 -06:00
Jedrzej Kosinski 3120c14e0a Added checks for None control_net to produce more helpful error messages for users 2024-11-14 03:48:42 -06:00
Jedrzej Kosinski f42c902fd4 Fixed checks for special preprocessor input (ReferenceCN and RGB SparseCtrl), continued work on DinkLink 2024-11-14 03:42:29 -06:00
Jedrzej Kosinski 74320a78e3 Replaced SparseModelPatcher with native ModelPatcher and callbacks 2024-11-12 18:14:21 -06:00
Jedrzej Kosinski 767cbf3dcc Merge branch 'main' into rework-modelpatcher 2024-10-23 22:02:47 -05:00
Jedrzej Kosinski 95e26b9b79 Made code work with new ComfyUI changes (device var removed from ControlBase) 2024-10-23 21:57:39 -05:00
Kosinkadink f778bb2a70 Modified code to accept transformer_options to match ComfyUI's get_control change and removed need to a terribly ugly hack that was required before to get the cond_or_uncond; now can just be gotten from transformer_options 2024-09-25 20:50:20 +09:00
Jedrzej Kosinski 476da0e724 Implemented changes from ComfyUI's InstantX depth flux support commit 2024-08-30 07:09:26 -05:00
Jedrzej Kosinski a9e9ec7b92 Fix inconsistent variable name causing reference before assignment error 2024-08-30 03:28:01 -05:00
Jedrzej Kosinski d3ceadbaba Attempted to add masking support for flux controlnet (not working yet, but logic is partway there 2024-08-29 09:57:23 -05:00
Jedrzej Kosinski 49609d318f Refactored cn weights to separate out input, middle, and output blocks, improved soft weight behavior to generalize math to be architecture agnostic (for the most part) 2024-08-24 07:31:26 -05:00
Jedrzej Kosinski 1807cd64e4 Updated ControlNetAdvanced to work with Flux controlnet, beginning of rework of weights 2024-08-24 00:43:21 -05:00
Jedrzej Kosinski ee3490d4b0 Initial working implementation of ContextRef 2024-07-27 21:08:46 -05:00
Jedrzej Kosinski cdabf60fca Automatic conversion of vanilla ControlNets to Advanced-ControlNet equivalents when context_options are detected, extracting refcn's sample wrapper to its own function, refactoring of ControlLLLite code to work without a model_optional input 2024-07-19 18:17:24 -05:00
Jedrzej Kosinski 906ef7f2c6 Remove exception when ControlNet++ is detected and not using ControlNet++ nodes 2024-07-18 14:05:40 -05:00
Jedrzej Kosinski e7434e9fa0 fixed msg typo and unfinished comment 2024-07-15 02:47:18 -05:00
Jedrzej Kosinski 55da9bb2d1 Initial progress on initial support of ControlNet++ model 2024-07-08 20:09:20 -05:00
Jedrzej Kosinski 4454c47707 Added sd3 support from upcoming ComfyUI update 2024-06-27 18:23:10 -05:00
Jedrzej Kosinski 96d957e9ec Fixed get_calc_pow to work the same as before (only current difference would be with SDXL T2IAdapter models with custom/soft weights), automatically resize T2IAdapter control tensors to match batch_size to make my life easier 2024-06-27 17:43:21 -05:00
Jedrzej Kosinski 7e7fdf0b83 Also reverse T2IAdapter's get_calc_pow 2024-06-27 13:59:43 -05:00
Jedrzej Kosinski 4646bb3a2b Reverse T2IAdapter weights to account for ComfyUI changes (means SDXL T2IAdapter softweights have breaking changes due to extra middle weight) 2024-06-27 13:51:18 -05:00
Jedrzej Kosinski 59e7d1a7af Make require_vae something for me to work on in the future for SparseCtrl and ReferenceCN 2024-06-27 12:24:18 -05:00
Jedrzej Kosinski e800d52acf Made all controlnets works with upcoming ComfyUI changes, started work on making latent preprocs obsolete, still need to make control weights apply the same way as before 2024-06-27 05:03:10 -05:00
Jedrzej Kosinski e6085cc111 Change what I previously called latent_format to model_latent_format to avoid conflicts with upcoming ComfyUI changes 2024-06-27 00:46:55 -05:00
Jedrzej Kosinski 949e1acf7e Turned context_aware into a dropdown in case I add other context_aware types in future, renamed sparse_mask_strength to sparse_mask_mult 2024-05-29 01:23:21 -05:00
Jedrzej Kosinski 74b6cf576f Implemented context_aware 2024-05-28 22:32:19 -05:00
Jedrzej Kosinski 20d54c0660 Added support for weight extras, added sparse_hint_mult, sparse_nonhint_mult, and sparse_mask_strength for SparseCtrl, renamed Force Default Weights node to Default Weights 2024-05-27 18:49:28 -05:00
Jedrzej Kosinski 1f95fac964 Fixed odd behavior when context options are active and there are less condhints than latents, condhints/masks are extended (last image/mask) instead of repeated, starting to work on uncond_mask to extend uncond_multiplier feature, modified motion_strength > 1.0 behavior 2024-05-24 00:11:26 -05:00
Jedrzej Kosinski 5660a110df Made SparseCtrl work with fp8 and cleaner lowvram support 2024-05-23 18:12:28 -05:00
Jedrzej Kosinski 4ed14e9ae0 Make T2IAdapter work with uncond_multiplier (results are not great when < 1.0, but match up exactly with auto1111 results) 2024-05-16 17:40:46 -05:00
Jedrzej Kosinski db0bf14dac Add support for uncond_multiplier in all Control Weights (identical to auto1111's 'controlnet is more important when set to 0.0) 2024-05-16 04:15:36 -05:00
Jedrzej Kosinski 0556fd2265 Fixed SparseCtrl not working with lowvram 2024-04-04 14:35:28 -05:00
Jedrzej Kosinski 7696628fdd Simplified RefCN injection, model_opt no longer needed and should fix some intermittent bugs 2024-03-30 19:16:21 -05:00
Jedrzej Kosinski 5c3786e1a7 Merge branch 'main' into develop 2024-03-19 10:55:07 -05:00
Jedrzej Kosinski 6e05ca03fe Fixed ModelPatcher import in control.py 2024-03-19 10:40:44 -05:00
Jedrzej Kosinski 654988cf98 Merge branch 'main' into develop 2024-03-07 04:26:30 -06:00
Jedrzej Kosinski 0082222162 Updated T2IAdapterAdvanced to match recent ComfyUI changes 2024-03-07 04:21:37 -06:00
Jedrzej Kosinski b83d6f7213 Initial work on Reference CN support 2024-02-19 10:33:28 -06:00
Jedrzej Kosinski 7fd9e085c7 Fixed SVD-ControlNet by normalizing condhints to (-1,1) scale 2024-02-14 02:16:20 -06:00
Jedrzej Kosinski ba32706ed4 Progress on SVD-ControlNet support 2024-02-11 11:05:54 -06:00
Jedrzej Kosinski 62ce190ec4 Added changes from ComfyUI, scaffolding for ReferenceCN support 2024-02-10 16:46:24 -06:00
Jedrzej Kosinski 7329728aff Initial scaffolding for eventual SVD-ControlNet support 2024-02-06 08:21:49 -06:00
Jedrzej Kosinski d1d7f322a8 Fixed ControlLLLite issue with tiled samplers 2024-02-06 04:30:54 -06:00
Jedrzej Kosinski 77e92f5f8f Fixed ControlLLLite error with certain latent sizes 2024-02-06 01:19:07 -06:00
Jedrzej Kosinski 65af498879 Fix for ControlLLLite control object on patches becoming None 2024-02-02 09:02:49 -06:00
Jedrzej Kosinski be2da1c086 Fixed ControlLLLite issues due to deepcopy behavior within ModelPatcher patches 2024-02-02 02:13:35 -06:00
Jedrzej Kosinski fbf005f31d Added full ControlLLLite support, refactored some code to eliminate code repetition and support controls that require model patching 2024-01-31 23:19:16 -06:00
Jedrzej Kosinski 8e0a94b5ff Renamed control folder to adv_control 2024-01-10 03:41:55 -06:00