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.

beta_config.yaml 1.7 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Builtin Configurations(DO NOT CHANGE THESE CONFIGURATIONS unless you know exactly what you are doing)
  2. enable_modelarts: False
  3. # Url for modelarts
  4. data_url: ""
  5. train_url: ""
  6. checkpoint_url: ""
  7. # Path for local
  8. data_path: "/cache/data"
  9. output_path: "/cache/train"
  10. load_path: "/cache/checkpoint_path"
  11. device_target: "Ascend"
  12. enable_profiling: False
  13. # ==============================================================================
  14. # Training options
  15. train_stage: "beta"
  16. is_distributed: 1
  17. # dataset related
  18. data_dir: "/cache/data/face_recognition_dataset/train_dataset/"
  19. num_classes: 1
  20. per_batch_size: 192
  21. need_modelarts_dataset_unzip: True
  22. # network structure related
  23. backbone: "r100"
  24. use_se: 0
  25. emb_size: 256
  26. act_type: "relu"
  27. fp16: 1
  28. pre_bn: 0
  29. inference: 0
  30. use_drop: 1
  31. nc_16: 1
  32. # loss related
  33. margin_a: 1.0
  34. margin_b: 0.2
  35. margin_m: 0.3
  36. margin_s: 64
  37. # optimizer related
  38. lr: 0.04
  39. lr_scale: 1
  40. lr_epochs: "8,14,18"
  41. weight_decay: 0.0002
  42. momentum: 0.9
  43. max_epoch: 20
  44. pretrained: "your_pretrained_model"
  45. warmup_epochs: 2
  46. # distributed parameter
  47. local_rank: 0
  48. world_size: 1
  49. model_parallel: 0
  50. # logging related
  51. log_interval: 100
  52. ckpt_path: "outputs"
  53. max_ckpts: -1
  54. dynamic_init_loss_scale: 65536
  55. ckpt_steps: 1000
  56. ---
  57. # Help description for each configuration
  58. enable_modelarts: "Whether training on modelarts, default: False"
  59. data_url: "Url for modelarts"
  60. train_url: "Url for modelarts"
  61. data_path: "The location of the input data."
  62. output_path: "The location of the output file."
  63. device_target: 'Target device type'
  64. enable_profiling: 'Whether enable profiling while training, default: False'
  65. train_stage: "Train stage, base or beta"
  66. is_distributed: "If multi device"