cbe085758f63d4e8bb178585847d7a630ca56129,data/aligned_dataset.py,AlignedDataset,__getitem__,#AlignedDataset#Any#,26
Before Change
B0 = AB.crop((w2, 0, w, h)).resize((self.opt.load_size, self.opt.load_size), Image.BICUBIC)
x, y, h, w = transforms.RandomCrop.get_params(A0, output_size=[self.opt.crop_size, self.opt.crop_size])
A = TF.crop(A0, x, y, h, w)
B = TF.crop(B0, x, y, h, w)
if (not self.opt.no_flip) and random.random() < 0.5:
A = TF.hflip(A)
B = TF.hflip(B)
After Change
A = AB.crop((0, 0, w2, h)).resize((self.opt.load_size, self.opt.load_size), Image.BICUBIC)
B = AB.crop((w2, 0, w, h)).resize((self.opt.load_size, self.opt.load_size), Image.BICUBIC)
// apply the same cropping to both A and B
if "crop" in self.opt.resize_or_crop:
x, y, h, w = transforms.RandomCrop.get_params(A, output_size=[self.opt.crop_size, self.opt.crop_size])
A = A.crop((x, y, w, h))
B = B.crop((x, y, w, h))
// apply the same flipping to both A and B
if (not self.opt.no_flip) and random.random() < 0.5:
A = A.transpose(Image.FLIP_LEFT_RIGHT)
B = B.transpose(Image.FLIP_LEFT_RIGHT)
// call standard transformation function
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: junyanz/pytorch-CycleGAN-and-pix2pix
Commit Name: cbe085758f63d4e8bb178585847d7a630ca56129
Time: 2019-01-03
Author: junyanzhu89@gmail.com
File Name: data/aligned_dataset.py
Class Name: AlignedDataset
Method Name: __getitem__
Project Name: AlexEMG/DeepLabCut
Commit Name: e997ef25f3ef8a0922b87da7ce3278a2d713a27c
Time: 2018-11-13
Author: arne.f.meyer@gmail.com
File Name: deeplabcut/generate_training_dataset/frame_extraction.py
Class Name:
Method Name: extract_frames
Project Name: pyannote/pyannote-audio
Commit Name: 5a1dba682a5eccd4f0854553c07cd2b21909f1ec
Time: 2020-03-17
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/resegmentation.py
Class Name: Resegmentation
Method Name: _decode
Project Name: tsurumeso/waifu2x-chainer
Commit Name: f992515537c72c9b2a74cd213416a4d7956ef639
Time: 2018-10-16
Author: tsurumeso@gmail.com
File Name: appendix/benchmark.py
Class Name:
Method Name: benchmark