Update README.md
Browse files
README.md
CHANGED
@@ -137,6 +137,18 @@ The training script is included in the Jupyter notebook.
|
|
137 |
|
138 |
## More examples
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |

|
141 |
|
142 |
|
|
|
137 |
|
138 |
## More examples
|
139 |
|
140 |
+
```python
|
141 |
+
prompt = "a conch shell on black background that resembles a <leaf microstructure>, high quality"
|
142 |
+
num_samples = 4
|
143 |
+
num_rows = 4
|
144 |
+
all_images = []
|
145 |
+
for _ in range(num_rows):
|
146 |
+
images = pipe(prompt, num_images_per_prompt=num_samples, num_inference_steps=50, guidance_scale=15).images
|
147 |
+
all_images.extend(images)
|
148 |
+
grid = image_grid(all_images, num_rows, num_samples)
|
149 |
+
grid
|
150 |
+
```
|
151 |
+
|
152 |

|
153 |
|
154 |
|