Jacobellis Dan (dgj335)
commited on
Commit
·
c518ce5
1
Parent(s):
de00cee
webp entropy coding
Browse files- README.ipynb +0 -0
- README.md +15 -9
- README_files/README_12_0.png +0 -0
- README_files/README_14_0.jpg +0 -0
- README_files/README_8_0.jpg +0 -0
- README_files/README_8_0.png +2 -2
README.ipynb
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
README.md
CHANGED
@@ -71,7 +71,7 @@ img
|
|
71 |
|
72 |
|
73 |
|
74 |
-
![png](
|
75 |
|
76 |
|
77 |
|
@@ -96,7 +96,7 @@ ToPILImage()(x_hat[0]+0.5)
|
|
96 |
|
97 |
|
98 |
|
99 |
-
![png](
|
100 |
|
101 |
|
102 |
|
@@ -127,7 +127,7 @@ Y.unique()
|
|
127 |
|
128 |
|
129 |
tensor([-15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4.,
|
130 |
-
-3., -2., -1.,
|
131 |
9., 10., 11., 12., 13., 14., 15.])
|
132 |
|
133 |
|
@@ -147,11 +147,11 @@ plt.xticks(range(-15,16,5));
|
|
147 |
|
148 |
|
149 |
|
150 |
-
![png](
|
151 |
|
152 |
|
153 |
|
154 |
-
# Lossless compression of latents using
|
155 |
|
156 |
|
157 |
```python
|
@@ -163,18 +163,18 @@ Y_pil[0]
|
|
163 |
|
164 |
|
165 |
|
166 |
-
![
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
```python
|
173 |
-
Y_pil[0].save('latent.
|
174 |
-
print("compression_ratio: ", x.numel()/os.path.getsize("latent.
|
175 |
```
|
176 |
|
177 |
-
compression_ratio:
|
178 |
|
179 |
|
180 |
|
@@ -195,6 +195,12 @@ Y2 = walloc.pil_to_latent(Y_pil, 16, 5)
|
|
195 |
!jupyter nbconvert --to markdown README.ipynb
|
196 |
```
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
```python
|
200 |
!sed -i 's|!\[png](README_files/\(README_[0-9]*_[0-9]*\.png\))|![png](https://huggingface.co/danjacobellis/walloc/resolve/main/README_files/\1)|g' README.md
|
|
|
71 |
|
72 |
|
73 |
|
74 |
+
![png](README_files/README_6_0.png)
|
75 |
|
76 |
|
77 |
|
|
|
96 |
|
97 |
|
98 |
|
99 |
+
![png](README_files/README_8_0.png)
|
100 |
|
101 |
|
102 |
|
|
|
127 |
|
128 |
|
129 |
tensor([-15., -14., -13., -12., -11., -10., -9., -8., -7., -6., -5., -4.,
|
130 |
+
-3., -2., -1., 0., 1., 2., 3., 4., 5., 6., 7., 8.,
|
131 |
9., 10., 11., 12., 13., 14., 15.])
|
132 |
|
133 |
|
|
|
147 |
|
148 |
|
149 |
|
150 |
+
![png](README_files/README_12_0.png)
|
151 |
|
152 |
|
153 |
|
154 |
+
# Lossless compression of latents using WEBP
|
155 |
|
156 |
|
157 |
```python
|
|
|
163 |
|
164 |
|
165 |
|
166 |
+
![jpeg](README_files/README_14_0.jpg)
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
```python
|
173 |
+
Y_pil[0].save('latent.webp',lossless=True)
|
174 |
+
print("compression_ratio: ", x.numel()/os.path.getsize("latent.webp"))
|
175 |
```
|
176 |
|
177 |
+
compression_ratio: 26.13425495148212
|
178 |
|
179 |
|
180 |
|
|
|
195 |
!jupyter nbconvert --to markdown README.ipynb
|
196 |
```
|
197 |
|
198 |
+
[NbConvertApp] Converting notebook README.ipynb to markdown
|
199 |
+
[NbConvertApp] Support files will be in README_files/
|
200 |
+
[NbConvertApp] Making directory README_files
|
201 |
+
[NbConvertApp] Writing 4316 bytes to README.md
|
202 |
+
|
203 |
+
|
204 |
|
205 |
```python
|
206 |
!sed -i 's|!\[png](README_files/\(README_[0-9]*_[0-9]*\.png\))|![png](https://huggingface.co/danjacobellis/walloc/resolve/main/README_files/\1)|g' README.md
|
README_files/README_12_0.png
CHANGED
README_files/README_14_0.jpg
CHANGED
README_files/README_8_0.jpg
CHANGED
README_files/README_8_0.png
CHANGED
Git LFS Details
|
Git LFS Details
|