Skip to content

Commit f15d38d

Browse files
committed
Fixed links
1 parent 9518fb1 commit f15d38d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

test/test_transforms_tensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,7 @@ def test_autoaugment_save(augmentation, tmpdir):
732732
def test_autoaugment__op_apply_shear(interpolation, mode):
733733
# We check that torchvision's implementation of shear is equivalent
734734
# to official CIFAR10 autoaugment implementation:
735-
# https://github.com/tensorflow/models/blob/885fda091c46c59d6c7bb5c7e760935eacc229da/
736-
# research/autoaugment/augmentation_transforms.py#L273-L290
735+
# https://github.com/tensorflow/models/blob/885fda091c46c59d6c7bb5c7e760935eacc229da/research/autoaugment/augmentation_transforms.py#L273-L290
737736
image_size = 32
738737

739738
def shear(pil_img, level, mode, resample):

torchvision/transforms/autoaugment.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ def _apply_op(
1616
if op_name == "ShearX":
1717
# magnitude should be arctan(magnitude)
1818
# official autoaug: (1, level, 0, 0, 1, 0)
19-
# https://github.com/tensorflow/models/blob/dd02069717128186b88afa8d857ce57d17957f03/
20-
# research/autoaugment/augmentation_transforms.py#L290
19+
# https://github.com/tensorflow/models/blob/dd02069717128186b88afa8d857ce57d17957f03/research/autoaugment/augmentation_transforms.py#L290
2120
# compared to
2221
# torchvision: (1, tan(level), 0, 0, 1, 0)
23-
# https://github.com/pytorch/vision/blob/0c2373d0bba3499e95776e7936e207d8a1676e65/
24-
# torchvision/transforms/functional.py#L976
22+
# https://github.com/pytorch/vision/blob/0c2373d0bba3499e95776e7936e207d8a1676e65/torchvision/transforms/functional.py#L976
2523
img = F.affine(
2624
img,
2725
angle=0.0,

0 commit comments

Comments
 (0)