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_r195588826
 
 

 ##########
 File path: src/io/image_aug_default.cc
 ##########
 @@ -277,7 +413,8 @@ class DefaultImageAugmenter : public ImageAugmenter {
     }
 
     // crop logic
-    if (param_.max_crop_size != -1 || param_.min_crop_size != -1) {
+    if (!param_.random_resized_crop &&
 
 Review comment:
   random resized crop considers sample the relative area and the aspect ratio 
of the to-be-cropped part.
   
   here's random crop, it randomly crop a square with its edge length sampled 
from [min_crop_size, max_crop_size]

----------------------------------------------------------------
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

Reply via email to