add xyz, fix

This commit is contained in:
aria1th 2023-12-08 22:13:35 +09:00
parent af7d7ce951
commit 873aea82ea
2 changed files with 2 additions and 1 deletions

View File

@ -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")

View File

@ -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}