Update README.md
Browse files
README.md
CHANGED
|
@@ -20,4 +20,34 @@ tags:
|
|
| 20 |
|
| 21 |
## Download FP8
|
| 22 |
|
| 23 |
-
- `FireRed-Image-Edit-1.0 @ FP8` - [Download](https://huggingface.co/prithivMLmods/FireRed-Image-Edit-1.0-FP8/resolve/main/FP8_E4M3FN/FireRed-Image-Edit-1.0-FP8-E4M3FN.safetensors?download=true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## Download FP8
|
| 22 |
|
| 23 |
+
- `FireRed-Image-Edit-1.0 @ FP8` - [Download](https://huggingface.co/prithivMLmods/FireRed-Image-Edit-1.0-FP8/resolve/main/FP8_E4M3FN/FireRed-Image-Edit-1.0-FP8-E4M3FN.safetensors?download=true)
|
| 24 |
+
|
| 25 |
+
## Quick Start with Diffusers 🧨
|
| 26 |
+
|
| 27 |
+
### Install the required packages
|
| 28 |
+
|
| 29 |
+
```py
|
| 30 |
+
transformers # - transformers@v4.57.6
|
| 31 |
+
torch # - torch@v2.9.1+cu128
|
| 32 |
+
diffusers # - diffusers@v0.37.0.dev0
|
| 33 |
+
accelerate # - accelerate@v1.12.0
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## FireRed-Image-Edit-1.0-FP8 [Demo]
|
| 37 |
+
|
| 38 |
+
```py
|
| 39 |
+
import torch
|
| 40 |
+
from diffusers import QwenImageEditPipeline # or your compatible pipeline
|
| 41 |
+
|
| 42 |
+
model_path = "./FireRed-Image-Edit-1.0-FP8"
|
| 43 |
+
|
| 44 |
+
pipe = QwenImageEditPipeline.from_pretrained(
|
| 45 |
+
model_path,
|
| 46 |
+
torch_dtype=torch.bfloat16
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
pipe.to("cuda")
|
| 50 |
+
|
| 51 |
+
# Example usage
|
| 52 |
+
# outputs = pipe(image=input_image, prompt="Your edit prompt")
|
| 53 |
+
```
|