Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent a33d69a commit e6a9ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/multimodal/clip_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _clip_score_update(
source_modality = _detect_modality(source)
target_modality = _detect_modality(target)

source_data = _process_image_data(source) if source_modality == "image" else _process_text_data(source)
source_data = _process_image_data(source) if source_modality == "image" else _process_text_data(source)
target_data = _process_image_data(target) if target_modality == "image" else _process_text_data(target)

# Verify matching lengths
Expand Down

0 comments on commit e6a9ede

Please sign in to comment.