Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Sep 12, 2024
1 parent 034e8f4 commit 861d394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, model_name: str, min_score: float = 0.7, **model_kwargs: Any)

def _load(self) -> ModelSession:
session = self._make_session(self.model_path)
if self.batch and session.get_inputs()[0].shape[0] != "batch":
if self.batch and str(session.get_inputs()[0].shape[0]) != "batch":
self._add_batch_axis(self.model_path)
session = self._make_session(self.model_path)
self.model = ArcFaceONNX(
Expand Down

0 comments on commit 861d394

Please sign in to comment.