Update README.md
Browse files
README.md
CHANGED
@@ -64,22 +64,22 @@ images = pipe(
|
|
64 |
|
65 |
</details>
|
66 |
|
67 |
-
<table>
|
68 |
<tbody>
|
69 |
<tr>
|
70 |
-
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_0.png" alt="Image 1"></td>
|
71 |
<td align="center">Yorkshire Terrier with smile, How2Draw</td>
|
72 |
</tr>
|
73 |
<tr>
|
74 |
-
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_1.png" alt="Image 2"></td>
|
75 |
<td align="center">a dolphin, How2Draw</td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
-
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_2.png" alt="Image 3"></td>
|
79 |
<td align="center">an owl, How3Draw</td>
|
80 |
</tr>
|
81 |
<tr>
|
82 |
-
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_3.png" alt="Image 4"></td>
|
83 |
<td align="center">
|
84 |
A silhouette of a girl performing a ballet pose, with elegant lines to suggest grace and movement.
|
85 |
The background can include simple outlines of ballet shoes and a music note.
|
@@ -99,7 +99,8 @@ Code: [`low_rank_lora.py`](https://huggingface.co/sayakpaul/lower-rank-flux-lor
|
|
99 |
|
100 |
## SVD
|
101 |
|
102 |
-
|
|
|
103 |
|
104 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_svd_collage_0.png)
|
105 |
|
@@ -109,10 +110,15 @@ Code: [`low_rank_lora.py`](https://huggingface.co/sayakpaul/lower-rank-flux-lor
|
|
109 |
|
110 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_svd_collage_3.png)
|
111 |
|
|
|
|
|
112 |
### Randomized SVD
|
113 |
|
114 |
Full SVD can be time-consuming. Truncated SVD is useful very large sparse matrices. We can use randomized SVD for none-to-negligible loss in quality but significantly faster speed.
|
115 |
|
|
|
|
|
|
|
116 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_0.png)
|
117 |
|
118 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_1.png)
|
@@ -120,10 +126,18 @@ Full SVD can be time-consuming. Truncated SVD is useful very large sparse matric
|
|
120 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_2.png)
|
121 |
|
122 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_3.png)
|
|
|
|
|
123 |
|
124 |
Code: [`svd_low_rank_lora.py`](https://huggingface.co/sayakpaul/lower-rank-flux-lora/blob/main/svd_low_rank_lora.py)
|
125 |
|
126 |
### Tune the knobs in SVD
|
127 |
|
128 |
- `new_rank` as always
|
129 |
-
- `niter` when using randomized SVD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
</details>
|
66 |
|
67 |
+
<table border=1>
|
68 |
<tbody>
|
69 |
<tr>
|
70 |
+
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_0.png" width=300 alt="Image 1"></td>
|
71 |
<td align="center">Yorkshire Terrier with smile, How2Draw</td>
|
72 |
</tr>
|
73 |
<tr>
|
74 |
+
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_1.png" width=300 alt="Image 2"></td>
|
75 |
<td align="center">a dolphin, How2Draw</td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
+
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_2.png" width=300 alt="Image 3"></td>
|
79 |
<td align="center">an owl, How3Draw</td>
|
80 |
</tr>
|
81 |
<tr>
|
82 |
+
<td align="center"><img src="https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/collage_3.png" width=300 alt="Image 4"></td>
|
83 |
<td align="center">
|
84 |
A silhouette of a girl performing a ballet pose, with elegant lines to suggest grace and movement.
|
85 |
The background can include simple outlines of ballet shoes and a music note.
|
|
|
99 |
|
100 |
## SVD
|
101 |
|
102 |
+
<details>
|
103 |
+
<summary><h3>Results</h3></summary>
|
104 |
|
105 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_svd_collage_0.png)
|
106 |
|
|
|
110 |
|
111 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_svd_collage_3.png)
|
112 |
|
113 |
+
</details>
|
114 |
+
|
115 |
### Randomized SVD
|
116 |
|
117 |
Full SVD can be time-consuming. Truncated SVD is useful very large sparse matrices. We can use randomized SVD for none-to-negligible loss in quality but significantly faster speed.
|
118 |
|
119 |
+
<details>
|
120 |
+
<summary>Resukts</summary>
|
121 |
+
|
122 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_0.png)
|
123 |
|
124 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_1.png)
|
|
|
126 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_2.png)
|
127 |
|
128 |
![image.png](https://huggingface.co/sayakpaul/lower-rank-flux-lora/resolve/main/images/How2Draw-V2_000002800_rand_svd_collage_3.png)
|
129 |
+
|
130 |
+
</details>
|
131 |
|
132 |
Code: [`svd_low_rank_lora.py`](https://huggingface.co/sayakpaul/lower-rank-flux-lora/blob/main/svd_low_rank_lora.py)
|
133 |
|
134 |
### Tune the knobs in SVD
|
135 |
|
136 |
- `new_rank` as always
|
137 |
+
- `niter` when using randomized SVD
|
138 |
+
|
139 |
+
## Reduced checkpoints
|
140 |
+
|
141 |
+
* Randomized SVD: [How2Draw-V2_000002800_rand_svd.safetensors](./How2Draw-V2_000002800_rand_svd.safetensors)
|
142 |
+
* Full SVD: [How2Draw-V2_000002800_svd.safetensors](./How2Draw-V2_000002800_svd.safetensors)
|
143 |
+
* Random projections: [How2Draw-V2_000002800_reduced.safetensors](./How2Draw-V2_000002800_reduced.safetensors)
|