humanedit-eval
HumanEdit: A High-Quality Human-Rewarded Dataset for Instruction-based Image Editing — Bai et al. (2024) (arXiv:2412.04280, 2024)
What this evaluates
Evaluates instruction-based image editing models on their ability to modify source images according to textual prompts, with and without provided segmentation masks. It measures pixel-level fidelity, image quality, and text-image alignment across diverse editing categories such as add, remove, replace, action, counting, and relation.
Datasets
- HumanEdit — total 5751; splits: full (5751), core (-1), mask (-1), Add (-1), Action (-1), Counting (-1), Remove (-1), Relation (-1), Replace (-1)
Metrics
L1 — range: other
- Mean absolute pixel difference between the generated image and the ground truth image. Lower values indicate better pixel-level fidelity.
L2 — range: other
- Mean squared pixel difference between the generated image and the ground truth image. Lower values indicate better pixel-level fidelity.
CLIP-I — range: [0, 1]
- Cosine similarity between CLIP embeddings of the generated image and the ground truth image. Higher values indicate better image quality and visual consistency.
DINO — range: [0, 1]
- Cosine similarity between DINO embeddings of the generated image and the ground truth image. Higher values indicate better semantic-level image quality.
CLIP-T (primary) — range: [0, 1]
- Cosine similarity between CLIP embeddings of the local text description and the generated image. Higher values indicate better text-image alignment.
Input / output format
Input: Source image, textual editing instruction, and optionally a binary mask indicating the region to edit.
Output: Edited image matching the ground truth.
Scoring recipe
def compute_metrics(pred_img, gt_img, gt_text):
l1 = np.mean(np.abs(pred_img - gt_img))
l2 = np.mean((pred_img - gt_img) ** 2)
clip_i = cosine_similarity(clip.encode(pred_img), clip.encode(gt_img))
dino = cosine_similarity(dino.encode(pred_img), dino.encode(gt_img))
clip_t = cosine_similarity(clip.encode(gt_text), clip.encode(pred_img))
return {'L1': l1, 'L2': l2, 'CLIP-I': clip_i, 'DINO': dino, 'CLIP-T': clip_t}
Common pitfalls
- Comparisons between methods may be unfair due to differences in implementation and fine-tuning procedures.
- Pixel-level metrics (L1/L2) and semantic-level metrics (CLIP-I/DINO) can yield conflicting rankings, requiring careful interpretation.
- Mask-free and mask-provided settings operate under different constraints and should not be directly compared.
Evidence (verbatim from paper)
Follow the similar settings from previous works, we utilize L1 and L2 to measure the average pixel-level absolute difference between the generated image and ground truth image, and CLIP-I and DINO to measure the image quality with the cosine similarity between the generated image and reference ground truth image using their CLIP and DINO embeddings, and CLIP-T to measure the text-image alignment with the cosine similarity between local descriptions and generated images CLIP embeddings.
Citation
@misc{bai2024humanedit,
title={HumanEdit: A High-Quality Human-Rewarded Dataset for Instruction-based Image Editing},
author={Bai et al. (2024)},
year={2024},
note={arXiv:2412.04280}
}
1---2name: humanedit-eval3description: Evaluates instruction-based image editing models on their ability to modify source images according to textual prompts, with and without provided segmentation masks. It measures pixel-level fidelity, image quality, and text-image alignment across diverse editing categories such as add, remove, replace, action, counting, and relation. Use when the user wants to benchmark on HumanEdit, or asks about evaluating this task. Reports CLIP-T.4---56# humanedit-eval78> HumanEdit: A High-Quality Human-Rewarded Dataset for Instruction-based Image Editing — Bai et al. (2024) (arXiv:2412.04280, 2024)910## What this evaluates1112Evaluates instruction-based image editing models on their ability to modify source images according to textual prompts, with and without provided segmentation masks. It measures pixel-level fidelity, image quality, and text-image alignment across diverse editing categories such as add, remove, replace, action, counting, and relation.1314## Datasets1516- **HumanEdit** — total 5751; splits: full (5751), core (-1), mask (-1), Add (-1), Action (-1), Counting (-1), Remove (-1), Relation (-1), Replace (-1)1718## Metrics1920- `L1` — range: other21 - Mean absolute pixel difference between the generated image and the ground truth image. Lower values indicate better pixel-level fidelity.22- `L2` — range: other23 - Mean squared pixel difference between the generated image and the ground truth image. Lower values indicate better pixel-level fidelity.24- `CLIP-I` — range: [0, 1]25 - Cosine similarity between CLIP embeddings of the generated image and the ground truth image. Higher values indicate better image quality and visual consistency.26- `DINO` — range: [0, 1]27 - Cosine similarity between DINO embeddings of the generated image and the ground truth image. Higher values indicate better semantic-level image quality.28- `CLIP-T` **(primary)** — range: [0, 1]29 - Cosine similarity between CLIP embeddings of the local text description and the generated image. Higher values indicate better text-image alignment.3031## Input / output format3233**Input**: Source image, textual editing instruction, and optionally a binary mask indicating the region to edit.3435**Output**: Edited image matching the ground truth.3637## Scoring recipe3839```python40def compute_metrics(pred_img, gt_img, gt_text):41 l1 = np.mean(np.abs(pred_img - gt_img))42 l2 = np.mean((pred_img - gt_img) ** 2)43 clip_i = cosine_similarity(clip.encode(pred_img), clip.encode(gt_img))44 dino = cosine_similarity(dino.encode(pred_img), dino.encode(gt_img))45 clip_t = cosine_similarity(clip.encode(gt_text), clip.encode(pred_img))46 return {'L1': l1, 'L2': l2, 'CLIP-I': clip_i, 'DINO': dino, 'CLIP-T': clip_t}47```4849## Common pitfalls5051- Comparisons between methods may be unfair due to differences in implementation and fine-tuning procedures.52- Pixel-level metrics (L1/L2) and semantic-level metrics (CLIP-I/DINO) can yield conflicting rankings, requiring careful interpretation.53- Mask-free and mask-provided settings operate under different constraints and should not be directly compared.5455## Evidence (verbatim from paper)5657> Follow the similar settings from previous works, we utilize L1 and L2 to measure the average pixel-level absolute difference between the generated image and ground truth image, and CLIP-I and DINO to measure the image quality with the cosine similarity between the generated image and reference ground truth image using their CLIP and DINO embeddings, and CLIP-T to measure the text-image alignment with the cosine similarity between local descriptions and generated images CLIP embeddings.5859## Citation6061```bibtex62@misc{bai2024humanedit,63 title={HumanEdit: A High-Quality Human-Rewarded Dataset for Instruction-based Image Editing},64 author={Bai et al. (2024)},65 year={2024},66 note={arXiv:2412.04280}67}68```6970- arXiv: 2412.04280