Image-to-Image
Diffusers
StableDiffusionImageVariationPipeline
stable-diffusion
stable-diffusion-diffusers
Instructions to use lambda/sd-image-variations-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lambda/sd-image-variations-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("lambda/sd-image-variations-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
Download image_encoder/model.safetensors from lambda/sd-image-variations-diffusers: direct link, hf CLI and curl.
- Browser
- Download file 1.22 GB
-
https://huggingface.co/lambda/sd-image-variations-diffusers/resolve/refs%2Fpr%2F20/image_encoder/model.safetensors
- Command line
-
hf download hf://lambda/sd-image-variations-diffusers@refs/pr/20/image_encoder/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/lambda/sd-image-variations-diffusers/resolve/refs%2Fpr%2F20/image_encoder/model.safetensors
1.22 GB
- Xet hash:
- 3192fe2aec0767f2d8815370d474986a4bfc5d37586b6c1300d0ca1ae023cff7
- Size of remote file:
- 1.22 GB
- SHA256:
- e58ac58ff5110a60ce6a3ce28f89dc94dfb74ed88dd8a95fb72c7e3e80f2f780
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.