Initial commit

This commit is contained in:
TechnicalTod
2026-01-28 19:33:35 +13:00
commit 4cd66803ef
34 changed files with 4455 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""
Image utility functions
"""
import torch
def create_empty_mask(
batch_size: int,
height: int,
width: int
) -> torch.Tensor:
"""
Create an empty mask tensor.
Args:
batch_size: Number of images in batch
height: Mask height
width: Mask width
Returns:
Zero-filled mask tensor as RGB (B, H, W, 3)
"""
return torch.zeros((batch_size, height, width, 3), dtype=torch.float32)