mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
add xyz, fix
This commit is contained in:
parent
af7d7ce951
commit
873aea82ea
@ -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")
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user