You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py 1.3 kB

5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2020 Huawei Technologies Co., Ltd
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # ============================================================================
  15. """config"""
  16. from easydict import EasyDict as ed
  17. config = ed({
  18. "image_size": '224,224',
  19. "num_classes": 1000,
  20. "lr": 0.4,
  21. "lr_scheduler": 'cosine_annealing',
  22. "lr_epochs": '30,60,90,120',
  23. "lr_gamma": 0.1,
  24. "eta_min": 0,
  25. "T_max": 150,
  26. "max_epoch": 150,
  27. "backbone": 'resnext50',
  28. "warmup_epochs": 1,
  29. "weight_decay": 0.0001,
  30. "momentum": 0.9,
  31. "is_dynamic_loss_scale": 0,
  32. "loss_scale": 1024,
  33. "label_smooth": 1,
  34. "label_smooth_factor": 0.1,
  35. "ckpt_interval": 5,
  36. "ckpt_save_max": 5,
  37. "ckpt_path": 'outputs/',
  38. "is_save_on_master": 1,
  39. "rank": 0,
  40. "group_size": 1
  41. })