Views
No views yet

1from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
2import torch
3model_id = "valhalla/mad_max_diffusion-sd2"
4pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
5pipe.enable_attention_slicing()
6pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
7
8prompt = "The streets of Paris with eiffel tower in the background in the style of mad_max_fr"
9image = pipe(prompt, num_inference_steps=30).images[0]
10image.save("./paris-mad-max-fr.png")