EditScore-7B

Mirror of EditScore-7B, a LoRA adapter on Qwen2.5-VL-7B-Instruct that scores instruction-guided image edits.

What it is for

The repo holds the PEFT LoRA adapter (adapter_model.safetensors, adapter_config.json) and the card images from upstream. EditScore is a reward model for instruction-guided image editing. It takes an input image, an edited output image and the edit instruction, and returns a quality score. Use it to rerank candidate edits (best-of-N selection) or as a reward signal for reinforcement learning on image editing models.

Provenance

Use

from PIL import Image
from editscore import EditScore

scorer = EditScore(
    backbone="qwen25vl",
    model_name_or_path="Qwen/Qwen2.5-VL-7B-Instruct",
    enable_lora=True,
    lora_path="chibifire/EditScore-7B",
    score_range=25,
    num_pass=1,
)
result = scorer.evaluate([Image.open("input.png"), Image.open("output.png")],
                         "Adjust the background to a glass wall.")
print(result["final_score"])

The editscore package comes from the upstream code repo. See upstream's card for setup and full usage.

Licence

Apache 2.0, the licence of the EditScore code repo. Terms: LICENSE.

Downloads last month
24
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for chibifire/EditScore-7B

Adapter
(367)
this model

Paper for chibifire/EditScore-7B