peterholdsworth/AND
Viewer • Updated • 1 • 19
How to use peterholdsworth/output2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("peterholdsworth/output2", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("peterholdsworth/output2", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]This pipeline was finetuned from CompVis/stable-diffusion-v1-2 on the peterholdsworth/AND dataset. Below are some example images generated with the finetuned pipeline using the following prompts: ['Please draw a mug with an ANDlogo logo']:
You can use the pipeline like so:
from diffusers import DiffusionPipeline
import torch
pipeline = DiffusionPipeline.from_pretrained("peterholdsworth/output2", torch_dtype=torch.float16)
prompt = "Please draw a mug with an ANDlogo logo"
image = pipeline(prompt).images[0]
image.save("my_image.png")
These are the key hyperparameters used during training:
Base model
CompVis/stable-diffusion-v1-2