mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-17 11:50:18 +08:00
also use setup callback for the refiner instead of before_process
This commit is contained in:
parent
9cd0475c08
commit
007ecfbb29
@ -38,7 +38,7 @@ class ScriptRefiner(scripts.Script):
|
|||||||
|
|
||||||
return enable_refiner, refiner_checkpoint, refiner_switch_at
|
return enable_refiner, refiner_checkpoint, refiner_switch_at
|
||||||
|
|
||||||
def before_process(self, p, enable_refiner, refiner_checkpoint, refiner_switch_at):
|
def setup(self, p, enable_refiner, refiner_checkpoint, refiner_switch_at):
|
||||||
# the actual implementation is in sd_samplers_common.py, apply_refiner
|
# the actual implementation is in sd_samplers_common.py, apply_refiner
|
||||||
|
|
||||||
if not enable_refiner or refiner_checkpoint in (None, "", "None"):
|
if not enable_refiner or refiner_checkpoint in (None, "", "None"):
|
||||||
|
Loading…
Reference in New Issue
Block a user