Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#717 Feature/sg 636 pose estimation metrics

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-636-pose-estimation-metrics
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
  1. # DDRNet segmentation training example with Cityscapes dataset.
  2. # Paper:
  3. # "Deep Dual-resolution Networks for Real-time and Accurate Semantic Segmentation of Road Scenes"
  4. # https://arxiv.org/abs/2104.13188
  5. #
  6. # Instructions:
  7. # 0. Make sure that the data is stored in dataset_params.dataset_dir or add "dataset_params.data_dir=<PATH-TO-DATASET>" at the end of the command below (feel free to check ReadMe)
  8. # 1. Move to the project root (where you will find the ReadMe and src folder)
  9. # 2. Run the command:
  10. # DDRNet23: python src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=cityscapes_ddrnet
  11. # DDRNet23-Slim: python src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=cityscapes_ddrnet architecture=ddrnet_23_slim
  12. # DDRNet39: python src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=cityscapes_ddrnet architecture=ddrnet_39
  13. # Note: add "checkpoint_params.checkpoint_path=<ddrnet23-backbone-pretrained-path>" to use pretrained backbone
  14. #
  15. # Validation mIoU - Cityscapes, training time:
  16. # DDRNet23: input-size: [1024, 2048] mIoU: 80.26 4 X RTX A5000, 12 H
  17. # DDRNet23-Slim: input-size: [1024, 2048] mIoU: 78.01 4 X RTX A5000, 9 H
  18. # DDRNet39: input-size: [1024, 2048] mIoU: 81.32 4 X RTX A5000, 15 H
  19. #
  20. # Official git repo:
  21. # https://github.com/ydhongHIT/DDRNet
  22. #
  23. # Pretrained checkpoints:
  24. # Backbones- downloaded from the author's official repo.
  25. # https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet23_bb_imagenet.pth
  26. # https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet23_slim_bb_imagenet.pth
  27. # https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet39_bb_imagenet.pth
  28. #
  29. # Logs, tensorboards and network checkpoints:
  30. # DDRNet23: https://deci-pretrained-models.s3.amazonaws.com/ddrnet/cityscapes/ddrnet23/
  31. # DDRNet23-Slim: https://deci-pretrained-models.s3.amazonaws.com/ddrnet/cityscapes/ddrnet23_slim/
  32. # DDRNet39: https://deci-pretrained-models.s3.amazonaws.com/ddrnet/cityscapes/ddrnet39/
  33. #
  34. # Learning rate and batch size parameters, using 4 RTX A5000 with DDP:
  35. # DDRNet23: input-size: [1024, 1024] initial_lr: 0.0075 batch-size: 6 * 4gpus = 24
  36. # DDRNet23-Slim: input-size: [1024, 1024] initial_lr: 0.0075 batch-size: 6 * 4gpus = 24
  37. # DDRNet39: input-size: [1024, 1024] initial_lr: 0.0075 batch-size: 6 * 4gpus = 24
  38. #
  39. # Comments:
  40. # * Pretrained backbones were used.
  41. defaults:
  42. - training_hyperparams: cityscapes_default_train_params
  43. - dataset_params: cityscapes_ddrnet_dataset_params
  44. - checkpoint_params: default_checkpoint_params
  45. - _self_
  46. train_dataloader: cityscapes_train
  47. val_dataloader: cityscapes_val
  48. architecture: ddrnet_23
  49. training_hyperparams:
  50. max_epochs: 500
  51. initial_lr: 0.0075 # batch size 24
  52. loss:
  53. dice_ce_edge_loss:
  54. num_classes: 19
  55. ignore_index: 19
  56. num_aux_heads: 1
  57. num_detail_heads: 0
  58. weights: [ 1., 0.4 ]
  59. dice_ce_weights: [ 1., 1. ]
  60. ce_edge_weights: [ .5, .5 ]
  61. edge_kernel: 5
  62. sync_bn: True
  63. arch_params:
  64. num_classes: 19
  65. aux_head: True
  66. load_checkpoint: False
  67. checkpoint_params:
  68. load_checkpoint: ${load_checkpoint}
  69. checkpoint_path:
  70. load_backbone: True
  71. strict_load: no_key_matching
  72. experiment_name: ${architecture}_cityscapes
  73. ckpt_root_dir:
  74. multi_gpu: DDP
  75. num_gpus: 4
  76. # THE FOLLOWING PARAMS ARE DIRECTLY USED BY HYDRA
  77. hydra:
  78. run:
  79. # Set the output directory (i.e. where .hydra folder that logs all the input params will be generated)
  80. dir: ${hydra_output_dir:${ckpt_root_dir}, ${experiment_name}}
Discard
Tip!

Press p or to see the previous file or, n or to see the next file