Update README.md
Browse files
README.md
CHANGED
@@ -175,7 +175,7 @@ grid
|
|
175 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/L9r3ANz7tWYKrmmOYSXeq.png)
|
176 |
|
177 |
|
178 |
-
Image generation - Example #3:
|
179 |
|
180 |
```python
|
181 |
prompt=prompt="""A sign with letters inspired by the patterns in <leaf microstructure>, it says "MATERIOMICS".
|
@@ -199,3 +199,34 @@ grid
|
|
199 |
|
200 |
|
201 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/YIv-OGXZrdRIboDr7tzQl.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/L9r3ANz7tWYKrmmOYSXeq.png)
|
176 |
|
177 |
|
178 |
+
Image generation - Example #3 (different aspect ratio, e.g. 1024x1920):
|
179 |
|
180 |
```python
|
181 |
prompt=prompt="""A sign with letters inspired by the patterns in <leaf microstructure>, it says "MATERIOMICS".
|
|
|
199 |
|
200 |
|
201 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/YIv-OGXZrdRIboDr7tzQl.png)
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
+
Image generation - Example #4:
|
206 |
+
|
207 |
+
```python
|
208 |
+
prompt="""A cube that looks like a leaf microstructure, placed in a stunning mountain landscape with snow.
|
209 |
+
|
210 |
+
The photo is taken with a Sony A1 camera, bokeh, during the golden hour.
|
211 |
+
"""
|
212 |
+
|
213 |
+
num_samples =2
|
214 |
+
num_rows = 2
|
215 |
+
n_steps=25
|
216 |
+
guidance_scale=15.
|
217 |
+
all_images = []
|
218 |
+
for _ in range(num_rows):
|
219 |
+
|
220 |
+
|
221 |
+
image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
|
222 |
+
guidance_scale=guidance_scale,
|
223 |
+
height=1024, width=1024,).images
|
224 |
+
|
225 |
+
all_images.extend(image)
|
226 |
+
|
227 |
+
grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
|
228 |
+
grid
|
229 |
+
```
|
230 |
+
|
231 |
+
|
232 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/D4gpanI2kaRtn1hB7DkpR.png)
|