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

#875 Feature/sg 761 yolo nas

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-761-yolo-nas
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
  1. from super_gradients.common.registry.registry import register_model
  2. from super_gradients.common.object_names import Models
  3. from super_gradients.training.models.detection_models.yolo_base import YoloBase, YoloDarknetBackbone
  4. from super_gradients.training.utils.utils import HpmStruct
  5. @register_model(Models.YOLOX_N)
  6. class YoloX_N(YoloBase):
  7. def __init__(self, arch_params: HpmStruct):
  8. arch_params.depth_mult_factor = 0.33
  9. arch_params.width_mult_factor = 0.25
  10. arch_params.yolo_type = "yoloX"
  11. arch_params.depthwise = True
  12. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  13. @register_model(Models.YOLOX_T)
  14. class YoloX_T(YoloBase):
  15. def __init__(self, arch_params: HpmStruct):
  16. arch_params.depth_mult_factor = 0.33
  17. arch_params.width_mult_factor = 0.375
  18. arch_params.yolo_type = "yoloX"
  19. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  20. @register_model(Models.YOLOX_S)
  21. class YoloX_S(YoloBase):
  22. def __init__(self, arch_params: HpmStruct):
  23. arch_params.depth_mult_factor = 0.33
  24. arch_params.width_mult_factor = 0.50
  25. arch_params.yolo_type = "yoloX"
  26. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  27. @register_model(Models.YOLOX_M)
  28. class YoloX_M(YoloBase):
  29. def __init__(self, arch_params: HpmStruct):
  30. arch_params.depth_mult_factor = 0.67
  31. arch_params.width_mult_factor = 0.75
  32. arch_params.yolo_type = "yoloX"
  33. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  34. @register_model(Models.YOLOX_L)
  35. class YoloX_L(YoloBase):
  36. def __init__(self, arch_params: HpmStruct):
  37. arch_params.depth_mult_factor = 1.0
  38. arch_params.width_mult_factor = 1.0
  39. arch_params.yolo_type = "yoloX"
  40. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  41. @register_model(Models.YOLOX_X)
  42. class YoloX_X(YoloBase):
  43. def __init__(self, arch_params: HpmStruct):
  44. arch_params.depth_mult_factor = 1.33
  45. arch_params.width_mult_factor = 1.25
  46. arch_params.yolo_type = "yoloX"
  47. super().__init__(backbone=YoloDarknetBackbone, arch_params=arch_params)
  48. @register_model(Models.CUSTOM_YOLO_X)
  49. class CustomYoloX(YoloBase):
  50. def __init__(self, arch_params: HpmStruct):
  51. arch_params.yolo_type = "yoloX"
  52. 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