apply lint
This commit is contained in:
parent
5ecc874c70
commit
eebbd8e7c7
|
@ -279,14 +279,13 @@ def get_tile_latents(
|
|||
xt = x + t
|
||||
yt = y + t
|
||||
|
||||
mx = size.width // LATENT_FACTOR
|
||||
my = size.height // LATENT_FACTOR
|
||||
|
||||
tile_latents = full_latents[:, :, y:yt, x:xt]
|
||||
|
||||
if tile_latents.shape[2] < t or tile_latents.shape[3] < t:
|
||||
extra_latents = get_latents_from_seed(seed, size, batch=tile_latents.shape[0])
|
||||
extra_latents[:, :, 0:tile_latents.shape[2], 0:tile_latents.shape[3]] = tile_latents
|
||||
extra_latents[
|
||||
:, :, 0 : tile_latents.shape[2], 0 : tile_latents.shape[3]
|
||||
] = tile_latents
|
||||
tile_latents = extra_latents
|
||||
|
||||
return tile_latents
|
||||
|
|
|
@ -474,7 +474,9 @@ def load_wildcards(server: ServerContext) -> None:
|
|||
)
|
||||
|
||||
for file in wildcard_files:
|
||||
with open(path.join(server.model_path, "wildcard", file), "r", encoding="utf-8") as f:
|
||||
with open(
|
||||
path.join(server.model_path, "wildcard", file), "r", encoding="utf-8"
|
||||
) as f:
|
||||
lines = f.read().splitlines()
|
||||
lines = [line.strip() for line in lines if not line.startswith("#")]
|
||||
lines = [line for line in lines if len(line) > 0]
|
||||
|
|
Loading…
Reference in New Issue