1
0
Fork 0

more sonar lint

This commit is contained in:
Sean Sube 2023-02-19 07:54:27 -06:00
parent c69e342ee4
commit f7eefe4bd2
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 4 additions and 5 deletions

View File

@ -93,7 +93,6 @@ def convert_diffusion_stable(
source, source,
torch_dtype=dtype, torch_dtype=dtype,
use_auth_token=ctx.token, use_auth_token=ctx.token,
# cache_dir=path.join(ctx.cache_path, name)
).to(ctx.training_device) ).to(ctx.training_device)
output_path = Path(dest_path) output_path = Path(dest_path)

View File

@ -67,7 +67,7 @@ def noise_source_fill_edge(
def noise_source_fill_mask( 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: ) -> Image.Image:
""" """
Fill the whole canvas, no source or noise. Fill the whole canvas, no source or noise.
@ -95,7 +95,7 @@ def noise_source_gaussian(
def noise_source_uniform( def noise_source_uniform(
_source: Image.Image, dims: Point, origin: Point, **kw _source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image: ) -> Image.Image:
width, height = dims width, height = dims
size = width * height size = width * height
@ -115,7 +115,7 @@ def noise_source_uniform(
def noise_source_normal( def noise_source_normal(
_source: Image.Image, dims: Point, origin: Point, **kw _source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image: ) -> Image.Image:
width, height = dims width, height = dims
size = width * height size = width * height
@ -135,7 +135,7 @@ def noise_source_normal(
def noise_source_histogram( def noise_source_histogram(
source: Image.Image, dims: Point, origin: Point, **kw source: Image.Image, dims: Point, _origin: Point, **kw
) -> Image.Image: ) -> Image.Image:
r, g, b = source.split() r, g, b = source.split()
width, height = dims width, height = dims