Skip to content

Commit 1d5ecbf

Browse files
committed
fix typo
1 parent 129e735 commit 1d5ecbf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tensorlayer/layers.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,10 +1888,10 @@ def __init__(
18881888
Layer.__init__(self, name=name)
18891889
self.inputs = layer.outputs
18901890
self.offset_layer = offset_layer
1891-
1891+
18921892
if tf.__version__ < "1.4":
18931893
raise Exception("Deformable CNN layer requires tensrflow 1.4 or higher version")
1894-
1894+
18951895
print(" [TL] DeformableConv2dLayer %s: shape:%s, act:%s" %
18961896
(self.name, str(shape), act.__name__))
18971897

@@ -2525,7 +2525,7 @@ def __init__(
25252525
if len(strides) == 2:
25262526
strides = [1, strides[0], strides[1], 1]
25272527

2528-
assert len(strides) == 4, "len(strides) should be 4."
2528+
assert len(strides) == 4, "len(strides) should be 4."
25292529

25302530
with tf.variable_scope(name) as vs:
25312531
W = tf.get_variable(name='W_sepconv2d', shape=shape, initializer=W_init, **W_init_args ) # [filter_height, filter_width, in_channels, channel_multiplier]
@@ -2546,8 +2546,8 @@ def __init__(
25462546

25472547
## Super resolution
25482548
def SubpixelConv2d(net, scale=2, n_out_channel=None, act=tf.identity, name='subpixel_conv2d'):
2549-
"""The :class:`SubpixelConv2d` class is a sub-pixel 2d convolutional ayer, usually be used
2550-
for Super-Resolution applications, `example code <https://github.com/zsdonghao/SRGAN/>`_.
2549+
"""It is a sub-pixel 2d upsampling layer, usually be used
2550+
for Super-Resolution applications, see `example code <https://github.com/zsdonghao/SRGAN/>`_.
25512551
25522552
Parameters
25532553
------------
@@ -2636,7 +2636,7 @@ def _PS(X, r, n_out_channel):
26362636
return net_new
26372637

26382638
def SubpixelConv2d_old(net, scale=2, n_out_channel=None, act=tf.identity, name='subpixel_conv2d'):
2639-
"""The :class:`SubpixelConv2d` class is a sub-pixel 2d convolutional ayer, usually be used
2639+
"""It is a sub-pixel 2d upsampling layer, usually be used
26402640
for Super-Resolution applications, `example code <https://github.com/zsdonghao/SRGAN/>`_.
26412641
26422642
Parameters
@@ -4924,7 +4924,7 @@ def __init__(
49244924
print(" non specified batch_size, uses a tensor instead.")
49254925
self.batch_size = batch_size
49264926

4927-
4927+
49284928
outputs = []
49294929
self.cell = cell = cell_fn(shape=cell_shape, filter_size=filter_size, num_features=feature_map)
49304930
if initial_state is None:

tensorlayer/prepro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def zoom(x, zoom_range=(0.9, 1.1), is_random=False, row_index=0, col_index=1, ch
751751
An image with dimension of [row, col, channel] (default).
752752
zoom_range : list or tuple
753753
- If is_random=False, (h, w) are the fixed zoom factor for row and column axies, factor small than one is zoom in.
754-
- If is_random=True, (min zoom out, max zoom out) for x and y with different random zoom in/out factor.
754+
- If is_random=True, it is (min zoom out, max zoom out) for x and y with different random zoom in/out factor.
755755
e.g (0.5, 1) zoom in 1~2 times.
756756
is_random : boolean, default False
757757
If True, randomly zoom.
@@ -2005,7 +2005,7 @@ def obj_box_zoom(im, classes=[], coords=[], zoom_range=(0.9, 1.1),
20052005
An image with dimension of [row, col, channel] (default).
20062006
classes : list of class ID (int).
20072007
coords : list of list for coordinates [[x, y, w, h], [x, y, w, h], ...]
2008-
zoom_range, row_index, col_index, channel_index, is_random, fill_mode, cval, order : see ``tl.prepro.shift``.
2008+
zoom_range, row_index, col_index, channel_index, is_random, fill_mode, cval, order : see ``tl.prepro.zoom``.
20092009
is_rescale : boolean, default False
20102010
Set to True, if the coordinates are rescaled to [0, 1].
20112011
is_center : boolean, default False

0 commit comments

Comments
 (0)