Skip to content

Commit

Permalink
fix(api): match panorama img2img parameter check to numpy code path
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 28, 2023
1 parent 1d9de2c commit c8e1519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/diffusers/pipelines/panorama.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,8 @@ def __call__(
*args,
**kwargs,
):
if len(args) > 0 and (
isinstance(args[0], np.ndarray) or isinstance(args[0], PIL.Image.Image)
if len(args) > 1 and (
isinstance(args[1], np.ndarray) or isinstance(args[1], PIL.Image.Image)
):
logger.debug("running img2img panorama pipeline")
return self.img2img(*args, **kwargs)
Expand Down

0 comments on commit c8e1519

Please sign in to comment.