feat(api-nodes): add Bria RMBG nodes (#12465)

Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
This commit is contained in:
Alexander Piskun
2026-02-16 03:22:30 +02:00
committed by GitHub
parent e2c71ceb00
commit 2c1d06a4e3
3 changed files with 218 additions and 48 deletions

View File

@@ -57,7 +57,7 @@ def tensor_to_bytesio(
image: torch.Tensor,
*,
total_pixels: int | None = 2048 * 2048,
mime_type: str = "image/png",
mime_type: str | None = "image/png",
) -> BytesIO:
"""Converts a torch.Tensor image to a named BytesIO object.