make progress callbacks optional
This commit is contained in:
parent
d9fc908592
commit
06d4f32574
|
@ -23,7 +23,7 @@ def blend_img2img(
|
|||
*,
|
||||
strength: float,
|
||||
prompt: Optional[str] = None,
|
||||
callback: ProgressCallback,
|
||||
callback: ProgressCallback = None,
|
||||
**kwargs,
|
||||
) -> Image.Image:
|
||||
prompt = prompt or params.prompt
|
||||
|
|
|
@ -29,7 +29,7 @@ def blend_inpaint(
|
|||
fill_color: str = "white",
|
||||
mask_filter: Callable = mask_filter_none,
|
||||
noise_source: Callable = noise_source_histogram,
|
||||
callback: ProgressCallback,
|
||||
callback: ProgressCallback = None,
|
||||
**kwargs,
|
||||
) -> Image.Image:
|
||||
logger.info("upscaling image by expanding borders", expand)
|
||||
|
|
|
@ -30,7 +30,7 @@ def upscale_outpaint(
|
|||
fill_color: str = "white",
|
||||
mask_filter: Callable = mask_filter_none,
|
||||
noise_source: Callable = noise_source_histogram,
|
||||
callback: ProgressCallback,
|
||||
callback: ProgressCallback = None,
|
||||
**kwargs,
|
||||
) -> Image.Image:
|
||||
prompt = prompt or params.prompt
|
||||
|
|
|
@ -67,7 +67,7 @@ def upscale_stable_diffusion(
|
|||
*,
|
||||
upscale: UpscaleParams,
|
||||
prompt: str = None,
|
||||
callback: ProgressCallback,
|
||||
callback: ProgressCallback = None,
|
||||
**kwargs,
|
||||
) -> Image.Image:
|
||||
prompt = prompt or params.prompt
|
||||
|
|
Loading…
Reference in New Issue