assignment-a1: fix

This commit is contained in:
franksim
2025-10-16 14:15:40 +00:00
parent 9372abd0a3
commit caad6dc779

View File

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