Skip to content

Commit

Permalink
Reformat with black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Alias-z committed Jun 4, 2024
1 parent 9c8aff5 commit 9f26c66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sahi/models/mmdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def has_mask(self):
Returns if model output contains segmentation mask
"""
# has_mask = self.model.model.with_mask
train_pipeline = self.model.cfg["train_dataloader"]['dataset']['pipeline']
has_mask = any(isinstance(item, dict) and any('mask' in key for key in item.keys()) for item in train_pipeline)
train_pipeline = self.model.cfg["train_dataloader"]["dataset"]["pipeline"]
has_mask = any(isinstance(item, dict) and any("mask" in key for key in item.keys()) for item in train_pipeline)
return has_mask

@property
Expand Down

0 comments on commit 9f26c66

Please sign in to comment.