1
0
Fork 0

only run correction before highres when selected in options

This commit is contained in:
Sean Sube 2023-04-01 14:39:48 -05:00
parent f451d8db74
commit 6d23491529
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
4 changed files with 19 additions and 14 deletions

View File

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

View File

@ -60,7 +60,7 @@
"max": 1024,
"step": 8
},
"highresMethods": {
"highresMethod": {
"default": "lanczos",
"keys": [
"bilinear",

View File

@ -64,7 +64,7 @@
"max": 1024,
"step": 8
},
"highresMethods": {
"highresMethod": {
"default": "lanczos",
"keys": [
"bilinear",

View File

@ -130,6 +130,7 @@ export const I18N_STRINGS_EN = {
height: 'Height',
highres: {
label: 'Highres',
method: 'Upscaler',
scale: 'Scale',
steps: 'Steps',
strength: 'Strength',