We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://travis-ci.org/pytorch/vision/jobs/563558702
self = <test_transforms.Tester testMethod=test_randomresized_params> def test_randomresized_params(self): height = random.randint(24, 32) * 2 width = random.randint(24, 32) * 2 img = torch.ones(3, height, width) to_pil_image = transforms.ToPILImage() img = to_pil_image(img) size = 100 epsilon = 0.05 for _ in range(10): scale_min = round(random.random(), 2) scale_range = (scale_min, scale_min + round(random.random(), 2)) aspect_min = max(round(random.random(), 2), epsilon) aspect_ratio_range = (aspect_min, aspect_min + round(random.random(), 2)) randresizecrop = transforms.RandomResizedCrop(size, scale_range, aspect_ratio_range) i, j, h, w = randresizecrop.get_params(img, scale_range, aspect_ratio_range) aspect_ratio_obtained = w / h > assert (min(aspect_ratio_range) - epsilon <= aspect_ratio_obtained <= max(aspect_ratio_range) + epsilon or aspect_ratio_obtained == 1.0) E AssertionError: assert (1.411764705882353 <= (1.3599999999999999 + 0.05) or 1.411764705882353 == 1.0) E + where 1.3599999999999999 = max((0.96, 1.3599999999999999))
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
See https://travis-ci.org/pytorch/vision/jobs/563558702
The text was updated successfully, but these errors were encountered: