Skip to content

Comments

feat(evaluation): add ImageRewardMetric#548

Open
davidberenstein1957 wants to merge 8 commits intomainfrom
feat/metric-image_reward
Open

feat(evaluation): add ImageRewardMetric#548
davidberenstein1957 wants to merge 8 commits intomainfrom
feat/metric-image_reward

Conversation

@davidberenstein1957
Copy link
Member

Add ImageRewardMetric for evaluating image-text alignment using ImageReward library.

davidberenstein1957 and others added 7 commits February 21, 2026 06:18
- Create metric_image_reward.py using ImageReward library
- Add ImageReward to evaluation dependencies
- Register ImageRewardMetric in __init__.py
…ll hint

- Remove image-reward from evaluation optional (build fails: pkg_resources)
- Metric uses lazy import; works when user installs image-reward manually
- Fix install hint: pip install image-reward (correct PyPI package name)

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment on lines +17 to +19
# Skip metrics modules that use different docstring patterns
if "metrics" in file and ("metric_hps" in file or "metric_image_reward" in file):
pytest.skip("metrics modules use custom parameter documentation")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Skip metrics modules that use different docstring patterns
if "metrics" in file and ("metric_hps" in file or "metric_image_reward" in file):
pytest.skip("metrics modules use custom parameter documentation")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant