mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-01 07:00:35 +00:00
![]() * Add 'sigmas' to transformer_options so that downstream code can know about the full scope of current sampling run, fix Hook Keyframes' guarantee_steps=1 inconsistent behavior with sampling split across different Sampling nodes/sampling runs by referencing 'sigmas' * Cleaned up hooks.py, refactored Hook.should_register and add_hook_patches to use target_dict instead of target so that more information can be provided about the current execution environment if needed * Refactor WrapperHook into TransformerOptionsHook, as there is no need to separate out Wrappers/Callbacks/Patches into different hook types (all affect transformer_options) * Refactored HookGroup to also store a dictionary of hooks separated by hook_type, modified necessary code to no longer need to manually separate out hooks by hook_type * In inner_sample, change "sigmas" to "sampler_sigmas" in transformer_options to not conflict with the "sigmas" that will overwrite "sigmas" in _calc_cond_batch * Refactored 'registered' to be HookGroup instead of a list of Hooks, made AddModelsHook operational and compliant with should_register result, moved TransformerOptionsHook handling out of ModelPatcher.register_all_hook_patches, support patches in TransformerOptionsHook properly by casting any patches/wrappers/hooks to proper device at sample time * Made hook clone code sane, made clear ObjectPatchHook and SetInjectionsHook are not yet operational * Fix performance of hooks when hooks are appended via Cond Pair Set Props nodes by properly caching between positive and negative conds, make hook_patches_backup behave as intended (in the case that something pre-registers WeightHooks on the ModelPatcher instead of registering it at sample time) * Filter only registered hooks on self.conds in CFGGuider.sample * Make hook_scope functional for TransformerOptionsHook * removed 4 whitespace lines to satisfy Ruff, * Add a get_injections function to ModelPatcher * Made TransformerOptionsHook contribute to registered hooks properly, added some doc strings and removed a so-far unused variable * Rename AddModelsHooks to AdditionalModelsHook, rename SetInjectionsHook to InjectionsHook (not yet implemented, but at least getting the naming figured out) * Clean up a typehint |
||
---|---|---|
.. | ||
cldm | ||
comfy_types | ||
extra_samplers | ||
k_diffusion | ||
ldm | ||
sd1_tokenizer | ||
t2i_adapter | ||
taesd | ||
text_encoders | ||
checkpoint_pickle.py | ||
cli_args.py | ||
clip_config_bigg.json | ||
clip_model.py | ||
clip_vision_config_g.json | ||
clip_vision_config_h.json | ||
clip_vision_config_vitl_336.json | ||
clip_vision_config_vitl.json | ||
clip_vision_siglip_384.json | ||
clip_vision.py | ||
conds.py | ||
controlnet.py | ||
diffusers_convert.py | ||
diffusers_load.py | ||
float.py | ||
gligen.py | ||
hooks.py | ||
latent_formats.py | ||
lora_convert.py | ||
lora.py | ||
model_base.py | ||
model_detection.py | ||
model_management.py | ||
model_patcher.py | ||
model_sampling.py | ||
ops.py | ||
options.py | ||
patcher_extension.py | ||
sample.py | ||
sampler_helpers.py | ||
samplers.py | ||
sd1_clip_config.json | ||
sd1_clip.py | ||
sd.py | ||
sdxl_clip.py | ||
supported_models_base.py | ||
supported_models.py | ||
utils.py |