File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
invokeai/backend/stable_diffusion/extensions Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class InpaintExt(ExtensionBase):
17
17
"""An extension for inpainting with non-inpainting models. See `InpaintModelExt` for inpainting with inpainting
18
18
models.
19
19
"""
20
+
20
21
def __init__ (
21
22
self ,
22
23
mask : torch .Tensor ,
@@ -42,7 +43,7 @@ def __init__(
42
43
43
44
@staticmethod
44
45
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.
46
47
The `in_channels` of a UNet vary depending on model type:
47
48
- normal - 4
48
49
- depth - 5
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class InpaintModelExt(ExtensionBase):
16
16
"""An extension for inpainting with inpainting models. See `InpaintExt` for inpainting with non-inpainting
17
17
models.
18
18
"""
19
+
19
20
def __init__ (
20
21
self ,
21
22
mask : Optional [torch .Tensor ],
@@ -46,7 +47,7 @@ def __init__(
46
47
47
48
@staticmethod
48
49
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.
50
51
The `in_channels` of a UNet vary depending on model type:
51
52
- normal - 4
52
53
- depth - 5
You can’t perform that action at this time.
0 commit comments