Instructions to use jdopensource/JoyAI-Image-Edit-Plus-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jdopensource/JoyAI-Image-Edit-Plus-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("jdopensource/JoyAI-Image-Edit-Plus-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -29,6 +29,27 @@ Key design:
|
|
| 29 |
- **Variable reference images**: Supports 1–6 reference images per sample via dynamic `shape_list`.
|
| 30 |
- **Norm-guided CFG**: Batch-concatenated classifier-free guidance with norm rescaling in a single forward pass.
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Usage
|
| 33 |
|
| 34 |
```python
|
|
|
|
| 29 |
- **Variable reference images**: Supports 1–6 reference images per sample via dynamic `shape_list`.
|
| 30 |
- **Norm-guided CFG**: Batch-concatenated classifier-free guidance with norm rescaling in a single forward pass.
|
| 31 |
|
| 32 |
+
## Installation
|
| 33 |
+
|
| 34 |
+
`JoyImageEditPlusPipeline` has not yet been merged into the official diffusers release. Before it is available in a stable version, you need to install diffusers from the PR branch:
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
pip install git+https://github.com/tangyanf/diffusers.git@add-joyimage-edit-plus
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
If you have already installed diffusers, make sure to uninstall it first:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
pip uninstall diffusers -y
|
| 44 |
+
pip install git+https://github.com/tangyanf/diffusers.git@add-joyimage-edit-plus
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
Once the PR is merged into the official diffusers repository, you can switch back to the standard installation:
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
pip install diffusers --upgrade
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
## Usage
|
| 54 |
|
| 55 |
```python
|