fix(api): make stage-specific source image optional in GFPGAN stage (#233)
This commit is contained in:
parent
da3d95ff49
commit
6bdaa4a4ed
|
@ -1,5 +1,6 @@
|
|||
from logging import getLogger
|
||||
from os import path
|
||||
from typing import Optional
|
||||
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue