Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
nijkah committed Jun 14, 2023
1 parent f749743 commit 7d32b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmdet/models/layers/transformer/hybrid_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
try:
from mmpretrain.models.backbones.repvgg import RepVGGBlock as _RepVGGBlock
except ImportError:
RepVGGBlock = None
_RepVGGBlock = None


class RepVGGBlock(_RepVGGBlock):
Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(self,
norm_cfg: OptConfigType = dict(type='BN', requires_grad=True),
act_cfg: OptConfigType = dict(type='SiLU', inplace=True)):
super(CSPRepLayer, self).__init__()
assert RepVGGBlock is not None, (
assert _RepVGGBlock is not None, (
'Please install mmpretrain to use CSPRepLayer')
hidden_channels = int(out_channels * expansion)
self.conv1 = ConvModule(
Expand Down

0 comments on commit 7d32b9a

Please sign in to comment.