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

- Xet hash:
- 1659821b4ef6e12141432c0f1145cca5c49f93c3a45ff448d6e6ffedbe20e2ce
- Size of remote file:
- 1.52 MB
- SHA256:
- ae0771d2c36a1aa0c1f8943e9d8500ac085c1f2fd54db339b7e5101c66787d15
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.