__init__.py 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from .activations import SiLU
  3. from .bbox_nms import fast_nms, multiclass_nms
  4. from .brick_wrappers import AdaptiveAvgPool2d, adaptive_avg_pool2d
  5. from .conv_upsample import ConvUpsample
  6. from .csp_layer import CSPLayer
  7. from .dropblock import DropBlock
  8. from .ema import ExpMomentumEMA
  9. from .inverted_residual import InvertedResidual
  10. from .matrix_nms import mask_matrix_nms
  11. from .msdeformattn_pixel_decoder import MSDeformAttnPixelDecoder
  12. from .normed_predictor import NormedConv2d, NormedLinear
  13. from .pixel_decoder import PixelDecoder, TransformerEncoderPixelDecoder
  14. from .positional_encoding import (LearnedPositionalEncoding,
  15. SinePositionalEncoding)
  16. from .res_layer import ResLayer, SimplifiedBasicBlock
  17. from .se_layer import ChannelAttention, DyReLU, SELayer
  18. # yapf: disable
  19. from .transformer import (MLP, AdaptivePadding, CdnQueryGenerator,
  20. ConditionalAttention,
  21. ConditionalDetrTransformerDecoder,
  22. ConditionalDetrTransformerDecoderLayer,
  23. DABDetrTransformerDecoder,
  24. DABDetrTransformerDecoderLayer,
  25. DABDetrTransformerEncoder,
  26. DeformableDetrTransformerDecoder,
  27. DeformableDetrTransformerDecoderLayer,
  28. DeformableDetrTransformerEncoder,
  29. DeformableDetrTransformerEncoderLayer,
  30. DetrTransformerDecoder, DetrTransformerDecoderLayer,
  31. DetrTransformerEncoder, DetrTransformerEncoderLayer,
  32. DinoTransformerDecoder, DynamicConv,
  33. Mask2FormerTransformerDecoder,
  34. Mask2FormerTransformerDecoderLayer,
  35. Mask2FormerTransformerEncoder, PatchEmbed,
  36. PatchMerging, coordinate_to_encoding,
  37. inverse_sigmoid, nchw_to_nlc, nlc_to_nchw)
  38. # yapf: enable
  39. __all__ = [
  40. 'fast_nms', 'multiclass_nms', 'mask_matrix_nms', 'DropBlock',
  41. 'PixelDecoder', 'TransformerEncoderPixelDecoder',
  42. 'MSDeformAttnPixelDecoder', 'ResLayer', 'PatchMerging',
  43. 'SinePositionalEncoding', 'LearnedPositionalEncoding', 'DynamicConv',
  44. 'SimplifiedBasicBlock', 'NormedLinear', 'NormedConv2d', 'InvertedResidual',
  45. 'SELayer', 'ConvUpsample', 'CSPLayer', 'adaptive_avg_pool2d',
  46. 'AdaptiveAvgPool2d', 'PatchEmbed', 'nchw_to_nlc', 'nlc_to_nchw', 'DyReLU',
  47. 'ExpMomentumEMA', 'inverse_sigmoid', 'ChannelAttention', 'SiLU', 'MLP',
  48. 'DetrTransformerEncoderLayer', 'DetrTransformerDecoderLayer',
  49. 'DetrTransformerEncoder', 'DetrTransformerDecoder',
  50. 'DeformableDetrTransformerEncoder', 'DeformableDetrTransformerDecoder',
  51. 'DeformableDetrTransformerEncoderLayer',
  52. 'DeformableDetrTransformerDecoderLayer', 'AdaptivePadding',
  53. 'coordinate_to_encoding', 'ConditionalAttention',
  54. 'DABDetrTransformerDecoderLayer', 'DABDetrTransformerDecoder',
  55. 'DABDetrTransformerEncoder', 'ConditionalDetrTransformerDecoder',
  56. 'ConditionalDetrTransformerDecoderLayer', 'DinoTransformerDecoder',
  57. 'CdnQueryGenerator', 'Mask2FormerTransformerEncoder',
  58. 'Mask2FormerTransformerDecoderLayer', 'Mask2FormerTransformerDecoder'
  59. ]