Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ widget: []
|
|
22 |
|
23 |
These are LoRA adaption weights for stabilityai/stable-diffusion-3-medium-diffusers.
|
24 |
|
25 |
-
## Trigger
|
26 |
|
27 |
The following image were used during fine-tuning using the keyword \<leaf microstructure\>:
|
28 |
|
@@ -30,7 +30,7 @@ The following image were used during fine-tuning using the keyword \<leaf micros
|
|
30 |
|
31 |
You should use <leaf microstructure> to trigger the image generation.
|
32 |
|
33 |
-
|
34 |
|
35 |
Defining some helper functions:
|
36 |
|
@@ -75,6 +75,8 @@ def image_grid(imgs, rows, cols, save=True, save_dir='generated_images', base_na
|
|
75 |
return grid
|
76 |
```
|
77 |
|
|
|
|
|
78 |
Model loading and generation pipeline:
|
79 |
|
80 |
```python
|
@@ -113,7 +115,7 @@ grid
|
|
113 |
|
114 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/qk5kRJJmetvhZ0ctltc3z.png)
|
115 |
|
116 |
-
|
117 |
|
118 |
We start with this image generated earlier:
|
119 |
|
@@ -144,3 +146,7 @@ image
|
|
144 |
```
|
145 |
|
146 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/kI-lx0UCFBErbdUIMn-cG.png)
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
These are LoRA adaption weights for stabilityai/stable-diffusion-3-medium-diffusers.
|
24 |
|
25 |
+
## Trigger keywords
|
26 |
|
27 |
The following image were used during fine-tuning using the keyword \<leaf microstructure\>:
|
28 |
|
|
|
30 |
|
31 |
You should use <leaf microstructure> to trigger the image generation.
|
32 |
|
33 |
+
## How to use
|
34 |
|
35 |
Defining some helper functions:
|
36 |
|
|
|
75 |
return grid
|
76 |
```
|
77 |
|
78 |
+
### Text-to-image
|
79 |
+
|
80 |
Model loading and generation pipeline:
|
81 |
|
82 |
```python
|
|
|
115 |
|
116 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/qk5kRJJmetvhZ0ctltc3z.png)
|
117 |
|
118 |
+
### Image-to-image
|
119 |
|
120 |
We start with this image generated earlier:
|
121 |
|
|
|
146 |
```
|
147 |
|
148 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/kI-lx0UCFBErbdUIMn-cG.png)
|
149 |
+
|
150 |
+
## More examples
|
151 |
+
|
152 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/623ce1c6b66fedf374859fe7/cX1W68vzYmdBwNgXKVNsO.png)
|