Instructions to use glowforge-dev/stable-diffusion-2-1-img2img-jonathan2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use glowforge-dev/stable-diffusion-2-1-img2img-jonathan2 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("glowforge-dev/stable-diffusion-2-1-img2img-jonathan2", 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
Commit History
-
get the params right
ca68472 -
fix strength field
bd75f67 -
adjust loggers
6386b50 -
add parameters
c79fe71 -
add strength parameter
8dbd200 -
remove height width
103d66b -
remove height width
64362a8 -
manually unpack base64 urls
e86a857 -
manually unpack base64 urls
c6d0824 -
better bytes
081c459 -
fix data_uri
000d5f1 -
make it load data_uris
5f7473f
-
fix prompt input
ccd3af2 -
remove usage of height
7fecf18 -
url correct
ca2f7e7 -
try a thing
f37021f -
load url for image to image pipe
3cba83e -
unbreak it
be4f2db -
break it
f3b3a2f -
what
3424746 -
not implemented
f806422 -
load image correctly
e6af97e -
adust inputs
9b2c38b -
try some more things
f10ea73 -
additional parameters
7205d00 -
add additional parameters
20b727c -
try adding custom handler
e4d55ce -
image to image interface
6c599c3 -
Duplicate from stabilityai/stable-diffusion-2-1-base
Co-authored-by: Robin Rombach <rromb@users.noreply.huggingface.co>d3a0ec4