Instructions to use stepfun-ai/Step1X-Edit-v1p2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stepfun-ai/Step1X-Edit-v1p2 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("stepfun-ai/Step1X-Edit-v1p2", 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
Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- assets/ReasonEdit_intro.jpg +3 -0
- assets/logo.png +0 -0
- assets/v1p2_vis.jpg +3 -0
.gitattributes
CHANGED
|
@@ -40,3 +40,5 @@ examples/0001.png filter=lfs diff=lfs merge=lfs -text
|
|
| 40 |
examples/0002.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
examples/0003.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
examples/0004.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 40 |
examples/0002.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
examples/0003.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
examples/0004.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
assets/ReasonEdit_intro.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
assets/v1p2_vis.jpg filter=lfs diff=lfs merge=lfs -text
|
assets/ReasonEdit_intro.jpg
ADDED
|
Git LFS Details
|
assets/logo.png
ADDED
|
assets/v1p2_vis.jpg
ADDED
|
Git LFS Details
|