huggan/wikiart
Viewer • Updated • 11.3k • 8.81k • 222
How to use Sasikanth/Stable-Diffusion-v1-4-wikiart-clone with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Sasikanth/Stable-Diffusion-v1-4-wikiart-clone", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]This model is a fine-tuned version of the Stable Diffusion v1.4 model on the WikiArt dataset.
It can generate images in various artistic styles learned from WikiArt.
Below is an example image generated using the prompt: A painting of the Eiffel Tower in the style of Eric Fischl.
Use Model code:
from diffusers import StableDiffusionPipeline
import torch
model_id = "potatopizza/Stable-Diffusion-v1-4-wikiart"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16
).to("cuda")
prompt = "A beautiful painting of a sunset over the mountains, in the style of eric fischl"
image = pipe(prompt).images[0]
image.save("example.png")
Base model
CompVis/stable-diffusion-v1-4