Views
No views yet
diffusers library.1from diffusers import StableDiffusionXLPipeline
2import torch
3
4ckpt_path = "https://huggingface.co/EngineerGL/DreamCoil-PonyXL/blob/main/DreamCoil-PonyXl.safetensors"
5
6pipeline = StableDiffusionXLPipeline.from_single_file(
7 ckpt_path,
8 torch_dtype=torch.float16,
9 use_safetensors=True
10)
11pipeline.to("cuda")
12
13
14prompt = "score_9, score_8_up, score_7_up,source_anime, {YOUR_PROMPT_HERE}"
15
16negative_prompt = "worst quality,bad quality,jpeg artifacts, source_cartoon, 3d, (censor),monochrome,blurry, lowres,watermark, {YOUR_PROMPT_HERE}"
17
18image = pipeline(
19 prompt=prompt,
20 negative_prompt=negative_prompt,
21 width=1024,
22 height=1024,
23 num_inference_steps=30,
24 guidance_scale=7
25).images[0]
26
27image.save("dreamcoil_output.png")