Skip to content

Commit

Permalink
fix(api): remove traces of highres from blend pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 22, 2023
1 parent 5f5b01f commit 4ac25f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions api/onnx_web/diffusers/run.py
Expand Up @@ -577,7 +577,7 @@ def run_blend_pipeline(
size: Size,
outputs: List[str],
upscale: UpscaleParams,
highres: HighresParams,
# highres: HighresParams,
sources: List[Image.Image],
mask: Image.Image,
) -> None:
Expand All @@ -595,20 +595,6 @@ def run_blend_pipeline(
)
image = image.convert("RGB")

# TODO: blend tab doesn't have a prompt
image = run_highres(
job,
server,
params,
size,
upscale,
highres,
image,
progress,
[],
[],
)

image = run_upscale_correction(
job, server, stage, params, image, upscale=upscale, callback=progress
)
Expand Down
1 change: 1 addition & 0 deletions api/onnx_web/server/api.py
Expand Up @@ -458,6 +458,7 @@ def blend(server: ServerContext, pool: DevicePoolExecutor):
size,
output,
upscale,
# TODO: highres
sources,
mask,
needs_device=device,
Expand Down

0 comments on commit 4ac25f0

Please sign in to comment.