Skip to content

Commit

Permalink
Fix the bug: 'Upsample' object has no attribute 'weight' (open-mmlab#…
Browse files Browse the repository at this point in the history
  • Loading branch information
boyden authored Oct 27, 2021
1 parent 4c563a0 commit 2cd24a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def init_weights(self):
continue
elif isinstance(m, CARAFEPack):
m.init_weights()
else:
elif hasattr(m, 'weight') and hasattr(m, 'bias'):
nn.init.kaiming_normal_(
m.weight, mode='fan_out', nonlinearity='relu')
nn.init.constant_(m.bias, 0)
Expand Down

0 comments on commit 2cd24a2

Please sign in to comment.