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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -15,6 +15,7 @@ license: apache-2.0
|
|
| 15 |
Prepare the environment, install the required libraries:
|
| 16 |
|
| 17 |
```shell
|
|
|
|
| 18 |
$ cd X2Edit
|
| 19 |
$ conda create --name X2Edit python==3.11
|
| 20 |
$ conda activate X2Edit
|
|
|
|
| 15 |
Prepare the environment, install the required libraries:
|
| 16 |
|
| 17 |
```shell
|
| 18 |
+
$ git clone https://github.com/OPPO-Mente-Lab/X2Edit.git
|
| 19 |
$ cd X2Edit
|
| 20 |
$ conda create --name X2Edit python==3.11
|
| 21 |
$ conda activate X2Edit
|