Replies: 1 comment
-
Hi @rohitgr7, @ekurtulus! It seems unclear 🤔: import torch
from diffusers import StableCascadeCombinedPipeline
from diffusers.utils import load_image, make_image_grid
pipeline = StableCascadeCombinedPipeline.from_pretrained(
"stabilityai/stable-cascade", torch_dtype=torch.bfloat16, variant='bf16')
pipeline.enable_model_cpu_offload()
init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
).resize((512, 512))
prompt = "cat wizard, gandalf, lord of the rings, detailed, fantasy, cute, adorable, Pixar, Disney, 8k"
image = pipeline(prompt, images=[init_image], generator=torch.Generator('cpu').manual_seed(0)).images[0]
make_image_grid([init_image, image], rows=1, cols=2) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any example of Image2Image diffusers pipeline with a prompt using stable cascade?
Beta Was this translation helpful? Give feedback.
All reactions