mjbuehler commited on
Commit
a4bbbf7
·
verified ·
1 Parent(s): 3174d53

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -5
README.md CHANGED
@@ -115,8 +115,40 @@ pipeline=pipeline.to('cuda')
115
  )
116
  pipeline=pipeline.to('cuda')
117
  ```
 
 
118
  Image generation - Example #1:
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  ```python
121
  prompt="""A cube that looks like a <leaf microstructure>, with a wrap-around sign that says 'MATERIOMICS'.
122
 
@@ -130,17 +162,40 @@ num_rows = 1
130
  n_steps=25
131
  guidance_scale=5.
132
  all_images = []
133
- for _ in range(num_rows):
134
-
135
-
136
  image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
137
  guidance_scale=guidance_scale,
138
  height=1024, width=1920,).images
139
-
140
  all_images.extend(image)
141
 
142
  grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
143
  grid
144
  ```
145
 
146
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/Cwb4D8puqAL32ywRXGQCn.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  )
116
  pipeline=pipeline.to('cuda')
117
  ```
118
+
119
+
120
  Image generation - Example #1:
121
 
122
+ ```python
123
+ prompt="""Generate a futuristic, eco-friendly architectural concept utilizing a biomimetic composite material that integrates the structural efficiency of spider silk with the adaptive porosity of plant tissues. Utilize the following key features:
124
+
125
+ * Fibrous architecture inspired by spider silk, represented by sinuous lines and curved forms.
126
+ * Interconnected, spherical nodes reminiscent of plant cell walls, emphasizing growth and adaptation.
127
+ * Open cellular structures echoing the permeable nature of plant leaves, suggesting dynamic exchanges and self-regulation capabilities.
128
+ * Gradations of opacity and transparency inspired by the varying densities found in plant tissues, highlighting functional differentiation and multi-functionality.
129
+ """
130
+
131
+ num_samples =2
132
+ num_rows = 2
133
+ n_steps=25
134
+ guidance_scale=3.5
135
+ all_images = []
136
+ for _ in range(num_rows):
137
+
138
+
139
+ image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
140
+ guidance_scale=guidance_scale,).images
141
+
142
+ all_images.extend(image)
143
+
144
+ grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
145
+ grid
146
+ ```
147
+
148
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/VJXJ3MguJHk32JARdU-wV.png)
149
+
150
+ Image generation - Example #2:
151
+
152
  ```python
153
  prompt="""A cube that looks like a <leaf microstructure>, with a wrap-around sign that says 'MATERIOMICS'.
154
 
 
162
  n_steps=25
163
  guidance_scale=5.
164
  all_images = []
165
+ for _ in range(num_rows):
 
 
166
  image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
167
  guidance_scale=guidance_scale,
168
  height=1024, width=1920,).images
 
169
  all_images.extend(image)
170
 
171
  grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
172
  grid
173
  ```
174
 
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".
182
+ The sign is placed in a stunning mountain landscape with snow. The photo is taken with a Sony A1 camera, bokeh, during the golden hour.
183
+ """
184
+
185
+ num_samples =1
186
+ num_rows = 1
187
+ n_steps=25
188
+ guidance_scale=5.
189
+ all_images = []
190
+ for _ in range(num_rows):
191
+ image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
192
+ guidance_scale=guidance_scale,
193
+ height=1024, width=1920,).images
194
+ all_images.extend(image)
195
+
196
+ grid = image_grid(all_images, num_rows, num_samples, save_individual_files=True, )
197
+ grid
198
+ ```
199
+
200
+
201
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/YIv-OGXZrdRIboDr7tzQl.png)