mjbuehler commited on
Commit
fbd5a60
1 Parent(s): 685dfec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -1
README.md CHANGED
@@ -228,6 +228,32 @@ for _ in range(num_rows):
228
  grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
229
  grid
230
  ```
 
231
 
232
 
233
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/D4gpanI2kaRtn1hB7DkpR.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
229
  grid
230
  ```
231
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/D4gpanI2kaRtn1hB7DkpR.png)
232
 
233
 
234
+ Image generation - Example #5:
235
+
236
+ ```python
237
+ prompt="""A jar of round <leaf microstructure> cookies with a piece of white tape that says "Materiomics Cookies". Looks tasty. Old fashioned.
238
+ """
239
+
240
+ num_samples =2
241
+ num_rows = 2
242
+ n_steps=25
243
+ guidance_scale=15.
244
+ all_images = []
245
+ for _ in range(num_rows):
246
+
247
+
248
+ image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
249
+ guidance_scale=guidance_scale,
250
+ height=1024, width=1024,).images
251
+
252
+ all_images.extend(image)
253
+
254
+ grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
255
+ grid
256
+ ```
257
+
258
+
259
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/VahIiPsIJSW0M1XmS08r-.png)