from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
import torch
model_id = "valhalla/mad_max_diffusion-sd2"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
pipe.enable_attention_slicing()
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
prompt = "The streets of Paris with eiffel tower in the background in the style of mad_max_fr"
image = pipe(prompt, num_inference_steps=30).images[0]
image.save("./paris-mad-max-fr.png")
Runs of valhalla mad_max_diffusion-sd2 on huggingface.co
9
Total runs
1
24-hour runs
2
3-day runs
3
7-day runs
-2
30-day runs
More Information About mad_max_diffusion-sd2 huggingface.co Model
mad_max_diffusion-sd2 huggingface.co is an AI model on huggingface.co that provides mad_max_diffusion-sd2's model effect (), which can be used instantly with this valhalla mad_max_diffusion-sd2 model. huggingface.co supports a free trial of the mad_max_diffusion-sd2 model, and also provides paid use of the mad_max_diffusion-sd2. Support call mad_max_diffusion-sd2 model through api, including Node.js, Python, http.
mad_max_diffusion-sd2 huggingface.co is an online trial and call api platform, which integrates mad_max_diffusion-sd2's modeling effects, including api services, and provides a free online trial of mad_max_diffusion-sd2, you can try mad_max_diffusion-sd2 online for free by clicking the link below.
valhalla mad_max_diffusion-sd2 online free url in huggingface.co:
mad_max_diffusion-sd2 is an open source model from GitHub that offers a free installation service, and any user can find mad_max_diffusion-sd2 on GitHub to install. At the same time, huggingface.co provides the effect of mad_max_diffusion-sd2 install, users can directly use mad_max_diffusion-sd2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mad_max_diffusion-sd2 install url in huggingface.co: