def overwrite_param(self, batch_size=None, resolution=None):
        """Overwrites some parameters for progressive training."""
        if (not batch_size) and (not resolution):
            return
        if (batch_size == self.batch_size) and (
                resolution == self.dataset.resolution):
            return
        if batch_size:
            self.batch_size = batch_size
        if resolution:
            self._dataset.resolution = resolution
        self.build_dataloader()
Overwrites some parameters for progressive training.
datasets/dataloaders.py