Yihong Luo commited on
Commit
0c7a11a
1 Parent(s): b408920

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -61,4 +61,22 @@ imgs= pipeline(prompt="A photo of a man, XT3",
61
  imgs
62
  ```
63
  ![man](man.jpg)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  You can increase the steps to improve sample quality.
 
61
  imgs
62
  ```
63
  ![man](man.jpg)
64
+
65
+ You may try some interesting applications, like:
66
+ ```python
67
+ generator = torch.manual_seed(318)
68
+ steps = 2
69
+ img_list = []
70
+ for age in [2,20,30,50,60,80]:
71
+ imgs = pipeline(prompt=f"A photo of a cute girl, {age} yr old, XT3",
72
+ num_inference_steps=steps,
73
+ num_images_per_prompt = 1,
74
+ generator = generator,
75
+ guidance_scale=1.1,
76
+ )[0]
77
+ img_list.append(imgs[0])
78
+ make_image_grid(img_list,rows=1,cols=len(img_list))
79
+ ```
80
+ ![life](life.jpg)
81
+
82
  You can increase the steps to improve sample quality.