only run correction before highres when selected in options
This commit is contained in:
parent
f451d8db74
commit
6d23491529
|
@ -97,18 +97,22 @@ def run_txt2img_pipeline(
|
|||
if highres.scale > 1:
|
||||
highres_progress = ChainProgress.from_progress(progress)
|
||||
|
||||
image = run_upscale_correction(
|
||||
job,
|
||||
server,
|
||||
StageParams(),
|
||||
params,
|
||||
image,
|
||||
upscale=upscale.with_args(
|
||||
scale=1,
|
||||
outscale=1,
|
||||
),
|
||||
callback=highres_progress,
|
||||
)
|
||||
if upscale.faces and (
|
||||
upscale.upscale_order == "correction-both" or
|
||||
upscale.upscale_order == "correction-first"
|
||||
):
|
||||
image = run_upscale_correction(
|
||||
job,
|
||||
server,
|
||||
StageParams(),
|
||||
params,
|
||||
image,
|
||||
upscale=upscale.with_args(
|
||||
scale=1,
|
||||
outscale=1,
|
||||
),
|
||||
callback=highres_progress,
|
||||
)
|
||||
|
||||
# load img2img pipeline once
|
||||
highres_pipe = load_pipeline(
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
"max": 1024,
|
||||
"step": 8
|
||||
},
|
||||
"highresMethods": {
|
||||
"highresMethod": {
|
||||
"default": "lanczos",
|
||||
"keys": [
|
||||
"bilinear",
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
"max": 1024,
|
||||
"step": 8
|
||||
},
|
||||
"highresMethods": {
|
||||
"highresMethod": {
|
||||
"default": "lanczos",
|
||||
"keys": [
|
||||
"bilinear",
|
||||
|
|
|
@ -130,6 +130,7 @@ export const I18N_STRINGS_EN = {
|
|||
height: 'Height',
|
||||
highres: {
|
||||
label: 'Highres',
|
||||
method: 'Upscaler',
|
||||
scale: 'Scale',
|
||||
steps: 'Steps',
|
||||
strength: 'Strength',
|
||||
|
|
Loading…
Reference in New Issue