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

#396 Trainer constructor cleanup

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-266_clean_trainer_ctor
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
  1. train_dataset_params:
  2. root_dir: /data/coco/
  3. list_file: instances_train2017.json
  4. samples_sub_directory: images/train2017
  5. targets_sub_directory: annotations
  6. dataset_classes_inclusion_tuples_list:
  7. _target_: super_gradients.training.utils.segmentation_utils.coco_sub_classes_inclusion_tuples_list
  8. cache_labels: False
  9. cache_images: False
  10. transforms:
  11. # for more options see common.factories.transforms_factory.py
  12. - RandomFlipSeg:
  13. prob: 0.5
  14. - RescaleSeg: # consider removing this step
  15. long_size: 608
  16. - RandomRescaleSeg:
  17. scales: [ 0.5, 2.0 ]
  18. - PadShortToCropSizeSeg:
  19. crop_size: 512
  20. - CropImageAndMaskSeg:
  21. crop_size: 512
  22. mode: random
  23. val_dataset_params:
  24. root_dir: /data/coco/
  25. list_file: instances_val2017.json
  26. samples_sub_directory: images/val2017
  27. targets_sub_directory: annotations
  28. dataset_classes_inclusion_tuples_list:
  29. _target_: super_gradients.training.utils.segmentation_utils.coco_sub_classes_inclusion_tuples_list
  30. cache_labels: False
  31. cache_images: False
  32. transforms:
  33. - RescaleSeg:
  34. short_size: 512
  35. - CropImageAndMaskSeg:
  36. crop_size: 512
  37. mode: center
  38. train_dataloader_params:
  39. batch_size: 8
  40. num_workers: 8
  41. drop_last: True # drop the last incomplete batch, if dataset size is not divisible by the batch size
  42. val_dataloader_params:
  43. batch_size: 24
  44. num_workers: 8
  45. drop_last: False
Discard
Tip!

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