Image-to-Image
Diffusers
StableDiffusionImageVariationPipeline
stable-diffusion
stable-diffusion-diffusers
Run this model with HF Jobs
Run lambda/sd-image-variations-diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/lambda/sd-image-variations-diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/lambda/sd-image-variations-diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Adding `safetensors` variant of this model
#20
by SFconvertbot - opened
Files changed (5)
29 unmodified lines3031323334353629 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsafety_checker/model.safetensors filter=lfs diff=lfs merge=lfs -textunet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -textvae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -textimage_encoder/model.safetensors filter=lfs diff=lfs merge=lfs -text123version https://git-lfs.github.com/spec/v1oid sha256:e58ac58ff5110a60ce6a3ce28f89dc94dfb74ed88dd8a95fb72c7e3e80f2f780size 1215914880123version https://git-lfs.github.com/spec/v1oid sha256:11cfe53105625af8c00faac32a430626641cce686454f3c39d837f14397d858bsize 1215981832123version https://git-lfs.github.com/spec/v1oid sha256:766d45545c85aa9ff0b7313897786e68532901a14cea7a3ec3bffcf731b36662size 3438167536123version https://git-lfs.github.com/spec/v1oid sha256:a1d993488569e928462932c8c38a0760b874d166399b14414135bd9c42df5815size 334643276.gitattributes+4
image_encoder/model.safetensorsAdded+3
safety_checker/model.safetensorsAdded+3
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/diffusion_pytorch_model.safetensorsAdded+3