def get_num_groups(filters):
    """
    Helper to select number of groups for GroupNorm.
    Select 16 by default (as in paper)
    Otherwise takes filters//4 so we at least have 4 groups
    """
    return min(filters // 4, 16)