add_sampler_pre_cfg_function

This commit is contained in:
lllyasviel
2024-02-05 14:48:43 -08:00
parent 8f86e66e5c
commit 88f6df4dcd
3 changed files with 13 additions and 0 deletions

View File

@@ -102,6 +102,10 @@ class UnetPatcher(ModelPatcher):
self.append_model_option('conditioning_modifiers', modifier, ensure_uniqueness)
return
def add_sampler_pre_cfg_function(self, modifier, ensure_uniqueness=False):
self.append_model_option('sampler_pre_cfg_function', modifier, ensure_uniqueness)
return
def set_memory_peak_estimation_modifier(self, modifier):
self.model_options['memory_peak_estimation_modifier'] = modifier
return