5f6e2c4a115a6a706cc011b3bf9ed9e3ef149d98,data/aligned_data_loader.py,AlignedDataLoader,initialize,#AlignedDataLoader#,43

Before Change


    def initialize(self, opt):
        BaseDataLoader.initialize(self, opt)
        self.fineSize = opt.fineSize
        transform = transforms.Compose([
            // TODO: Scale
            transforms.Scale(opt.loadSize),
            transforms.ToTensor(),
            transforms.Normalize((0.5, 0.5, 0.5),
                                 (0.5, 0.5, 0.5))])

        // Dataset A
        dataset = ImageFolder(root=opt.dataroot + "/" + opt.phase,
                              transform=transform, return_paths=True)

After Change


            transforms.ToTensor(),
            transforms.Normalize((0.5, 0.5, 0.5),
                                 (0.5, 0.5, 0.5))]
        if opt.isTrain and not opt.no_flip:
            transformations.insert(1, transforms.RandomHorizontalFlip())
        transform = transforms.Compose(transformations)

        // Dataset A
        dataset = ImageFolder(root=opt.dataroot + "/" + opt.phase,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: richzhang/colorization-pytorch
Commit Name: 5f6e2c4a115a6a706cc011b3bf9ed9e3ef149d98
Time: 2017-05-07
Author: taesung_park@berkeley.edu
File Name: data/aligned_data_loader.py
Class Name: AlignedDataLoader
Method Name: initialize


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: f27993c9ecae9cc8d714baa86cb595ed393c1a35
Time: 2018-11-30
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name: get_train_utils


Project Name: richzhang/colorization-pytorch
Commit Name: 5f6e2c4a115a6a706cc011b3bf9ed9e3ef149d98
Time: 2017-05-07
Author: taesung_park@berkeley.edu
File Name: data/unaligned_data_loader.py
Class Name: UnalignedDataLoader
Method Name: initialize