Skip to content

Commit

Permalink
(minor) The latest ruff version has _slightly_ different formatting p…
Browse files Browse the repository at this point in the history
…references.
  • Loading branch information
RyanJDick committed Mar 11, 2024
1 parent 86ca81c commit 9da0336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invokeai/app/invocations/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class RectangleMaskInvocation(BaseInvocation, WithMetadata):

def invoke(self, context: InvocationContext) -> MaskOutput:
mask = torch.zeros((1, self.height, self.width), dtype=torch.bool)
mask[
:, self.y_top : self.y_top + self.rectangle_height, self.x_left : self.x_left + self.rectangle_width
] = True
mask[:, self.y_top : self.y_top + self.rectangle_height, self.x_left : self.x_left + self.rectangle_width] = (
True
)

mask_name = context.tensors.save(mask)
return MaskOutput(
Expand Down

0 comments on commit 9da0336

Please sign in to comment.