dict = torch.load(filename, map_location='cpu' if devices.device_esrgan.type == 'mps' else None)