English
art
Stable Diffusion
File size: 411 Bytes
806e745
 
5e81e3a
0b8d882
806e745
 
 
5e81e3a
0b8d882
75c208c
0b8d882
806e745
1
2
3
4
5
6
7
8
9
10
11
12
13
from lyraSD import LyraSD

t2imodel = LyraSD("text2img", "./sd1.4-engine")
t2imodel.inference(prompt="A fantasy landscape, trending on artstation", use_super=True)


from PIL import Image
i2imodel = LyraSD("img2img", "./sd1.4-engine")
demo_img = Image.open("output/img2img_input.jpg")
i2imodel.inference(prompt="A fantasy landscape, trending on artstation", 
                   image=demo_img, use_super=True)