Skip to content

Commit

Permalink
fix(api): make stage-specific source image optional in GFPGAN stage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 11, 2023
1 parent da3d95f commit 6bdaa4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/onnx_web/chain/correct_gfpgan.py
@@ -1,5 +1,6 @@
from logging import getLogger
from os import path
from typing import Optional

import numpy as np
from PIL import Image
Expand Down Expand Up @@ -54,7 +55,7 @@ def correct_gfpgan(
source: Image.Image,
*,
upscale: UpscaleParams,
stage_source: Image.Image,
stage_source: Optional[Image.Image] = None,
**kwargs,
) -> Image.Image:
upscale = upscale.with_args(**kwargs)
Expand Down

0 comments on commit 6bdaa4a

Please sign in to comment.