bugfix aspect ratio sampling in transforms.RandomErasing (#3344)
* aspect ratio must be a sampling from log scale. reference from: https://github.com/pytorch/vision/blob/8317295c1d272e0ba7b2ce31e3fd2c048235fc73/torchvision/transforms/transforms.py#L833-L836 * add random erasing unittest code * Increased threshold for difference in sampling rate * move outside of the loop * log_ratio move outside of the loop. RandomResizedCrop also Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
Showing
Please register or sign in to comment