yjh0410 2 年之前
父節點
當前提交
fbaca8b10b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/detectors/lowdet/lowdet_basic.py

+ 1 - 1
models/detectors/lowdet/lowdet_basic.py

@@ -97,7 +97,7 @@ class MultiHeadMixedConv(nn.Module):
         ## Scale Modulation
         self.mixed_convs = nn.ModuleList([
             Conv(self.head_dim, self.head_dim, k=2*i+1, p=i, act_type=None, norm_type=None, depthwise=depthwise)
-            for i in range(num_heads)])
+            for i in range(1, num_heads+1)])
         ## Aggregation proj
         self.out_proj = Conv(self.head_dim*num_heads, out_dim, k=1, act_type=act_type, norm_type=norm_type)