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.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. """centerface unique configs"""
  16. class ConfigCenterface():
  17. """
  18. Config setup
  19. """
  20. flip_idx = [[0, 1], [3, 4]]
  21. default_resolution = [512, 512]
  22. heads = {'hm': 1, 'wh': 2, 'hm_offset': 2, 'landmarks': 5 * 2}
  23. head_conv = 64
  24. max_objs = 64
  25. rand_crop = True
  26. scale = 0.4
  27. shift = 0.1
  28. aug_rot = 0
  29. color_aug = True
  30. flip = 0.5
  31. input_res = 512 #768 #800
  32. output_res = 128 #192 #200
  33. num_classes = 1
  34. num_joints = 5
  35. reg_offset = True
  36. hm_hp = True
  37. reg_hp_offset = True
  38. dense_hp = False
  39. hm_weight = 1.0
  40. wh_weight = 0.1
  41. off_weight = 1.0
  42. lm_weight = 0.1
  43. rotate = 0
  44. # for test
  45. mean = [0.408, 0.447, 0.470]
  46. std = [0.289, 0.274, 0.278]
  47. test_scales = [0.999,]
  48. nms = 1
  49. flip_test = 0
  50. fix_res = True
  51. input_h = 832 #800
  52. input_w = 832 #800
  53. K = 200
  54. down_ratio = 4
  55. test_batch_size = 1
  56. master_batch_size = 8
  57. num_workers = 8
  58. not_rand_crop = False
  59. no_color_aug = False