Update README.md
Browse files
README.md
CHANGED
@@ -104,7 +104,7 @@ pipeline = FluxPipeline.from_pretrained(
|
|
104 |
pipeline.load_lora_weights(repo_id, )
|
105 |
pipeline=pipeline.to('cuda')
|
106 |
```
|
107 |
-
Image generation:
|
108 |
|
109 |
```python
|
110 |
prompt=('Generate an image of a golden spider web network intertwined with collagen veins, '
|
@@ -129,3 +129,34 @@ grid
|
|
129 |
```
|
130 |
|
131 |

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
pipeline.load_lora_weights(repo_id, )
|
105 |
pipeline=pipeline.to('cuda')
|
106 |
```
|
107 |
+
Image generation - Example #1:
|
108 |
|
109 |
```python
|
110 |
prompt=('Generate an image of a golden spider web network intertwined with collagen veins, '
|
|
|
129 |
```
|
130 |
|
131 |

|
132 |
+
|
133 |
+
Image generation - Example #2:
|
134 |
+
|
135 |
+
```python
|
136 |
+
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:
|
137 |
+
|
138 |
+
* Fibrous architecture inspired by spider silk, represented by sinuous lines and curved forms.
|
139 |
+
* Interconnected, spherical nodes reminiscent of plant cell walls, emphasizing growth and adaptation.
|
140 |
+
* Open cellular structures echoing the permeable nature of plant leaves, suggesting dynamic exchanges and self-regulation capabilities.
|
141 |
+
* Gradations of opacity and transparency inspired by the varying densities found in plant tissues, highlighting functional differentiation and multi-functionality.
|
142 |
+
"""
|
143 |
+
|
144 |
+
num_samples =2
|
145 |
+
num_rows = 2
|
146 |
+
n_steps=25
|
147 |
+
guidance_scale=3.5
|
148 |
+
all_images = []
|
149 |
+
for _ in range(num_rows):
|
150 |
+
|
151 |
+
|
152 |
+
image = pipeline(prompt,num_inference_steps=n_steps,num_images_per_prompt=num_samples,
|
153 |
+
guidance_scale=guidance_scale,).images
|
154 |
+
|
155 |
+
all_images.extend(image)
|
156 |
+
|
157 |
+
grid = image_grid(all_images, num_rows, num_samples,
|
158 |
+
save_individual_files=True, )
|
159 |
+
grid
|
160 |
+
```
|
161 |
+
|
162 |
+

|