mjbuehler commited on
Commit
a2a4dc1
·
verified ·
1 Parent(s): 6fe3131

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md CHANGED
@@ -160,3 +160,33 @@ grid
160
  ```
161
 
162
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/8jFLndvhGkH6iDV25MNQ2.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  ```
161
 
162
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/8jFLndvhGkH6iDV25MNQ2.png)
163
+
164
+ Image generation - Example #3:
165
+
166
+ ```python
167
+ prompt="""A cube in the shape of a <leaf microstructure>, made out of limestone, holding a sign that says 'MATERIOMICS'.
168
+
169
+ The cube is placed in a stunning mountain landscape.
170
+
171
+ The cube shows intricate patterns of <leaf microstructure>.
172
+ """
173
+
174
+ num_samples =2
175
+ num_rows = 2
176
+ n_steps=25
177
+ guidance_scale=3.5
178
+ all_images = []
179
+ for _ in range(num_rows):
180
+
181
+
182
+ image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
183
+ guidance_scale=guidance_scale,).images
184
+
185
+ all_images.extend(image)
186
+
187
+ grid = image_grid(all_images, num_rows, num_samples,
188
+ save_individual_files=True, )
189
+ grid
190
+ ```
191
+
192
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/nLBgdpNss8lmRk2ag5iXs.png)