File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 55import torch .nn as nn
66import torch .nn .functional as F
77from mmcv .cnn import build_norm_layer , trunc_normal_init
8- from mmcv .cnn .bricks .registry import ATTENTION
98from mmcv .cnn .bricks .transformer import FFN , build_dropout
109from mmcv .cnn .utils .weight_init import constant_init
1110from mmcv .runner import _load_checkpoint
1514from torch .nn .modules .utils import _pair as to_2tuple
1615
1716from ...utils import get_root_logger
18- from ..builder import BACKBONES
17+ from ..builder import ATTENTION , BACKBONES
1918from ..utils import PatchEmbed , swin_convert
2019
2120
Original file line number Diff line number Diff line change 11import warnings
22
33from mmcv .cnn import MODELS as MMCV_MODELS
4+ from mmcv .cnn .bricks .registry import ATTENTION as MMCV_ATTENTION
45from mmcv .utils import Registry
56
67MODELS = Registry ('models' , parent = MMCV_MODELS )
8+ ATTENTION = Registry ('attention' , parent = MMCV_ATTENTION )
79
810BACKBONES = MODELS
911NECKS = MODELS
You can’t perform that action at this time.
0 commit comments