hetong007 commented on a change in pull request #11027: Add standard ResNet
data augmentation for ImageRecordIter
URL: https://github.com/apache/incubator-mxnet/pull/11027#discussion_r194192706
##########
File path: example/image-classification/common/data.py
##########
@@ -63,6 +65,20 @@ def add_data_aug_args(parser):
help='max ratio to scale')
aug.add_argument('--min-random-scale', type=float, default=1,
help='min ratio to scale, should >= img_size/input_shape.
otherwise use --pad-size')
+ aug.add_argument('--max-random-area', type=float, default=1,
+ help='max area to crop in random resized crop, whose
range is [0, 1]')
+ aug.add_argument('--min-random-area', type=float, default=1,
+ help='min area to crop in random resized crop, whose
range is [0, 1]')
+ aug.add_argument('--brightness', type=float, default=0,
Review comment:
Just reviewed the code again, I think I'll turn off `--random-crop` and
`--random-mirror` as well.
I can replace `set_aug_level` with `set_resnet_aug`. The current one has
settings look kind of arbitrary to me.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services