fix(api): drop unused parameter from inpaint pipeline
This commit is contained in:
parent
6a0f881120
commit
a3eed7a095
|
@ -110,7 +110,6 @@ def run_img2img_pipeline(
|
||||||
|
|
||||||
def run_inpaint_pipeline(
|
def run_inpaint_pipeline(
|
||||||
ctx: ServerContext,
|
ctx: ServerContext,
|
||||||
stage: StageParams,
|
|
||||||
params: ImageParams,
|
params: ImageParams,
|
||||||
_size: Size,
|
_size: Size,
|
||||||
output: str,
|
output: str,
|
||||||
|
@ -123,6 +122,7 @@ def run_inpaint_pipeline(
|
||||||
strength: float,
|
strength: float,
|
||||||
fill_color: str,
|
fill_color: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
stage = StageParams()
|
||||||
image = upscale_outpaint(
|
image = upscale_outpaint(
|
||||||
ctx,
|
ctx,
|
||||||
stage,
|
stage,
|
||||||
|
@ -142,7 +142,7 @@ def run_inpaint_pipeline(
|
||||||
logger.info('output image size does not match source, skipping post-blend')
|
logger.info('output image size does not match source, skipping post-blend')
|
||||||
|
|
||||||
image = run_upscale_correction(
|
image = run_upscale_correction(
|
||||||
ctx, StageParams(), params, image, upscale=upscale)
|
ctx, stage, params, image, upscale=upscale)
|
||||||
|
|
||||||
dest = base_join(ctx.output_path, output)
|
dest = base_join(ctx.output_path, output)
|
||||||
image.save(dest)
|
image.save(dest)
|
||||||
|
|
Loading…
Reference in New Issue