def __init__(self, name, basenet, loader, patch_size=75, size=3,
                 reduce_channels=128, use_scalers=False):
        self.name = name
        self.basenet = basenet
        self._size = size
        self._patch_size = patch_size
        self._loader = loader
        self._reduce_channels = reduce_channels
        if size == 3:
            self._permutations = PERMUTATIONS
        elif size == 2:
            # They are 1-based due to the permutations file
            self._permutations = 1 + np.array(list(itertools.permutations(range(size**2))))
        self._use_scalers = use_scalers