Skip to content

Commit

Permalink
more sonar lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 19, 2023
1 parent c69e342 commit f7eefe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion api/onnx_web/convert/diffusion_stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def convert_diffusion_stable(
source,
torch_dtype=dtype,
use_auth_token=ctx.token,
# cache_dir=path.join(ctx.cache_path, name)
).to(ctx.training_device)
output_path = Path(dest_path)

Expand Down
8 changes: 4 additions & 4 deletions api/onnx_web/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def noise_source_fill_edge(


def noise_source_fill_mask(
_source: Image.Image, dims: Point, origin: Point, fill="white", **kw
_source: Image.Image, dims: Point, _origin: Point, fill="white", **kw
) -> Image.Image:
"""
Fill the whole canvas, no source or noise.
Expand Down Expand Up @@ -95,7 +95,7 @@ def noise_source_gaussian(


def noise_source_uniform(
_source: Image.Image, dims: Point, origin: Point, **kw
_source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image:
width, height = dims
size = width * height
Expand All @@ -115,7 +115,7 @@ def noise_source_uniform(


def noise_source_normal(
_source: Image.Image, dims: Point, origin: Point, **kw
_source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image:
width, height = dims
size = width * height
Expand All @@ -135,7 +135,7 @@ def noise_source_normal(


def noise_source_histogram(
source: Image.Image, dims: Point, origin: Point, **kw
source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image:
r, g, b = source.split()
width, height = dims
Expand Down

0 comments on commit f7eefe4

Please sign in to comment.