diff --git a/extensions-builtin/deepcache/scripts/deepcache_script.py b/extensions-builtin/deepcache/scripts/deepcache_script.py index 92e7b9b92..75bbb3925 100644 --- a/extensions-builtin/deepcache/scripts/deepcache_script.py +++ b/extensions-builtin/deepcache/scripts/deepcache_script.py @@ -35,7 +35,7 @@ class ScriptDeepCache(scripts.Script): if shared.opts.deepcache_enable: hr_steps = getattr(p, 'hr_second_pass_steps', 0) or p.steps enable_step = int(shared.opts.deepcache_cache_enable_step_percentage_hr * hr_steps) - self.configure_deepcache(self.get_deepcache_params(getattr(p, 'hr_second_pass_steps', 0) or p.steps), enable_step_at = enable_step) # use second pass steps if available + self.configure_deepcache(self.get_deepcache_params(getattr(p, 'hr_second_pass_steps', 0) or p.steps, enable_step_at = enable_step)) # use second pass steps if available def postprocess_batch(self, p:processing.StableDiffusionProcessing, *args, **kwargs): print("DeepCache postprocess") diff --git a/extensions-builtin/deepcache/scripts/deepcache_xyz.py b/extensions-builtin/deepcache/scripts/deepcache_xyz.py index ad0af8501..621ec4e03 100644 --- a/extensions-builtin/deepcache/scripts/deepcache_xyz.py +++ b/extensions-builtin/deepcache/scripts/deepcache_xyz.py @@ -54,6 +54,7 @@ def add_axis_options(): xyz_grid.AxisOption("[DeepCache] Cache Disable initial step percentage", float, float_applier("deepcache_cache_enable_step_percentage", 0, 1)), xyz_grid.AxisOption("[DeepCache] Cache Refresh Rate", int, int_applier("deepcache_full_run_step_rate", 0, 1000)), xyz_grid.AxisOption("[DeepCache] HR Reuse", str, bool_applier("deepcache_hr_reuse"), choices=xyz_grid.boolean_choice(reverse=True)), + xyz_grid.AxisOption("[DeepCache] HR Cache Disable initial step percentage", float, float_applier("deepcache_cache_enable_step_percentage_hr", 0, 1)), ] set_a = {opt.label for opt in xyz_grid.axis_options} set_b = {opt.label for opt in extra_axis_options}