Instructions to use peter-sushko/RealEdit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use peter-sushko/RealEdit 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("peter-sushko/RealEdit", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -80,12 +80,6 @@ python edit_cli.py \
|
|
| 80 |
--ckpt checkpoints/realedit_model.ckpt
|
| 81 |
```
|
| 82 |
|
| 83 |
-
Launch the Gradio interface
|
| 84 |
-
|
| 85 |
-
```bash
|
| 86 |
-
python edit_app.py --ckpt checkpoints/realedit_model.ckpt
|
| 87 |
-
```
|
| 88 |
-
|
| 89 |
## Citation
|
| 90 |
|
| 91 |
If you find this checkpoint helpful, please cite:
|
|
|
|
| 80 |
--ckpt checkpoints/realedit_model.ckpt
|
| 81 |
```
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
## Citation
|
| 84 |
|
| 85 |
If you find this checkpoint helpful, please cite:
|