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

#868 Draw fix

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:hotfix/SG-000-fix_draw
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
  1. from super_gradients.modules.anti_alias import AntiAliasDownsample
  2. from super_gradients.modules.pixel_shuffle import PixelShuffle
  3. from super_gradients.modules.pose_estimation_modules import LightweightDEKRHead
  4. from super_gradients.modules.conv_bn_act_block import ConvBNAct, Conv
  5. from super_gradients.modules.conv_bn_relu_block import ConvBNReLU
  6. from super_gradients.modules.repvgg_block import RepVGGBlock
  7. from super_gradients.modules.qarepvgg_block import QARepVGGBlock
  8. from super_gradients.modules.se_blocks import SEBlock, EffectiveSEBlock
  9. from super_gradients.modules.skip_connections import (
  10. Residual,
  11. SkipConnection,
  12. CrossModelSkipConnection,
  13. BackboneInternalSkipConnection,
  14. HeadInternalSkipConnection,
  15. )
  16. from super_gradients.common.abstractions.abstract_logger import get_logger
  17. from super_gradients.common.registry.registry import ALL_DETECTION_MODULES
  18. __all__ = [
  19. "ALL_DETECTION_MODULES",
  20. "PixelShuffle",
  21. "AntiAliasDownsample",
  22. "Conv",
  23. "ConvBNAct",
  24. "ConvBNReLU",
  25. "RepVGGBlock",
  26. "QARepVGGBlock",
  27. "SEBlock",
  28. "EffectiveSEBlock",
  29. "Residual",
  30. "SkipConnection",
  31. "CrossModelSkipConnection",
  32. "BackboneInternalSkipConnection",
  33. "HeadInternalSkipConnection",
  34. "LightweightDEKRHead",
  35. ]
  36. logger = get_logger(__name__)
  37. try:
  38. # flake8 respects only the first occurence of __all__ defined in the module's root
  39. from .quantization import QuantBottleneck # noqa: F401
  40. from .quantization import QuantResidual # noqa: F401
  41. from .quantization import QuantSkipConnection # noqa: F401
  42. from .quantization import QuantCrossModelSkipConnection # noqa: F401
  43. from .quantization import QuantBackboneInternalSkipConnection # noqa: F401
  44. from .quantization import QuantHeadInternalSkipConnection # noqa: F401
  45. from .quantization import QuantSTDCBlock # noqa: F401
  46. from .quantization import QuantAttentionRefinementModule # noqa: F401
  47. from .quantization import QuantFeatureFusionModule # noqa: F401
  48. from .quantization import QuantContextPath # noqa: F401
  49. quant_extensions = [
  50. "QuantBottleneck",
  51. "QuantResidual",
  52. "QuantSkipConnection",
  53. "QuantCrossModelSkipConnection",
  54. "QuantBackboneInternalSkipConnection",
  55. "QuantHeadInternalSkipConnection",
  56. "QuantSTDCBlock",
  57. "QuantAttentionRefinementModule",
  58. "QuantFeatureFusionModule",
  59. "QuantContextPath",
  60. ]
  61. except (ImportError, NameError, ModuleNotFoundError) as import_err:
  62. logger.debug(f"Failed to import pytorch_quantization: {import_err}")
  63. quant_extensions = None
  64. if quant_extensions is not None:
  65. __all__.extend(quant_extensions)
Discard
Tip!

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