Update WT/transform.py
Browse files- WT/transform.py +1 -1
WT/transform.py
CHANGED
@@ -23,7 +23,7 @@ def iwt_init(x):
|
|
23 |
x2 = x[:, out_channel:out_channel * 2, :, :] / 2
|
24 |
x3 = x[:, out_channel * 2:out_channel * 3, :, :] / 2
|
25 |
x4 = x[:, out_channel * 3:out_channel * 4, :, :] / 2
|
26 |
-
h = torch.zeros([out_batch, out_channel, out_height, out_width])
|
27 |
|
28 |
h[:, :, 0::2, 0::2] = x1 - x2 - x3 + x4
|
29 |
h[:, :, 1::2, 0::2] = x1 - x2 + x3 - x4
|
|
|
23 |
x2 = x[:, out_channel:out_channel * 2, :, :] / 2
|
24 |
x3 = x[:, out_channel * 2:out_channel * 3, :, :] / 2
|
25 |
x4 = x[:, out_channel * 3:out_channel * 4, :, :] / 2
|
26 |
+
h = torch.zeros([out_batch, out_channel, out_height, out_width])#.cuda() #
|
27 |
|
28 |
h[:, :, 0::2, 0::2] = x1 - x2 - x3 + x4
|
29 |
h[:, :, 1::2, 0::2] = x1 - x2 + x3 - x4
|