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]
In the example script on the main model card "v2.0" is referenced however v2.0 is not a valid branch of this model at this time.
Example Script (Snippet):
Available Revisions (As of 12/11/2022):
Please update the example script to pull from main or add v2.0 as a valid branch to this model.
Oop, should be fixed now!
· Sign up or log in to comment