You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorlayer/layers/convolution/oct_conv.py
+77-68
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,10 @@
2
2
# -*- coding: utf-8 -*-
3
3
4
4
importtensorflowastf
5
-
6
5
importtensorlayerastl
7
6
fromtensorlayerimportlogging
8
-
fromtensorlayer.decoratorsimportdeprecated_alias
9
7
fromtensorlayer.layers.coreimportLayer
10
8
11
-
# from tensorlayer.layers.core import LayersConfig
12
-
13
-
14
-
15
9
__all__= [
16
10
'OctConv2dIn',
17
11
'OctConv2d',
@@ -21,9 +15,12 @@
21
15
'OctConv2dConcat',
22
16
]
23
17
18
+
24
19
classOctConv2dIn(Layer):
25
20
"""
26
-
The :class:`OctConv2dIn` class is a preprocessing layer for 2D image [batch, height, width, channel], see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
21
+
The :class:`OctConv2dIn` class is a preprocessing layer for 2D image
22
+
[batch, height, width, channel], see `Drop an Octave: Reducing Spatial Redundancy in
23
+
Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
The :class:`OctConv2d` class is a 2D CNN layer for OctConv2d layer output, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__. Use this layer to process tensor list.
81
+
The :class:`OctConv2d` class is a 2D CNN layer for OctConv2d layer output, see `Drop an Octave:
82
+
Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution
83
+
<https://arxiv.org/abs/1904.05049>`__. Use this layer to process tensor list.
84
84
85
85
Parameters
86
86
----------
@@ -104,7 +104,8 @@ class OctConv2d(Layer):
104
104
105
105
Notes
106
106
-----
107
-
- The input should be a list with shape [high_res_tensor , low_res_tensor], the height and width of high_res should be twice of the low_res_tensor.
107
+
- The input should be a list with shape [high_res_tensor , low_res_tensor],
108
+
the height and width of high_res should be twice of the low_res_tensor.
108
109
- If you do not which tensor is larger, use OctConv2dConcat layer.
109
110
- The output will be a list which contains 2 tensor.
The :class:`OctConv2dOut` class is a 2D CNN layer for OctConv2d layer output to get only a tensor, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__. Use this layer after other Octconv layers and get a normal tensor output.
250
+
The :class:`OctConv2dOut` class is a 2D CNN layer for OctConv2d layer output to get
251
+
only a tensor, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural
252
+
Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
The :class:`OctConv2dHighOut` class is a slice layer for Octconv tensor list, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
381
+
The :class:`OctConv2dHighOut` class is a slice layer for Octconv tensor list,
382
+
see `Drop an Octave: Reducing Spatial Redundancy in Convolutional
383
+
Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
382
384
383
385
Parameters
384
386
----------
@@ -388,7 +390,8 @@ class OctConv2dHighOut(Layer):
388
390
Notes
389
391
-----
390
392
- Use this layer to get high resolution tensor.
391
-
- If you want to do some customized normalization ops, use this layer with OctConv2dLowOut and OctConv2dConcat layers to implement your idea.
393
+
- If you want to do some customized normalization ops, use this layer with
394
+
OctConv2dLowOut and OctConv2dConcat layers to implement your idea.
The :class:`OctConv2dLowOut` class is a slice layer for Octconv tensor list, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
442
+
The :class:`OctConv2dLowOut` class is a slice layer for Octconv tensor list, see
443
+
`Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks
444
+
with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
440
445
441
446
Parameters
442
447
----------
@@ -446,7 +451,8 @@ class OctConv2dLowOut (Layer):
446
451
Notes
447
452
-----
448
453
- Use this layer to get low resolution tensor.
449
-
- If you want to do some customized normalization ops, use this layer with OctConv2dHighOut and OctConv2dConcat layers to implement your idea.
454
+
- If you want to do some customized normalization ops, use this layer with
455
+
OctConv2dHighOut and OctConv2dConcat layers to implement your idea.
The :class:`OctConv2dConcat` class is a concat layer for two 2D image batches, see `Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
504
+
The :class:`OctConv2dConcat` class is a concat layer for two 2D image batches, see
505
+
`Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks
506
+
with Octave Convolution <https://arxiv.org/abs/1904.05049>`__.
0 commit comments