Instructions to use stepfun-ai/Step1X-Edit-v1p1-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stepfun-ai/Step1X-Edit-v1p1-diffusers 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-v1p1-diffusers", 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 transformer/config.json (#2)
Browse files- Update transformer/config.json (0a6ed1aba4ac78192243478e3f0735491630c67a)
Co-authored-by: Pengtao Chen <PengtaoChen@users.noreply.huggingface.co>
- transformer/config.json +0 -1
transformer/config.json
CHANGED
|
@@ -11,7 +11,6 @@
|
|
| 11 |
"connector_heads_num": 32,
|
| 12 |
"connector_hidden_size": 4096,
|
| 13 |
"connector_in_channels": 3584,
|
| 14 |
-
"connector_need_CA": false,
|
| 15 |
"guidance_embeds": false,
|
| 16 |
"in_channels": 64,
|
| 17 |
"joint_attention_dim": 4096,
|
|
|
|
| 11 |
"connector_heads_num": 32,
|
| 12 |
"connector_hidden_size": 4096,
|
| 13 |
"connector_in_channels": 3584,
|
|
|
|
| 14 |
"guidance_embeds": false,
|
| 15 |
"in_channels": 64,
|
| 16 |
"joint_attention_dim": 4096,
|