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

#307 Hotfix/sg 000 fix image loading new detectiondataset

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:hotfix/SG-000-fix_image_loading_new_detectiondataset
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
  1. # SSD MobileNetV2 Detection training on CoCo2017 Dataset:
  2. # Trained in 320x320 mAP@0.5@0.95 (COCO API, confidence 0.001, IoU threshold 0.6, test on 320x320 images) ~20.52
  3. # Checkpoint path: https://deci-pretrained-models.s3.amazonaws.com/ssd_lite_mobilenet_v2_coco_res320_new_coco_filtered_affine_scale_5_15_no_mosaic/ckpt_best.pth
  4. # (trained with stride_16_plus_big)
  5. # Hardware: 8 NVIDIA RTX 3090
  6. # Training time: ±17 hours
  7. # Instructions:
  8. # Set the PYTHONPATH environment variable: (Replace "YOUR_LOCAL_PATH" with the path to the downloaded repo):
  9. # export PYTHONPATH="YOUR_LOCAL_PATH"/super_gradients/src:"YOUR_LOCAL_PATH"/super_gradients/
  10. #
  11. # Run with:
  12. # python3 -m torch.distributed.launch --nproc_per_node=8 train_from_recipe.py --config-name=coco2017_ssd_lite_mobilenet_v2.yaml
  13. # NOTE:
  14. # Anchors will be selected based on validation resolution and anchors_name
  15. # To switch between anchors, set anchors_name to something else defined in the anchors section
  16. # e.g.
  17. # python3 -m torch.distributed.launch --nproc_per_node=4 train_from_recipe_example/train_from_recipe.py \
  18. # --config-name=coco_ssd_lite_mobilenet_v2.yaml anchors_name=stride_16_plus
  19. defaults:
  20. - training_hyperparams: coco2017_ssd_lite_mobilenet_v2_train_params
  21. - dataset_params: coco_detection_ssd_lite_mobilenet_v2_dataset_params
  22. - arch_params: default_arch_params
  23. - checkpoint_params: default_checkpoint_params
  24. - anchors: ssd_anchors
  25. architecture: ssd_lite_mobilenet_v2
  26. data_loader_num_workers: 8
  27. model_checkpoints_location: local
  28. experiment_suffix: res${dataset_params.val_image_size}
  29. experiment_name: ${architecture}_coco_${experiment_suffix}
  30. sg_model:
  31. _target_: super_gradients.SgModel
  32. experiment_name: ${experiment_name}
  33. model_checkpoints_location: ${model_checkpoints_location}
  34. multi_gpu: DDP
  35. anchors_resolution: ${dataset_params.val_image_size}x${dataset_params.val_image_size}
  36. anchors_name: stride_16_plus_big
  37. dboxes: ${anchors.${anchors_resolution}.${anchors_name}}
  38. arch_params:
  39. num_classes: 80
  40. anchors: ${dboxes}
  41. dataset_interface:
  42. coco2017_detection:
  43. dataset_params: ${dataset_params}
  44. training_hyperparams:
  45. criterion_params:
  46. alpha: 1.0
  47. dboxes: ${dboxes}
Discard
Tip!

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