Views
No views yet
1from diffusers import StableDiffusionXLPipeline
2import torch
3
4# download from https://huggingface.co/cpuimage/mapo-beta/sd_xl_mapo-beta.safetensors
5
6safetensors_file = "sd_xl_mapo-beta.safetensors"
7
8pipeline = StableDiffusionXLPipeline.from_single_file(safetensors_file, torch_dtype=torch.float16).to("cuda")
9
10prompt = "A lion with eagle wings coming out of the sea , digital Art, Greg rutkowski, Trending artstation, cinematographic, hyperrealistic"
11image = pipeline(prompt=prompt, num_inference_steps=30).images[0]