Commit
·
bdf1897
1
Parent(s):
502d2e6
new model
Browse files- img_demoAE.py +4 -3
- img_test/genshin-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png +0 -0
- img_test/kodim14-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png +0 -0
- img_test/kodim19-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png +0 -0
- img_test/kodim24-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png +0 -0
- img_test/lena-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png +0 -0
- out-v7d_d32_1024-224-13bit-OB32x0.5-3642-D.pth +3 -0
- out-v7d_d32_1024-224-13bit-OB32x0.5-3642-E.pth +3 -0
img_demoAE.py
CHANGED
@@ -15,7 +15,8 @@ print(f'loading...')
|
|
15 |
########################################################################################################
|
16 |
|
17 |
# model_prefix = 'out-v7c_d8_256-224-13bit-OB32x0.5-745'
|
18 |
-
model_prefix = 'out-v7d_d16_512-224-13bit-OB32x0.5-2487'
|
|
|
19 |
input_imgs = ['lena.png', 'genshin.png', 'kodim14-modified.png', 'kodim19-modified.png', 'kodim24-modified.png']
|
20 |
device = 'cpu' # cpu cuda
|
21 |
|
@@ -154,7 +155,7 @@ else:
|
|
154 |
self.args = args
|
155 |
if 'd16_512' in model_prefix:
|
156 |
dd, ee, ff = 16, 64, 512
|
157 |
-
|
158 |
dd, ee, ff = 32, 128, 1024
|
159 |
self.CXX = nn.Conv2d(3, dd, kernel_size=3, padding=1)
|
160 |
self.BXX = nn.BatchNorm2d(dd)
|
@@ -186,7 +187,7 @@ else:
|
|
186 |
self.args = args
|
187 |
if 'd16_512' in model_prefix:
|
188 |
dd, ee, ff = 16, 64, 512
|
189 |
-
|
190 |
dd, ee, ff = 32, 128, 1024
|
191 |
self.CZZ = nn.Conv2d(args.my_img_bit, dd*64, kernel_size=3, padding=1)
|
192 |
self.BZZ = nn.BatchNorm2d(dd*64)
|
|
|
15 |
########################################################################################################
|
16 |
|
17 |
# model_prefix = 'out-v7c_d8_256-224-13bit-OB32x0.5-745'
|
18 |
+
# model_prefix = 'out-v7d_d16_512-224-13bit-OB32x0.5-2487'
|
19 |
+
model_prefix = 'out-v7d_d32_1024-224-13bit-OB32x0.5-3642'
|
20 |
input_imgs = ['lena.png', 'genshin.png', 'kodim14-modified.png', 'kodim19-modified.png', 'kodim24-modified.png']
|
21 |
device = 'cpu' # cpu cuda
|
22 |
|
|
|
155 |
self.args = args
|
156 |
if 'd16_512' in model_prefix:
|
157 |
dd, ee, ff = 16, 64, 512
|
158 |
+
elif 'd32_1024' in model_prefix:
|
159 |
dd, ee, ff = 32, 128, 1024
|
160 |
self.CXX = nn.Conv2d(3, dd, kernel_size=3, padding=1)
|
161 |
self.BXX = nn.BatchNorm2d(dd)
|
|
|
187 |
self.args = args
|
188 |
if 'd16_512' in model_prefix:
|
189 |
dd, ee, ff = 16, 64, 512
|
190 |
+
elif 'd32_1024' in model_prefix:
|
191 |
dd, ee, ff = 32, 128, 1024
|
192 |
self.CZZ = nn.Conv2d(args.my_img_bit, dd*64, kernel_size=3, padding=1)
|
193 |
self.BZZ = nn.BatchNorm2d(dd*64)
|
img_test/genshin-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png
ADDED
![]() |
img_test/kodim14-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png
ADDED
![]() |
img_test/kodim19-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png
ADDED
![]() |
img_test/kodim24-modified-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png
ADDED
![]() |
img_test/lena-out-v7d_d32_1024-224-13bit-OB32x0.5-3642.png
ADDED
![]() |
out-v7d_d32_1024-224-13bit-OB32x0.5-3642-D.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c22998d32e1ca754416504823ab72393a3888c48c9695493e6e8cf577a992434
|
3 |
+
size 397763529
|
out-v7d_d32_1024-224-13bit-OB32x0.5-3642-E.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ee11f299c5afb94de17dc598a76d90addf458cbcc63b8dcf4bec8dc7b4d99dc
|
3 |
+
size 397723209
|