Commit 3917cfd5 authored by Yuxin Wu's avatar Yuxin Wu

clarify docs of RandomResize (fix #343)

parent 8a4d259d
......@@ -131,9 +131,9 @@ class RandomResize(ImageAugmentor):
interp=cv2.INTER_LINEAR):
"""
Args:
xrange (tuple): (min, max) range of scaling ratio for w
xrange (tuple): (min, max) range of scaling ratio for w, e.g. (0.9, 1.2)
yrange (tuple): (min, max) range of scaling ratio for h
minimum (tuple): (xmin, ymin). avoid scaling down too much.
minimum (tuple): (xmin, ymin) in pixels. To avoid scaling down too much.
aspect_ratio_thres (float): discard samples which change aspect ratio
larger than this threshold. Set to 0 to keep aspect ratio.
interp: cv2 interpolation method
......
......@@ -410,8 +410,7 @@ class StagingInputWrapper(FeedfreeInput):
fetches=[stage_op, unstage_op])
def _before_train(self):
# pre-fill the staging area
logger.info("Pre-fillilng staging area ...")
logger.info("Pre-filling staging area ...")
for k in range(self.nr_stage):
self.stage_op.run()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment