Spaces:
Running
on
Zero
Running
on
Zero
Update mask_adapter/modeling/meta_arch/mask_adapter_head.py
Browse files
mask_adapter/modeling/meta_arch/mask_adapter_head.py
CHANGED
@@ -86,7 +86,7 @@ class MASKAdapterHead(nn.Module):
|
|
86 |
clip_feature = repeat(clip_feature, "B C H W -> (B N) C H W", N=N)
|
87 |
|
88 |
H,W = clip_feature.shape[-2:]
|
89 |
-
masks = F.interpolate(masks
|
90 |
mode='bilinear', align_corners=False)
|
91 |
masks = self.mask_downscaling(masks)
|
92 |
|
|
|
86 |
clip_feature = repeat(clip_feature, "B C H W -> (B N) C H W", N=N)
|
87 |
|
88 |
H,W = clip_feature.shape[-2:]
|
89 |
+
masks = F.interpolate(masks, size=(H*4,W*4),
|
90 |
mode='bilinear', align_corners=False)
|
91 |
masks = self.mask_downscaling(masks)
|
92 |
|