Update README.md
Browse files
README.md
CHANGED
|
@@ -183,6 +183,48 @@ grid
|
|
| 183 |

|
| 184 |
|
| 185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
```bibtext
|
| 188 |
@article{BioinspiredFluxBuehler2024,
|
|
|
|
| 183 |

|
| 184 |
|
| 185 |
|
| 186 |
+
Image generation - Example #4:
|
| 187 |
+
|
| 188 |
+
```python
|
| 189 |
+
prompt = "<bioinspired>, a beautiful landscape."
|
| 190 |
+
num_samples =1
|
| 191 |
+
num_rows =1
|
| 192 |
+
n_steps=50
|
| 193 |
+
guidance_scale=5.0
|
| 194 |
+
all_images = []
|
| 195 |
+
for _ in range(num_rows):
|
| 196 |
+
image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
|
| 197 |
+
guidance_scale=guidance_scale,).images
|
| 198 |
+
|
| 199 |
+
all_images.extend(image)
|
| 200 |
+
|
| 201 |
+
grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
|
| 202 |
+
grid
|
| 203 |
+
```
|
| 204 |
+
|
| 205 |
+

|
| 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."""
|
| 212 |
+
num_samples =1
|
| 213 |
+
num_rows =1
|
| 214 |
+
n_steps=50
|
| 215 |
+
guidance_scale=3.5
|
| 216 |
+
all_images = []
|
| 217 |
+
for _ in range(num_rows):
|
| 218 |
+
image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
|
| 219 |
+
guidance_scale=guidance_scale,).images
|
| 220 |
+
|
| 221 |
+
all_images.extend(image)
|
| 222 |
+
|
| 223 |
+
grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
|
| 224 |
+
grid
|
| 225 |
+
```
|
| 226 |
+
|
| 227 |
+

|
| 228 |
|
| 229 |
```bibtext
|
| 230 |
@article{BioinspiredFluxBuehler2024,
|