mjbuehler commited on
Commit
c09d5b2
·
verified ·
1 Parent(s): 5683510

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -3
README.md CHANGED
@@ -142,6 +142,28 @@ grid
142
 
143
  Image generation - Example #2:
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  ```python
146
  prompt = "A sign that says 'PDF to AUDIO' with organic shapes, <bioinspired>"
147
  num_samples =1
@@ -161,7 +183,7 @@ grid
161
 
162
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/kMTHiPszlXnZoBT-4klLY.png)
163
 
164
- Image generation - Example #3:
165
 
166
  ```python
167
  prompt = "An architectural design in the style of <bioinspired>. The structure itself features key design elements as in <bioinspired>."
@@ -183,7 +205,7 @@ grid
183
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/5t4cG5s7-Yf6bzBmNFqbQ.png)
184
 
185
 
186
- Image generation - Example #4:
187
 
188
  ```python
189
  prompt = "<bioinspired>, a beautiful landscape."
@@ -205,7 +227,7 @@ grid
205
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/ntM0EmRAD5E4ENman2k7e.png)
206
 
207
 
208
- Image generation - Example #5:
209
 
210
  ```python
211
  prompt = """A coffee mug in an unusual shape that resembles a <bioinspired> river during fall foliage."""
 
142
 
143
  Image generation - Example #2:
144
 
145
+ ```python
146
+ prompt = """A leaf during fall foliage, <bioinspired>."""
147
+ negative_prompt=""
148
+ num_samples =2
149
+ num_rows =2
150
+ n_steps=25
151
+ guidance_scale=5
152
+ all_images = []
153
+ for _ in range(num_rows):
154
+ image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
155
+ guidance_scale=guidance_scale,).images
156
+
157
+ all_images.extend(image)
158
+
159
+ grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
160
+ grid
161
+ ```
162
+
163
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/Vp47_0V7r3wLrDUcEBttV.png)
164
+
165
+ Image generation - Example #3:
166
+
167
  ```python
168
  prompt = "A sign that says 'PDF to AUDIO' with organic shapes, <bioinspired>"
169
  num_samples =1
 
183
 
184
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/kMTHiPszlXnZoBT-4klLY.png)
185
 
186
+ Image generation - Example #4:
187
 
188
  ```python
189
  prompt = "An architectural design in the style of <bioinspired>. The structure itself features key design elements as in <bioinspired>."
 
205
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/5t4cG5s7-Yf6bzBmNFqbQ.png)
206
 
207
 
208
+ Image generation - Example #5:
209
 
210
  ```python
211
  prompt = "<bioinspired>, a beautiful landscape."
 
227
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/ntM0EmRAD5E4ENman2k7e.png)
228
 
229
 
230
+ Image generation - Example #6:
231
 
232
  ```python
233
  prompt = """A coffee mug in an unusual shape that resembles a <bioinspired> river during fall foliage."""