Views
No views yet
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
1import torch
2from diffusers import DiffusionPipeline
3
4pipe = DiffusionPipeline.from_pretrained(
5 'kamillaova/epiCRealism',
6 torch_dtype=torch.float16
7).to('cuda')
8
9img = pipe(
10 prompt='positive prompt',
11 negative_prompt='negative prompt',
12
13 guidance_scale=5.0,
14 num_inference_steps=50,
15 width=512, height=768,
16).images[0]
17
18img.save('image.png')