Instructions to use OPPOer/X2Edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OPPOer/X2Edit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OPPOer/X2Edit", 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: Add pipeline tag, library name, and abstract
#4
by nielsr HF Staff - opened
This PR improves the model card by:
- Adding
pipeline_tag: image-to-image, ensuring the model appears in relevant search filters on the Hugging Face Hub (https://huggingface.co/models?pipeline_tag=image-to-image). - Specifying
library_name: diffusers, which is indicated as the primary library used by the project. - Including the paper abstract for a more comprehensive overview of the model.