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

#869 Add DagsHub Logger to Super Gradients

Merged
Ghost merged 1 commits into Deci-AI:master from timho102003:dagshub_logger
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
  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 -m super_gradients.train_from_recipe --config-name=cityscapes_ddrnet
  11. # DDRNet23-Slim: python -m super_gradients.train_from_recipe --config-name=cityscapes_ddrnet architecture=ddrnet_23_slim
  12. # DDRNet39: python -m super_gradients.train_from_recipe --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. - variable_setup
  47. train_dataloader: cityscapes_train
  48. val_dataloader: cityscapes_val
  49. architecture: ddrnet_23
  50. training_hyperparams:
  51. max_epochs: 500
  52. initial_lr: 0.0075 # batch size 24
  53. loss:
  54. dice_ce_edge_loss:
  55. num_classes: 19
  56. ignore_index: 19
  57. num_aux_heads: 1
  58. num_detail_heads: 0
  59. weights: [ 1., 0.4 ]
  60. dice_ce_weights: [ 1., 1. ]
  61. ce_edge_weights: [ .5, .5 ]
  62. edge_kernel: 5
  63. sync_bn: True
  64. arch_params:
  65. num_classes: 19
  66. use_aux_heads: True
  67. load_checkpoint: False
  68. checkpoint_params:
  69. load_checkpoint: ${load_checkpoint}
  70. checkpoint_path:
  71. load_backbone: True
  72. strict_load: no_key_matching
  73. experiment_name: ${architecture}_cityscapes
  74. multi_gpu: DDP
  75. num_gpus: 4
Discard
Tip!

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