Instructions to use OmniGen2/OmniGen2-EditScore7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OmniGen2/OmniGen2-EditScore7B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OmniGen2/OmniGen2-EditScore7B", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Improve model card for EditScore: Add comprehensive details and usage
#1
by nielsr HF Staff - opened
This PR updates the model card to accurately reflect the EditScore model, which is a state-of-the-art reward model for instruction-guided image editing, as presented in the paper "EditScore: Unlocking Online RL for Image Editing via High-Fidelity Reward Modeling".
Key changes include:
- Updated Metadata: Added
pipeline_tag: image-to-image,library_name: transformers(due to the use of a Transformers-compatible backbone model like Qwen-VL-2.5), and relevanttags(reward-model,image-editing) to enhance discoverability and proper integration with the Hugging Face ecosystem. - Comprehensive Content: Replaced the previous
OmniGen2-focused content with detailed information aboutEditScore, including its abstract, key highlights, links to the paper, project page, and GitHub repository, a clear Python usage example, and citation information, all sourced from the officialEditScoreGitHub repository. - Visuals: Incorporated relevant images from the
EditScorerepository to illustrate its capabilities and benchmark results.
This update ensures the model card accurately describes EditScore and provides users with essential information for its understanding and use.