Skip to content

Commit 416d29f

Browse files
committed
Ruff format
1 parent 19c0024 commit 416d29f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

invokeai/backend/stable_diffusion/extensions/inpaint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class InpaintExt(ExtensionBase):
1717
"""An extension for inpainting with non-inpainting models. See `InpaintModelExt` for inpainting with inpainting
1818
models.
1919
"""
20+
2021
def __init__(
2122
self,
2223
mask: torch.Tensor,
@@ -42,7 +43,7 @@ def __init__(
4243

4344
@staticmethod
4445
def _is_normal_model(unet: UNet2DConditionModel):
45-
""" Checks if the provided UNet belongs to a regular model.
46+
"""Checks if the provided UNet belongs to a regular model.
4647
The `in_channels` of a UNet vary depending on model type:
4748
- normal - 4
4849
- depth - 5

invokeai/backend/stable_diffusion/extensions/inpaint_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class InpaintModelExt(ExtensionBase):
1616
"""An extension for inpainting with inpainting models. See `InpaintExt` for inpainting with non-inpainting
1717
models.
1818
"""
19+
1920
def __init__(
2021
self,
2122
mask: Optional[torch.Tensor],
@@ -46,7 +47,7 @@ def __init__(
4647

4748
@staticmethod
4849
def _is_inpaint_model(unet: UNet2DConditionModel):
49-
""" Checks if the provided UNet belongs to a regular model.
50+
"""Checks if the provided UNet belongs to a regular model.
5051
The `in_channels` of a UNet vary depending on model type:
5152
- normal - 4
5253
- depth - 5

0 commit comments

Comments
 (0)