Skip to content

Commit

Permalink
fix small CLIP issue matching correct label (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekwiz authored Dec 3, 2023
1 parent cd46aeb commit d5fa70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcaptcha_challenger/components/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def match_datalake(modelhub: ModelHub, label: str) -> DataLake:

# prelude clip_candidates
for ket in reversed(modelhub.clip_candidates.keys()):
if label in ket:
if ket in label:
candidates = modelhub.clip_candidates[ket]
if candidates and len(candidates) > 2:
dl = DataLake.from_binary_labels(candidates[:1], candidates[1:])
Expand Down

0 comments on commit d5fa70a

Please sign in to comment.