assignment-a1: fix

This commit is contained in:
franksim
2025-10-16 14:17:54 +00:00
parent caad6dc779
commit fe329b636d

View File

@@ -2,7 +2,7 @@ import torch
def avg_color(img: torch.Tensor):
return img.mean(dim=(1, 2)).tolist()
return img.mean(dim=(1, 2))
def mask(foreground: torch.Tensor, background: torch.Tensor, mask_tensor: torch.Tensor, threshold: float):