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

#378 Feature/sg 281 add kd notebook

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-281-add_kd_notebook
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
  1. from super_gradients.training.models.detection_models.yolo_base import YoloBase, YoloDarknetBackbone
  2. from super_gradients.training.utils.utils import HpmStruct
  3. class YoloX_N(YoloBase):
  4. def __init__(self, arch_params: HpmStruct):
  5. arch_params.depth_mult_factor = 0.33
  6. arch_params.width_mult_factor = 0.25
  7. arch_params.yolo_type = 'yoloX'
  8. arch_params.depthwise = True
  9. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  10. class YoloX_T(YoloBase):
  11. def __init__(self, arch_params: HpmStruct):
  12. arch_params.depth_mult_factor = 0.33
  13. arch_params.width_mult_factor = 0.375
  14. arch_params.yolo_type = 'yoloX'
  15. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  16. class YoloX_S(YoloBase):
  17. def __init__(self, arch_params: HpmStruct):
  18. arch_params.depth_mult_factor = 0.33
  19. arch_params.width_mult_factor = 0.50
  20. arch_params.yolo_type = 'yoloX'
  21. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  22. class YoloX_M(YoloBase):
  23. def __init__(self, arch_params: HpmStruct):
  24. arch_params.depth_mult_factor = 0.67
  25. arch_params.width_mult_factor = 0.75
  26. arch_params.yolo_type = 'yoloX'
  27. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  28. class YoloX_L(YoloBase):
  29. def __init__(self, arch_params: HpmStruct):
  30. arch_params.depth_mult_factor = 1.0
  31. arch_params.width_mult_factor = 1.0
  32. arch_params.yolo_type = 'yoloX'
  33. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  34. class YoloX_X(YoloBase):
  35. def __init__(self, arch_params: HpmStruct):
  36. arch_params.depth_mult_factor = 1.33
  37. arch_params.width_mult_factor = 1.25
  38. arch_params.yolo_type = 'yoloX'
  39. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  40. class CustomYoloX(YoloBase):
  41. def __init__(self, arch_params: HpmStruct):
  42. arch_params.yolo_type = 'yoloX'
  43. super().__init__(backbone=arch_params.backbone, arch_params=arch_params)
Discard
Tip!

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