ff1a17f52f363a3901f2b7a2d720b7745e1c3bc4,benchmark/benchmark.py,RandomSizedCrop_64_512,torchvision,#RandomSizedCrop_64_512#Any#,330

Before Change



    def torchvision(self, img):
        img = torchvision.crop(img, i=0, j=0, h=64, w=64)
        return torchvision.resize(img, (512, 512))


class ShiftRGB(BenchmarkTest):
    def __init__(self):

After Change



    def torchvision(self, img):
        img = self.torchvision_transform(img)
        return np.array(img, np.uint8, copy=True)

    def is_supported_by(self, library):
        if library == "imgaug":
            return hasattr(self, "imgaug_transform")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: albu/albumentations
Commit Name: ff1a17f52f363a3901f2b7a2d720b7745e1c3bc4
Time: 2019-10-10
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: RandomSizedCrop_64_512
Method Name: torchvision


Project Name: baldassarreFe/deep-koalarization
Commit Name: 3a25edce742db97d936ffb645185b520878d0c6d
Time: 2017-05-06
Author: baldassarre.fe@gmail.com
File Name: dataset/resize.py
Class Name: ImagenetResizer
Method Name: resize_img


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 4ec50ac4a430fb73676b0a3f73c6d9b3c4b7acb7
Time: 2021-01-09
Author: florian@flova.de
File Name: utils/datasets.py
Class Name: ImageFolder
Method Name: __getitem__