Instructions to use FireRedTeam/FireRed-Image-Edit-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FireRedTeam/FireRed-Image-Edit-1.0 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("FireRedTeam/FireRed-Image-Edit-1.0", 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] - Inference
- Notebooks
- Google Colab
- Kaggle
FireRedTeam commited on
fix: inference parameters
Browse files
README.md
CHANGED
|
@@ -99,7 +99,7 @@ pip install git+https://github.com/huggingface/diffusers
|
|
| 99 |
2. Use the following code snippets to generate or edit images.
|
| 100 |
```
|
| 101 |
python inference.py \
|
| 102 |
-
--input_image ./
|
| 103 |
--prompt "在书本封面Python的下方,添加一行英文文字2nd Edition" \
|
| 104 |
--output_image output_edit.png \
|
| 105 |
--seed 43
|
|
|
|
| 99 |
2. Use the following code snippets to generate or edit images.
|
| 100 |
```
|
| 101 |
python inference.py \
|
| 102 |
+
--input_image ./examples/edit_example.png \
|
| 103 |
--prompt "在书本封面Python的下方,添加一行英文文字2nd Edition" \
|
| 104 |
--output_image output_edit.png \
|
| 105 |
--seed 43
|