Commit Graph
42 Commits
Author SHA1 Message Date
Jedrzej Kosinski 52f8220260 Started to replace anc_sample_factory with acn_sampler_sample_wrapper WrapperHook, ReferenceCN now can respect individual conds 2024-11-14 08:12:54 -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
Jedrzej Kosinski 7d25e4bafb Ported ContextRef adain support to work with uuids, reorganized the ContextRef-related code in BankStyle classes 2024-10-11 09:43:06 -05:00
Jedrzej Kosinski b0044cc2b7 For ContextRef c_bank, don't cat unless needed 2024-10-08 17:37:40 -05:00
Jedrzej Kosinski ea878b462f More progress on using cond uuids for ContextRef 2024-10-08 17:23:46 -05:00
Jedrzej Kosinski 37a3b26986 Progress on using uuids of conds instead of depending on execution order for ContextRef 2024-10-08 16:43:27 -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 2303845a02 Added a value for future ContextRef version compatibility checks 2024-08-08 02:50:04 -05:00
Jedrzej Kosinski 800af8f69f Added support for ContextRef mode_replace and tune_replace, fixed orig_forware_timestep_embed not being properly restored for ContextRef adain, ReferenceCN options are schedulable in the backed (no nodes added yet) 2024-08-07 02:40:36 -05:00
Jedrzej Kosinski d4a0a11347 Added keyframe support for ContextRef, small changes to timestep keyframe code, initial ContextRef version check 2024-08-06 05:28:06 -05:00
Jedrzej Kosinski 15308a39f3 Added offloading for stored cached_n value to avoid OOMs when a lot of conds are present + higher resolutions 2024-08-04 22:35:46 -05:00
Jedrzej Kosinski 2af647de56 Added adain support for ContextRef, fixed ref_weight less than 1.0 index error 2024-08-02 17:04:22 -05:00
Jedrzej Kosinski f25e35f1fe Fixed READ_WRITE state for ContextRef behaving like READ state instead 2024-07-31 21:04:52 -05:00
Jedrzej Kosinski f1916a4a0b Added ability to READ and WRITE ContextRef in one go, for the purposes of adding a sliding reference window 2024-07-31 06:32:21 -05:00
Jedrzej Kosinski 413c95edcc Modified ControlRef to keep track of one cond at a time - ensured by AnimateDiff-Evolved 2024-07-28 19:11:23 -05:00
Jedrzej Kosinski ee3490d4b0 Initial working implementation of ContextRef 2024-07-27 21:08:46 -05:00
Jedrzej Kosinski 7685abd592 Massive rework of ReferenceCN code to soon support ContextRef for AnimateDiff-Evolved 2024-07-27 18:54:41 -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 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 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 e346228937 Make attn RefCN compatible with most recent comfy (backwards compatible) 2024-05-19 23:13:21 -05:00
Jedrzej Kosinski cdfbdc0bbe Refactored Timestep Keyframes to use guarantee_steps instead of guarantee_usage, Timestep Keyframes with same start_percent will no longer overwrite one another, allowing guarantee_steps to be used to schedule on a per-step basis without worrying about unique start_percents, added Timestep Keyframe Interpolation and From List nodes to ease creation of Timestep Keyframe schedules, small cleanup/upkeep 2024-05-14 04:05:18 -05:00
Jedrzej Kosinski 019452c790 Made sure ref cns match up to expected bank indexes, made adain properly react to strengths and masks 2024-04-02 01:08:19 -05:00
Jedrzej Kosinski 5e3c34027f Added Reference ControlNet (Finetune) to control attn and adain values separately 2024-04-01 18:20:35 -05:00
Jedrzej Kosinski 414ac8d6ec Started separating out attn and adain variables to prevent issues when using multiple RefCN 2024-04-01 04:28:00 -05:00
Jedrzej Kosinski cb309c6078 Added initial reference_adain and reference_adain+attn support 2024-04-01 03:44:11 -05:00
Jedrzej Kosinski fb4cd18a7f Only expose reference_attn for now since it's the only one with code support (adain coming soon) 2024-03-31 01:13:49 -05:00
Jedrzej Kosinski e5841d1759 Added latent_kf and masking support (masks don't work per-area currently, but do work per-latent) 2024-03-31 00:34:56 -05:00
Jedrzej Kosinski 2fdf8236f6 Don't apply normal CNs during ref cn WRITE runs 2024-03-30 19:48:45 -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 37ae77b486 Applied proper strength control to attn1_replace_patch as well 2024-03-30 05:29:22 -05:00
Jedrzej Kosinski 25892b7b7d Added proper strength control to ReferenceCN, replaced old strength with ref_weight 2024-03-30 05:26:09 -05:00
Jedrzej Kosinski 111632917c Cleaned up ref cn so I can add more features 2024-03-30 04:02:44 -05:00
Jedrzej Kosinski 7678232a80 More refcn debugging and fix for refcn issue for ancestral samplers while testing 2024-03-19 10:38:52 -05:00
Jedrzej Kosinski 3acf378866 Started debugging ref cn 2024-03-07 03:52:54 -06:00
Jedrzej Kosinski 8be003562d Make sure to reference context_attn1 2024-03-02 10:56:11 -06:00
Jedrzej Kosinski b370f26986 More progress on ref cn 2024-03-02 10:25:27 -06:00
Jedrzej Kosinski f1ef8bb3a0 Continued debugging of ref cn 2024-03-01 02:16:48 -06:00
Jedrzej Kosinski b83d6f7213 Initial work on Reference CN support 2024-02-19 10:33:28 -06:00
Jedrzej Kosinski 62ce190ec4 Added changes from ComfyUI, scaffolding for ReferenceCN support 2024-02-10 16:46:24 -06:00