yolo_v4_retrain_resnet18_kitti.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. random_seed: 42
  2. yolov4_config {
  3. big_anchor_shape: "[(114.94, 60.67), (159.06, 114.59), (297.59, 176.38)]"
  4. mid_anchor_shape: "[(42.99, 31.91), (79.57, 31.75), (56.80, 56.93)]"
  5. small_anchor_shape: "[(15.60, 13.88), (30.25, 20.25), (20.67, 49.63)]"
  6. box_matching_iou: 0.25
  7. arch: "resnet"
  8. nlayers: 18
  9. arch_conv_blocks: 2
  10. loss_loc_weight: 0.8
  11. loss_neg_obj_weights: 100.0
  12. loss_class_weights: 0.5
  13. label_smoothing: 0.0
  14. big_grid_xy_extend: 0.05
  15. mid_grid_xy_extend: 0.1
  16. small_grid_xy_extend: 0.2
  17. freeze_bn: false
  18. #freeze_blocks: 0
  19. force_relu: false
  20. }
  21. training_config {
  22. batch_size_per_gpu: 8
  23. num_epochs: 80
  24. enable_qat: false
  25. checkpoint_interval: 10
  26. learning_rate {
  27. soft_start_cosine_annealing_schedule {
  28. min_learning_rate: 1e-7
  29. max_learning_rate: 1e-4
  30. soft_start: 0.3
  31. }
  32. }
  33. regularizer {
  34. type: NO_REG
  35. weight: 3e-9
  36. }
  37. optimizer {
  38. adam {
  39. epsilon: 1e-7
  40. beta1: 0.9
  41. beta2: 0.999
  42. amsgrad: false
  43. }
  44. }
  45. pruned_model_path: "EXPERIMENT_DIR/experiment_dir_pruned/yolov4_resnet18_pruned.tlt"
  46. }
  47. eval_config {
  48. average_precision_mode: SAMPLE
  49. batch_size: 8
  50. matching_iou_threshold: 0.5
  51. }
  52. nms_config {
  53. confidence_threshold: 0.001
  54. clustering_iou_threshold: 0.5
  55. top_k: 200
  56. }
  57. augmentation_config {
  58. hue: 0.1
  59. saturation: 1.5
  60. exposure:1.5
  61. vertical_flip:0
  62. horizontal_flip: 0.5
  63. jitter: 0.3
  64. output_width: 1248
  65. output_height: 384
  66. randomize_input_shape_period: 0
  67. mosaic_prob: 0.5
  68. mosaic_min_ratio:0.2
  69. }
  70. dataset_config {
  71. data_sources: {
  72. label_directory_path: "/workspace/tlt-experiments/data/training/label_2"
  73. image_directory_path: "/workspace/tlt-experiments/data/training/image_2"
  74. }
  75. include_difficult_in_training: true
  76. target_class_mapping {
  77. key: "car"
  78. value: "car"
  79. }
  80. target_class_mapping {
  81. key: "pedestrian"
  82. value: "pedestrian"
  83. }
  84. target_class_mapping {
  85. key: "cyclist"
  86. value: "cyclist"
  87. }
  88. target_class_mapping {
  89. key: "van"
  90. value: "car"
  91. }
  92. target_class_mapping {
  93. key: "person_sitting"
  94. value: "pedestrian"
  95. }
  96. validation_data_sources: {
  97. label_directory_path: "/workspace/tlt-experiments/data/val/label"
  98. image_directory_path: "/workspace/tlt-experiments/data/val/image"
  99. }
  100. }