text: # -*- coding=utf-8 -*-
  
  # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the MIT License.
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # MIT License for more details.
  """Default configs."""
  
  from .base import BaseConfig
  from .cifar10 import Cifar10CommonConfig
  
  
  class Cifar100CommonConfig(BaseConfig):
      """Default Cifar100 Config."""
  
      n_class = 100
      batch_size = 256
      num_workers = 4
  
  
  class Cifar100TrainConfig(Cifar10CommonConfig):
      """Default Cifar100 config."""
  
      transforms = [
          dict(type='RandomCrop', size=32, padding=4),
          dict(type='RandomHorizontalFlip'),
          dict(type='ToTensor'),
          dict(type='Normalize', mean=[0.50707519, 0.48654887, 0.44091785], std=[0.26733428, 0.25643846, 0.27615049])]
  
  
  class Cifar100ValConfig(Cifar10CommonConfig):
      """Default Cifar100 config."""
  
      transforms = [
          dict(type='ToTensor'),
          dict(type='Normalize', mean=[0.50707519, 0.48654887, 0.44091785], std=[0.26733428, 0.25643846, 0.27615049])]
  
  
  class Cifar100Config(object):
      """Default Dataset config for Cifar100."""
  
      common = Cifar100CommonConfig
      train = Cifar100TrainConfig
      val = Cifar100ValConfig
  