Skip to content

Commit

Permalink
remove redundant statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dnth committed Jan 28, 2022
1 parent f3e641a commit 67ad629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icevision/models/mmdet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def param_groups(model):
layers += [model.bbox_head]

# YOLACT has mask_head and segm_head
if getattr(model, "mask_head", False):
if getattr(model, "mask_head"):
layers += [model.mask_head]
if getattr(model, "segm_head", False):
if getattr(model, "segm_head"):
layers += [model.segm_head]

elif isinstance(model, TwoStageDetector):
Expand Down

0 comments on commit 67ad629

Please sign in to comment.