mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
(minor) Use a new variable name to satisfy type checks.
This commit is contained in:
parent
bdae81e429
commit
cec7399366
@ -154,9 +154,8 @@ class GroundedSAMInvocation(BaseInvocation):
|
||||
masks = masks.permute(0, 2, 3, 1)
|
||||
masks = masks.mean(dim=-1)
|
||||
masks = (masks > 0).int()
|
||||
masks = masks.numpy().astype(np.uint8)
|
||||
masks = list(masks)
|
||||
return masks
|
||||
np_masks = masks.numpy().astype(np.uint8)
|
||||
return list(np_masks)
|
||||
|
||||
def _apply_polygon_refinement(self, masks: list[npt.NDArray[np.uint8]]) -> list[npt.NDArray[np.uint8]]:
|
||||
"""Apply polygon refinement to the masks.
|
||||
|
Loading…
Reference in New Issue
Block a user