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
Add library_name tag, link to paper and project page
#25
by nielsr HF Staff - opened
12234567891011121314151617181920212216 unmodified lines39404142434445146 unmodified lines19219319418819519619719810 unmodified lines209210211212213214215---thumbnail: "https://repository-images.githubusercontent.com/523487884/fdb03a69-8353-4387-b5fc-0d85f888a63f"datasets:- ChristophSchuhmann/improved_aesthetics_6pluslicense: creativeml-openrail-mlibrary_name: diffuserspipeline_tag: image-to-imagetags:- stable-diffusion- stable-diffusion-diffusers- image-to-imagethumbnail: https://repository-images.githubusercontent.com/523487884/fdb03a69-8353-4387-b5fc-0d85f888a63f---
# Stable Diffusion Image Variations Model Card
Model based on [Aligned Novel View Image and Geometry Synthesis via Cross-modal Attention Instillation](https://huggingface.co/papers/2506.11924)
Project page: https://cvlab-kaist.github.io/MoAI/
📣 V2 model released, and blurriness issues fixed! 📣
🧨🎉 Image Variations is now natively supported in 🤗 Diffusers! 🎉🧨16 unmodified lines```pythonfrom diffusers import StableDiffusionImageVariationPipelinefrom PIL import Imagefrom torchvision import transforms
device = "cuda:0"sd_pipe = StableDiffusionImageVariationPipeline.from_pretrained(146 unmodified linesin this case you need to use an older revision (`2ddbd90b14bc5892c19925b15185e561bc8e5d0a`) in conjunction with the lambda-diffusers repo:
First clone [Lambda Diffusers](https://github.com/LambdaLabsML/lambda-diffusers) and install any requirements (in a virtual environment in the example below):First clone [Lambda Diffusers](https://github.com/LambdaLabsML/lambda-diffusers) and install any requirements (in a virtual environment in the example below):\
```bashgit clone https://github.com/LambdaLabsML/lambda-diffusers.git10 unmodified linesfrom lambda_diffusers import StableDiffusionImageEmbedPipelinefrom PIL import Imageimport torchfrom torchvision import transforms
device = "cuda" if torch.cuda.is_available() else "cpu"pipe = StableDiffusionImageEmbedPipeline.from_pretrained(README.md+10-2