Skip to content

Commit

Permalink
fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
LashaO committed Jun 13, 2024
1 parent 5b2322a commit d920cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wbia/algo/detect/efficientnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, n_class, model_arch='tf_efficientnet_b4_ns', pretrained=False
if n_class is not None:
n_features = self.model.classifier.in_features
self.model.classifier = nn.Linear(n_features, n_class)

else:
self.model.classifier = nn.Identity(n_features, n_class)
'''
Expand All @@ -179,7 +179,7 @@ def __init__(self, n_class, model_arch='tf_efficientnet_b4_ns', pretrained=False
nn.Linear(n_features, n_class, bias=True)
)
'''

def process_row(self, row_labels, preds, sort_weights, labels):
multi_labels = labels[row_labels.astype(bool)]
preds = preds[row_labels.astype(bool)]
Expand Down

0 comments on commit d920cce

Please sign in to comment.